/* =========================================================
   CONTACT PAGE
   MISR COMPANY
========================================================= */


/* =========================================================
   01. CONTACT HERO
========================================================= */

.contact-hero {
    position: relative;

    min-height: 350px;
    padding: 0 !important;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(201, 169, 104, .055),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #fbfcfb 0%,
            #ffffff 58%,
            #f5f9f7 100%
        );
}




/* Decorative circle */

.contact-hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: -170px;
    bottom: -205px;

    border: 1px solid rgba(201, 169, 104, .13);
    border-radius: 50%;

    pointer-events: none;
}


/* Hero content */

.contact-hero .container {
    position: relative;
    z-index: 2;

    width: min(1177px, calc(100% - 48px));
    max-width: 1177px;

    padding-top: 10px;
}


/* Hero eyebrow */

.contact-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--green, #145c4a);

    font-size: 1.25rem;
    font-weight: 900;

    letter-spacing: .14em;
    text-transform: uppercase;
}


.contact-hero .eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            var(--gold, #c9a968),
            var(--green, #145c4a)
        );
}


/* Hero heading */

.contact-hero h1 {
    max-width: 760px;

    margin: 15px 0 17px;

    color: var(--ink);

    font-size: clamp(1.65rem, 2.7vw, 2.45rem);

    line-height: 1.22;

    font-weight: 800;

    letter-spacing: -.015em;
}


/* Hero paragraph */

.contact-hero .lead {
    max-width: 680px;

    margin: 0;

    color: var(--muted);

    font-size: .82rem;

    line-height: 1.8;
}


/* =========================================================
   02. CONTACT INFORMATION
========================================================= */

.contact-info-section {
    padding: 34px 0 18px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-info-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 15px;

    min-height: 92px;
    padding: 20px 22px;

    box-sizing: border-box;

    border: 1px solid #dfe9e4;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(20, 55, 44, .045);

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


/* Gold top line */

.contact-info-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 22px;

    width: 32px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--green, #145c4a),
            var(--gold, #c9a968)
        );

    border-radius: 0 0 3px 3px;

    transition: width .25s ease;
}


/* Icon */

