:root {
    --bg-header-top: #820018;
    --bg-footer: #ffffff;
    --bg-copyright: #ebebeb;
    --bg-body: #EBEBEB;
    --bg-menu: #ffffff;
    --color-red: #D30000;
    --color-body: #343a40;
}


.border {
    border-left: 1px solid var(--color-body);
    border-right: 1px solid var(--color-body);
}

.padding-form {
    padding: 60px 120px;
}

.form-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 120px 60px;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.5);
    margin: 0px auto;
    max-width: 900px;
}

.form-section .title {
    flex: 1;
    width: 100%;
    transform: translateY(-50%);
}

.form-section .title>h3 {
    color: var(--bg-menu);
    border-bottom: 1px solid var(--bg-menu);
    font-weight: bold;
    width: 80%;
}

.form-section form {
    flex: 1;
    max-width: 460px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    height: 50px;
    padding: 10px 10px;
    font-size: 14px;
    background-color: #f2f2f2;
    border-radius: 4px;
    border: none;
}

.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group textarea:hover {
    border-color: rgba(255, 204, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.5);
    background-color: #ffffff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 204, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.5);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.btn-submit {
    color: white;
    padding: 10px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin-left: auto;
    background: var(--color-red);
}

.address-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: wrap;
    width: 100%;
    margin: 15px auto;
    max-width: 1200px;
    gap: 40px;
}

.title-main {}

.title p {
    font-size: 24px;
    color: var(--color-red);
    font-weight: lighter;
}

.title h3 {
    font-size: 36px;
    text-transform: uppercase;
}

.item-address {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-flow: wrap;
    width: 100%;

}

.item-address-contact {
    width: calc(100% / 3);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-address-contact {
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.img-address-contact>i {
    color: var(--color-red);
}

.img-address-contact .fa-location-dot {
    font-size: 28px;
}

.img-address-contact .fa-phone-flip {
    font-size: 28px;
}

.img-address-contact .fa-envelope {
    font-size: 28px;
}

.text-address-contact {
    margin-top: 10px;
    margin-left: 10px;
    line-height: 22px;
    text-align: center;
}

.text-address-contact span {
    color: #9b9b9b;
    font-size: 10px;
}

.text-address-contact p {
    color: #000000;
    font-size: 16px;
    font-weight: lighter;
}

.map-section {
    text-align: center;
    margin: 15px auto;
    max-width: 1200px;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* 4K and Ultra-wide Screens */
@media (min-width: 1600px) {}

/* Ultra Large Devices (Extra Large Desktop) */
@media (max-width: 1599px) {}

/* XXL Devices (Large Desktop) */
@media (max-width: 1399px) {}

/* Extra Large Devices (Small Desktop) */
@media (max-width: 1199px) {
    .address-contact {
        flex-direction: column;
    }

    .item-address-contact {
        width: 100%;
    }
}

/* Large Devices (Tablets) */
@media (max-width: 991px) {
    .project-category {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .form-section .title {
        transform: translateY(-10%);
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 767px) {
    .project-category {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Small Devices (Phones) */
@media (max-width: 575px) {
    .padding-form {
        padding: 60px 10px 60px 10px;
    }

    .form-section {
        padding: 80px 20px 30px 20px;
        flex-direction: column;
        width: 100%;
        align-items: normal;
    }

    .title>h3 {
        font-size: 24px;
    }

    .title>p {
        font-size: 16px;
    }

    .list {
        width: 100%;
    }

    .project-category {
        width: 100%;
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .section-header .main-title {
        font-size: 24px !important;
    }
}


/* Extra Small Devices */
@media (max-width: 374px) {}


.background-image {
    background-image: url('../images/background_contact.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-gray {
    background-color: var(--bg-body);
    padding: 60px 0px;
}

.hidden {
    display: none !important;
}

.tab.active {
    background-color: #d60000;
    color: white;
    border-color: #d60000;
}

.project-category {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.project-category:hover img {
    transform: scale(1.05);
}

.project-footer {
    display: flex;
    align-items: end;
    justify-content: end;
}

.cart-empty {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 60px 0px;
    min-height: calc(100vh - 800px);
}

.cart-empty>h3 {
    text-transform: uppercase;
    font-size: 36px;
}

.cart-empty>a {
    background-color: var(--color-red);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
}


.project-tabs {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.border {
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 24px;
    background-color: white;
}

.project-tabs .tab {
    padding: 10px 30px;
    border: none;
    border-radius: 999px;
    background-color: transparent;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-tabs .tab.active {
    background-color: #d60000;
    color: white;
    border-color: #d60000;
}

.project-tabs .tab:hover {
    background-color: #d60000;
    color: white;
    border-color: #d60000;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.project-item {
    text-align: left;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease-in-out;
}

.project-item p {
    margin-top: auto;
}

.project-item h3 {
    font-size: 16px;
    margin: 15px 10px 5px;
    font-weight: bold;
}

.project-item p {
    font-size: 14px;
    color: #333;
    margin: 0 10px 15px;
}

.project-item i {
    color: red;
    margin-right: 5px;
}

.project-footer {
    padding-bottom: 40px;
}

.section-header {
    text-align: center;
}

.section-header .sub-title {
    color: red;
    font-size: 18px;
    margin-bottom: 0;
}

.section-header .main-title {
    font-size: 36px;
    color: #d60000;
    font-weight: bold;
    margin-top: 5px;
}

.view-all-btn {
    background-color: red;
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    border-radius: 4px;
    transition: background 0.3s;
}

.view-all-btn:hover {
    background-color: darkred;
}