/* =========================
   Contact Page - Page Hero
========================= */
.page-hero {
    position: relative;
    height: 662px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.page-hero > .container {
    width: 100%;
    max-width: 1320px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-family: var(--font-secondary);
    font-size: 50px;
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: normal;
    margin-bottom: 14px;
}

.page-hero-line {
    width: 43px;
    height: 4px;
    background-color: var(--color-secondary);
}

/* =========================
   Contact CTA Heading
========================= */
.contact-cta {
    padding-top: 77px;
    padding-bottom: 45px;
}

.contact-cta-heading {
    font-family: var(--font-secondary);
    font-size: 40px;
    font-weight: var(--fw-bold);
    color: #4f637e;
    line-height: 50px;
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 20px;
}

.contact-cta .section-divider {
    width: 58px;
}

/* =========================
   Contact Main Section
========================= */
.contact-main-section {
    padding-bottom: 66px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 766px 435px;
    gap: 35px;
    align-items: stretch;
}

/* Form Box */
.contact-form-box {
    background-color: var(--color-white);
    border: 1px solid #efefef;
    padding: 36px 33px 28px;
}

.contact-box-heading {
    font-family: var(--font-secondary);
    font-size: 40px;
    font-weight: var(--fw-bold);
    color: #4f637e;
    margin-bottom: 10px;
    line-height: 50px;
    text-transform: capitalize;
}

.contact-box-divider {
    width: 36px;
    height: 3px;
    background-color: var(--color-secondary);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    width: 100%;
}

.form-label {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 400;
    color: #3b3b3b;
    text-transform: capitalize;
    line-height: 50px;
    margin-bottom: 0;
}

.required {
    color: #3b3b3b;
}

.form-control {
    width: 100%;
    height: 46px;
    background-color: #fafafa;
    border: 1px solid #efefef;
    padding: 0 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    color: #3b3b3b;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    border-radius: 0;
}

.form-control:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
}

.form-control::placeholder {
    color: #b0b0b0;
}

.form-textarea {
    height: 155px;
    padding: 14px 16px;
    resize: vertical;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #fafafa;
    border: 1px solid #efefef;
    height: 46px;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
    transition: var(--transition-default);
}

.phone-input-wrapper:focus-within {
    border-color: var(--color-primary);
    background-color: var(--color-white);
}

.phone-country-dropdown {
    position: relative;
    flex-shrink: 0;
}

.phone-country-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

.phone-country-toggle:hover {
    background-color: #f0f0f0;
}

.phone-country-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100;
    min-width: 180px;
    max-height: 220px;
    overflow-y: auto;
    background-color: var(--color-white);
    border: 1px solid #efefef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    display: none;
}

.phone-country-list.open {
    display: block;
}

.phone-country-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 14px;
    color: #3b3b3b;
}

.phone-country-list li:hover {
    background-color: #fafafa;
}