.contact-info-icon {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(20, 92, 74, .12);
    border-radius: 50%;

    background: #f4f8f6;

    color: var(--green, #145c4a);

    font-size: 19px;

    line-height: 1;
}


/* Content */

.contact-info-content {
    min-width: 0;
}

.contact-info-content h2 {
    margin: 0 0 6px;

    color: var(--green, #145c4a);

    font-family: Inter, Arial, sans-serif;

    font-size: .72rem;
    font-weight: 850;

    line-height: 1.2;

    letter-spacing: .04em;

    text-transform: uppercase;
}

.contact-info-content p,
.contact-info-content a {
    display: block;

    margin: 0;

    color: var(--muted);

    font-family: inherit;

    font-size: .78rem;
    font-weight: 600;

    line-height: 1.6;

    text-decoration: none;
}

.contact-info-content a {
    width: fit-content;

    transition: color .2s ease;
}

.contact-info-content a:hover {
    color: var(--green, #145c4a);
}


/* Hover */

.contact-info-card:hover {
    transform: translateY(-3px);

    border-color: #cbdcd4;

    box-shadow:
        0 14px 32px rgba(20, 55, 44, .075);
}

.contact-info-card:hover::before {
    width: 58px;
}


/* =========================================================
   CONTACT INFORMATION — RTL
========================================================= */

html[dir="rtl"] .contact-info-section {
    direction: rtl;
}

html[dir="rtl"] .contact-info-card {
    text-align: right;
}

html[dir="rtl"] .contact-info-card::before {
    left: auto;
    right: 22px;
}

html[dir="rtl"] .contact-info-content h2 {
    font-family: Cairo, Arial, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}


/* =========================================================
   CONTACT INFORMATION — TABLET
========================================================= */

@media (max-width: 900px) {

    .contact-info-section {
        padding: 28px 0 15px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-info-card {
        min-height: 82px;
        padding: 18px 20px;
    }

}


/* =========================================================
   CONTACT INFORMATION — MOBILE
========================================================= */

@media (max-width: 768px) {

    .contact-info-section {
        padding: 24px 0 12px;
    }

    .contact-info-card {
        min-height: 78px;
        padding: 16px 18px;

        gap: 13px;

        border-radius: 14px;
    }

    .contact-info-icon {
        width: 39px;
        height: 39px;

        flex-basis: 39px;

        font-size: 17px;
    }

    .contact-info-content h2 {
        margin-bottom: 4px;
        font-size: .68rem;
    }

    .contact-info-content p,
    .contact-info-content a {
        font-size: .75rem;
    }

}


/* =========================================================
   CONTACT INFORMATION — SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .contact-info-section {
        padding: 20px 0 10px;
    }

    .contact-info-card {
        padding: 15px;
        gap: 12px;
    }

    .contact-info-icon {
        width: 36px;
        height: 36px;

        flex-basis: 36px;

        font-size: 16px;
    }

    .contact-info-content h2 {
        font-size: .65rem;
    }

    .contact-info-content p,
    .contact-info-content a {
        font-size: .72rem;
    }

}


/* =========================================================
   CONTACT INFORMATION — REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .contact-info-card,
    .contact-info-content a {
        transition: none;
    }

    .contact-info-card:hover {
        transform: none;
    }

}


/* =========================================================
   03. CONTACT FORM AREA
========================================================= */


.quote-form {
    position: relative;

    width: min(920px, calc(100% - 48px));

    margin: 22px auto 70px;

    padding: 34px 36px 32px;

    box-sizing: border-box;

    border: 1px solid #dfe9e4;
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #ffffff 72%,
            #f6faf8 100%
        );

    box-shadow:
        0 18px 50px rgba(20, 55, 44, .065);

    overflow: hidden;

    isolation: isolate;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


/* =========================================================
   FORM DECORATION
========================================================= */

.quote-form::before {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    right: -125px;
    top: -125px;

    border: 1px solid rgba(20, 92, 74, .07);

    border-radius: 50%;

    pointer-events: none;
}


.quote-form::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--green, #145c4a) 0%,
            var(--green, #145c4a) 62%,
            var(--gold, #c9a968) 100%
        );

    opacity: .85;

    pointer-events: none;
}


/* Keep content above decoration */

.quote-form > * {
    position: relative;
    z-index: 2;
}


/* =========================================================
   FORM GRID
========================================================= */

.quote-form .form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px 20px;
}


/* =========================================================
   FIELD
========================================================= */

.quote-form .field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.quote-form .field.full {
    grid-column: 1 / -1;
}


/* =========================================================
   LABEL
========================================================= */

.quote-form label {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--ink);

    font-size: .72rem;
    font-weight: 850;

    line-height: 1.4;

    letter-spacing: .02em;
}


/* Small gold marker */

.quote-form label::before {
    content: "";

    width: 4px;
    height: 4px;

    flex: 0 0 4px;

    border-radius: 50%;

    background: var(--gold, #c9a968);
}


/* =========================================================
   INPUTS
========================================================= */

.quote-form input,
.quote-form textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dce7e1;
    border-radius: 12px;

    background: #f9fbfa;

    color: var(--ink);

    font-family: inherit;
    font-size: .82rem;

    outline: none;

    transition:
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}


/* =========================================================
   INPUT
========================================================= */

.quote-form input {
    height: 50px;

    padding: 0 15px;
}


/* =========================================================
   TEXTAREA
========================================================= */

.quote-form textarea {
    min-height: 145px;

    padding: 14px 15px;

    resize: vertical;

    line-height: 1.65;
}


/* =========================================================
   INPUT HOVER
========================================================= */

.quote-form input:hover,
.quote-form textarea:hover {
    border-color: #bfd4ca;

    background: #ffffff;
}


/* =========================================================
   INPUT FOCUS
========================================================= */

.quote-form input:focus,
.quote-form textarea:focus {
    border-color: var(--green, #145c4a);

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(20, 92, 74, .075);

    transform: translateY(-1px);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.quote-form input::placeholder,
.quote-form textarea::placeholder {
    color: #a1ada7;

    opacity: 1;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.quote-form > .btn {
    position: relative;

    min-height: 48px;

    margin-top: 25px;

    padding: 0 25px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--green, #145c4a),
            #0e493b
        );

    color: #ffffff;

    font-family: inherit;

    font-size: .76rem;
    font-weight: 850;

    letter-spacing: .02em;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


/* Gold sweep */

.quote-form > .btn::after {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.13),
            transparent
        );

    transition: left .5s ease;
}


.quote-form > .btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(20, 92, 74, .18);
}


.quote-form > .btn:hover::after {
    left: 140%;
}


.quote-form > .btn:active {
    transform: translateY(0);

    box-shadow: none;
}


.quote-form > .btn:disabled {
    opacity: .6;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   FORM STATUS
========================================================= */

.quote-form .form-status {
    display: none;

    margin-top: 14px;

    padding: 11px 14px;

    border: 1px solid #dce7e1;
    border-radius: 10px;

    background: #f5faf7;

    color: var(--ink);

    font-size: .76rem;

    line-height: 1.5;
}


.quote-form .form-status.show {
    display: block;
}


/* =========================================================
   03. WHAT TO INCLUDE
========================================================= */

.soft-section {
    position: relative;

    padding-top: 68px;
    padding-bottom: 72px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f7faf8 0%,
            #ffffff 100%
        );
}


/* Decorative manufacturing line */

.soft-section::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #dfe9e4 18%,
            #dfe9e4 82%,
            transparent
        );
}


