/* =========================
   Contact form section
   ========================= */

#contact-us {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f7fbfb 0%, #eef8f8 100%);
    padding: 4rem 1.5rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #18343a;
}

#contact-us::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #13636b, #38b7c2);
    pointer-events: none;
}

#contact-us .container {
    max-width: 620px;
    margin: 0 auto;
}

#contact-us .section-title {
    margin-bottom: 0.85rem;
    text-align: center;
    color: #0f4f56;
}

.section-subtitle {
    max-width: 34rem;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
    color: #5b7277;
}

/* =========================
   Form card
   ========================= */

form#contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 79, 86, 0.10);
    box-shadow:
        0 14px 36px rgba(15, 79, 86, 0.08),
        0 4px 10px rgba(15, 79, 86, 0.04);
    font-size: 1rem;
    color: #18343a;
    text-align: left;
}

form#contact-form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    background: linear-gradient(90deg, #13636b, #38b7c2);
    pointer-events: none;
}

/* =========================
   Inputs
   ========================= */

#contact-us input,
#contact-us textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border: 1.5px solid rgba(15, 79, 86, 0.14);
    border-radius: 12px;
    background: #ffffff;
    color: #18343a;
    text-align: left;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

#contact-us input::placeholder,
#contact-us textarea::placeholder {
    color: rgba(91, 114, 119, 0.88);
}

#contact-us input:focus,
#contact-us textarea:focus {
    border-color: #1b7b84;
    box-shadow: 0 0 0 3px rgba(56, 183, 194, 0.12);
    outline: none;
}

#contact-us textarea {
    min-height: 130px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

/* =========================
   Custom select
   ========================= */

.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1.5px solid rgba(15, 79, 86, 0.14);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    color: #18343a;
    cursor: pointer;
    user-select: none;
    text-align: left;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.custom-select-wrapper:focus {
    border-color: #1b7b84;
    box-shadow: 0 0 0 3px rgba(56, 183, 194, 0.12);
    outline: none;
}

.custom-select-wrapper::after {
    content: "";
    flex: 0 0 auto;
    width: 0.65rem;
    height: 0.65rem;
    margin-left: 0.9rem;
    border-right: 2px solid #1b7b84;
    border-bottom: 2px solid #1b7b84;
    transform: rotate(45deg);
    opacity: 0.8;
}

.custom-select-selected {
    flex: 1 1 auto;
    user-select: none;
    color: #18343a;
    text-align: left;
    line-height: 1.4;
}

.custom-select-list {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.99);
    border: 1px solid rgba(15, 79, 86, 0.12);
    border-radius: 14px;
    box-shadow:
        0 14px 36px rgba(15, 79, 86, 0.10),
        0 4px 10px rgba(15, 79, 86, 0.05);
    z-index: 10;
    display: none;
    list-style: none;
    padding: 0.35rem;
    margin: 0;
    text-align: left;
}

.custom-select-list li {
    padding: 0.72rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    color: #18343a;
    text-align: left;
    line-height: 1.4;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.custom-select-list li:hover,
.custom-select-list li[aria-selected="true"] {
    background-color: rgba(56, 183, 194, 0.10);
    color: #0f4f56;
    transform: translateX(1px);
}

/* =========================
   Submit button
   ========================= */

#contact-us button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 0.15rem;
    background: #0f4f56;
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 0;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(15, 79, 86, 0.20);
}

#contact-us button[type="submit"]:hover,
#contact-us button[type="submit"]:focus {
    background: #13636b;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 79, 86, 0.26);
    outline: none;
}

/* =========================
   Thank you message
   ========================= */

.thank-you-message {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 79, 86, 0.10);
    border-radius: 18px;
    color: #18343a;
    padding: 1.6rem 1.4rem;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow:
        0 10px 24px rgba(15, 79, 86, 0.08),
        0 3px 8px rgba(15, 79, 86, 0.04);
}

.thank-you-message::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #13636b, #38b7c2);
}

.thank-you-message h3 {
    margin: 0 0 0.55rem;
    font-size: 1.4rem;
    line-height: 1.2;
    color: #0f4f56;
}

.thank-you-message p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: #5b7277;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 600px) {
    #contact-us {
        padding: 3rem 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 1.6rem;
    }

    form#contact-form {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }

    form#contact-form::before {
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }

    #contact-us input,
    #contact-us textarea,
    .custom-select-wrapper {
        padding: 0.8rem 0.9rem;
        border-radius: 11px;
    }

    .custom-select-list {
        border-radius: 12px;
    }

    #contact-us button[type="submit"] {
        padding: 1rem;
        font-size: 1.05rem;
    }

    .thank-you-message {
        padding: 1.35rem 1rem;
        border-radius: 16px;
    }
}