.phone-country-list li img {
    width: 28px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.phone-flag-img {
    width: 28px;
    height: 18px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    pointer-events: none;
}

.phone-arrow {
    flex-shrink: 0;
    display: block;
}

.phone-divider {
    width: 1px;
    height: 26px;
    background-color: #efefef;
    flex-shrink: 0;
}

.phone-input {
    border: none;
    background: transparent;
    height: 100%;
    flex: 1;
    padding: 0 12px;
    font-family: var(--font-primary);
    font-size: 14px;
    color: #3b3b3b;
    outline: none;
}

.phone-input:focus {
    border: none;
    outline: none;
}

.form-submit {
    margin-top: 12px;
}

.form-submit .btn {
    min-width: 120px;
    height: 46px;
    font-size: 14px;
    font-weight: var(--fw-bold);
    letter-spacing: 1px;
}

/* Contact Details Box */
.contact-details-box {
    background-color: var(--color-white);
    border: 1px solid #efefef;
    padding: 36px 30px 28px;
    width: 100%;
}

.contact-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 34px;
    margin-top: 24px;
    margin-bottom: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-detail-icon-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-detail-label {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: var(--fw-bold);
    color: #3b3b3b;
    line-height: 29px;
    text-transform: capitalize;
}

.contact-detail-value {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 400;
    color: #3b3b3b;
    line-height: 29px;
}

.contact-detail-value a {
    color: inherit;
    text-decoration: none;
}

.contact-social-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-social-icon {
    width: 39px;
    height: 39px;
    background-color: var(--color-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-default);
}

.contact-social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.contact-social-icon:hover {
    background-color: var(--color-primary);
}

/* =========================
   Map Section
========================= */
.map-section {
    background-color: var(--color-white);
    padding-bottom: 94px;
}

.map-heading {
    font-family: var(--font-secondary);
    font-size: 40px;
    font-weight: var(--fw-bold);
    color: #4f637e;
    line-height: 56px;
    text-align: center;
    letter-spacing: -0.8px;
    margin-bottom: 13px;
}

.map-desc {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: #3b3b3b;
    line-height: 28px;
    text-align: center;
    max-width: 988px;
    margin: 0 auto 42px;
}

.map-embed {
    width: 100%;
    overflow: hidden;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 359px;
    border: none;
}

.map-wrapper {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.map-embed {
    flex: 1;
    min-width: 0;
}

.map-qr-code {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-qr-code img {
    width: 200px;
    height: 200px;
    display: block;
}

.map-qr-code p {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: var(--fw-bold);
    color: var(--color-secondary);
    line-height: 26px;
    text-align: center;
    margin-top: 12px;
}

/* =========================
   Responsive
========================= */

/* --- 1280px and below --- */
@media (max-width: 1280px) {
    .contact-grid {
        grid-template-columns: 1fr 340px;
        gap: 24px;
    }
}

/* --- 1024px and below --- */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start;
    }

    .contact-cta-heading {
        font-size: 30px;
        line-height: 40px;
    }

    .contact-box-heading {
        font-size: 30px;
        line-height: 40px;
    }

    .page-hero-title {
        font-size: 40px;
    }

    .contact-cta {
        padding-top: 60px;
        padding-bottom: 50px;
    }
}

/* --- 768px and below --- */
@media (max-width: 768px) {
    .page-hero {
        height: 360px;
    }

    .page-hero-title {
        font-size: 30px;
    }

    .contact-cta {
        padding: var(--section-gap) 0 !important;
    }

    .contact-cta-heading {
        font-size: 24px;
        line-height: 34px;
    }

    .contact-main-section {
        padding-top: 0 !important;
        padding-bottom: var(--section-gap) !important;
    }

    .map-section {
        padding: var(--section-gap) 0 !important;
    }

    .contact-form-box {
        padding: 24px 18px;
    }

    .contact-details-box {
        padding: 24px 18px;
    }

    .contact-box-heading {
        font-size: 26px;
        line-height: 36px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-label {
        font-size: 16px;
        line-height: 40px;
    }

    .contact-detail-label {
        font-size: 16px;
    }

    .contact-detail-value {
        font-size: 16px;
    }

    .map-heading {
        font-size: 28px;
        line-height: 38px;
        margin-bottom: 10px;
    }

    .map-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .map-embed iframe {
        height: 280px;
    }

    .map-wrapper {
        flex-direction: column;
    }

    .map-qr-code {
        width: 100%;
        padding: 20px 0;
    }
}

/* --- 480px and below --- */
@media (max-width: 480px) {
    .page-hero {
        height: 280px;
    }

    .page-hero-title {
        font-size: 24px;
    }

    .page-hero-line {
        width: 32px;
        height: 3px;
    }

    .contact-cta-heading {
        font-size: 20px;
        line-height: 30px;
    }

    .contact-form-box {
        padding: 20px 15px;
    }

    .contact-details-box {
        padding: 20px 15px;
    }

    .contact-box-heading {
        font-size: 22px;
        line-height: 32px;
    }

    .form-label {
        font-size: 14px;
        line-height: 36px;
    }

    .form-control {
        height: 42px;
        font-size: 13px;
    }

    .phone-input-wrapper {
        height: 42px;
    }
    
    .phone-input-wrapper:focus-within {
        border-color: var(--color-primary) !important;
    }

    .form-textarea {
        height: 120px;
    }

    .contact-detail-label,
    .contact-detail-value {
        font-size: 14px;
        line-height: 22px;
    }

    .contact-detail-icon-img {
        width: 34px;
        height: 34px;
    }

    .contact-social-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .map-heading {
        font-size: 22px;
        line-height: 32px;
        letter-spacing: -0.4px;
        margin-bottom: 8px;
    }

    .map-desc {
        margin-bottom: 20px;
    }

    .map-embed iframe {
        height: 220px;
    }
}

/* --- 360px and below --- */
@media (max-width: 360px) {
    .contact-cta-heading {
        font-size: 18px;
        line-height: 28px;
    }

    .contact-box-heading {
        font-size: 20px;
    }

    .form-label {
        font-size: 13px;
        line-height: 32px;
    }
}