/* =========================================================
   SECTION SPLIT
========================================================= */

.soft-section .split {
    display: grid;

    grid-template-columns:
        .78fr 1.22fr;

    align-items: start;

    gap: 60px;
}


/* =========================================================
   SECTION INTRO
========================================================= */

.soft-section .split > .reveal {
    padding-top: 8px;
}


.soft-section .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--green, #145c4a);

    font-size: .62rem;
    font-weight: 900;

    letter-spacing: .13em;

    text-transform: uppercase;
}


.soft-section .eyebrow::before {
    content: "";

    width: 25px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--gold, #c9a968),
            var(--green, #145c4a)
        );
}


.soft-section h2 {
    max-width: 460px;

    margin: 15px 0 0;

    color: var(--ink);

    font-size: clamp(1.45rem, 2.3vw, 2rem);

    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -.025em;
}


/* =========================================================
   INFO CARDS
========================================================= */

.soft-section .cards {
    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap: 14px !important;

    margin: 0 !important;
}


/* =========================================================
   CARD
========================================================= */

.soft-section .card {
    position: relative;

    min-height: 175px;

    padding: 25px 24px;

    border: 1px solid #dfe9e4;
    border-radius: 19px;

    background: #ffffff;

    box-shadow:
        0 9px 28px rgba(20, 55, 44, .045);

    overflow: hidden;

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}


/* Number / technical marker */

.soft-section .card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 24px;

    width: 30px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--green, #145c4a),
            var(--gold, #c9a968)
        );

    transition: width .3s ease;
}


/* Soft background circle */

.soft-section .card::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -48px;
    bottom: -48px;

    border: 1px solid rgba(20, 92, 74, .055);

    border-radius: 50%;

    pointer-events: none;
}


.soft-section .card h3 {
    position: relative;
    z-index: 2;

    margin: 0 0 10px;

    color: var(--ink);

    font-size: .91rem;
    font-weight: 850;

    line-height: 1.35;
}


.soft-section .card p {
    position: relative;
    z-index: 2;

    margin: 0;

    color: var(--muted);

    font-size: .76rem;

    line-height: 1.75;
}


/* =========================================================
   CARD HOVER
========================================================= */

.soft-section .card:hover {
    border-color: #c7d9d1;

    transform: translateY(-5px);

    box-shadow:
        0 17px 34px rgba(20, 55, 44, .075);
}


.soft-section .card:hover::before {
    width: 70px;
}


/* =========================================================
   04. RTL
========================================================= */

html[dir="rtl"] .contact-hero,
html[dir="rtl"] .quote-form,
html[dir="rtl"] .soft-section {
    direction: rtl;
}


html[dir="rtl"] .contact-hero::before {
    right: auto;
    left: -18px;
}


html[dir="rtl"] .contact-hero::after {
    left: auto;
    right: -170px;
}


html[dir="rtl"] .quote-form::before {
    right: auto;
    left: -125px;
}


html[dir="rtl"] .quote-form label {
    text-align: right;
}


html[dir="rtl"] .soft-section .card::before {
    left: auto;
    right: 24px;
}


html[dir="rtl"] .soft-section .card::after {
    right: auto;
    left: -48px;
}


/* =========================================================
   05. TABLET
========================================================= */

@media (max-width: 900px) {

    .contact-hero {
        min-height: 330px;
    }


    .contact-hero .container {
        width: min(100% - 40px, 720px);
    }


    .quote-form {
        width: min(720px, calc(100% - 40px));

        margin-top: 18px;

        padding: 30px;
    }


    .soft-section .split {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .soft-section h2 {
        max-width: 650px;
    }

}


/* =========================================================
   06. MOBILE
========================================================= */

@media (max-width: 768px) {

    .contact-hero {
        min-height: 310px;
    }


    .contact-hero .container {
        width: calc(100% - 36px);
    }


    .contact-hero h1 {
        max-width: 600px;

        font-size: clamp(1.5rem, 6vw, 2rem);

        line-height: 1.25;
    }


    .contact-hero .lead {
        font-size: .76rem;

        line-height: 1.75;
    }


    .quote-form {
        width: calc(100% - 36px);

        margin-bottom: 50px;

        padding: 26px 21px 24px;

        border-radius: 21px;
    }


    .quote-form .form-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }


    .quote-form .field.full {
        grid-column: auto;
    }


    .quote-form input {
        height: 50px;
    }


    .quote-form textarea {
        min-height: 135px;
    }


    .soft-section {
        padding-top: 50px;
        padding-bottom: 55px;
    }


    .soft-section .split {
        gap: 28px;
    }


    .soft-section h2 {
        font-size: 1.45rem;
    }


    .soft-section .cards {
        grid-template-columns: 1fr !important;
    }


    .soft-section .card {
        min-height: 0;

        padding: 22px 20px;
    }

}


/* =========================================================
   07. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .contact-hero {
        min-height: 295px;
    }


    .contact-hero::before {
        font-size: 5rem;
    }


    .contact-hero .container {
        width: calc(100% - 30px);
    }


    .contact-hero .eyebrow {
        font-size: .58rem;
    }


    .contact-hero h1 {
        margin-top: 12px;

        margin-bottom: 14px;

        font-size: 1.45rem;
    }


    .contact-hero .lead {
        font-size: .72rem;
    }


    .quote-form {
        width: calc(100% - 30px);

        padding: 22px 16px 21px;

        border-radius: 18px;
    }


    .quote-form .form-grid {
        gap: 15px;
    }


    .quote-form label {
        font-size: .68rem;
    }


    .quote-form input {
        height: 48px;

        padding: 0 13px;

        font-size: .78rem;
    }


    .quote-form textarea {
        min-height: 125px;

        padding: 13px;

        font-size: .78rem;
    }


    .quote-form > .btn {
        width: 100%;

        min-height: 47px;

        margin-top: 20px;
    }


    .soft-section .eyebrow {
        font-size: .57rem;
    }


    .soft-section h2 {
        margin-top: 12px;

        font-size: 1.3rem;
    }


    .soft-section .card {
        padding: 20px 18px;

        border-radius: 17px;
    }


    .soft-section .card::before {
        left: 18px;
    }


    html[dir="rtl"] .soft-section .card::before {
        left: auto;
        right: 18px;
    }


    .soft-section .card h3 {
        font-size: .84rem;
    }


    .soft-section .card p {
        font-size: .70rem;
    }

}


/* =========================================================
   08. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .quote-form,
    .quote-form input,
    .quote-form textarea,
    .quote-form > .btn,
    .soft-section .card {
        transition: none;
    }


    .quote-form:hover,
    .quote-form > .btn:hover,
    .soft-section .card:hover {
        transform: none;
    }


    .quote-form > .btn::after {
        display: none;
    }

}