/* =========================
   CONTACT SECTIONS
========================= */

.contact-preview-section,
.contact-section {
    padding: 80px 0;
    overflow: hidden;
}

.contact-preview-box,
.contact-form-wrapper {
    width: 100%;
    padding: 42px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 18px;
}

.contact-form-wrapper {
    height: 100%;
}

.contact-section .section-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

/* =========================
   CONTACT HERO
========================= */

.contact-hero {
    padding: 80px 0 55px;
    background: #fff8f3;
    text-align: center;
}

.contact-hero .section-description {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

/* =========================
   CONTACT INFORMATION
========================= */

.contact-list,
.contact-info {
    display: grid;
    margin-top: 32px;
    gap: 22px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: 16px;
}

.contact-item > div {
    min-width: 0;
}

.contact-item i,
.contact-icon {
    flex: 0 0 auto;
    min-width: 28px;
    color: #ff6b00;
    font-size: 1.35rem;
    line-height: 1.4;
}

.contact-item strong,
.contact-item h6 {
    display: block;
    margin: 0 0 6px;
    color: #1f2937;
    font-weight: 600;
}

.contact-item p {
    max-width: 100%;
    margin-bottom: 0;
    color: #667085;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.contact-item a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 40px;
    color: #475467;
    font-weight: 500;
    line-height: 1.55;
    text-decoration: none;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: color 0.2s ease;
}

.contact-item a:hover,
.contact-item a:focus-visible {
    color: #f97316;
    text-decoration: underline;
}

/* =========================
   CONTACT FORM
========================= */

.contact-form-wrapper .row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.contact-form-wrapper .row > [class*="col-"] {
    min-width: 0;
}

.contact-form-wrapper .form-label {
    margin-bottom: 8px;
    color: #1f2937;
    font-weight: 600;
}

.contact-form-wrapper .form-control,
.contact-form-wrapper .form-select {
    width: 100%;
    min-height: 54px;
    padding: 13px 15px;
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form-wrapper textarea.form-control {
    min-height: 170px;
    resize: vertical;
}

.contact-form-wrapper .form-control:focus,
.contact-form-wrapper .form-select:focus {
    border-color: #f97316;
    outline: none;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.contact-form-wrapper .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding-right: 28px;
    padding-left: 28px;
}

/* Validation messages */

.contact-form-wrapper .invalid-feedback {
    margin-top: 7px;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* =========================
   CONTACT PREVIEW CARD
========================= */

.contact-card {
    width: 100%;
    height: 100%;
    padding: 38px;
    background: #fff8f3;
    border: 1px solid #ffe2cc;
    border-radius: 18px;
}

.contact-card h3 {
    color: #1f2937;
    font-weight: 700;
    line-height: 1.3;
}

.contact-card p {
    margin: 18px 0 28px;
    color: #667085;
    line-height: 1.8;
}

.contact-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    white-space: normal;
}

/* =========================
   GOOGLE MAP
========================= */

.contact-map,
.map-wrapper,
.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
}

.contact-map iframe,
.map-wrapper iframe,
.map-container iframe,
.contact-section iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 420px;
    border: 0;
}

/* =========================
   TABLETS
========================= */

@media (max-width: 991.98px) {
    .contact-preview-section,
    .contact-section {
        padding: 68px 0;
    }

    .contact-hero {
        padding: 68px 0 48px;
    }

    .contact-section .row,
    .contact-preview-box .row {
        --bs-gutter-y: 2.5rem;
    }

    .contact-preview-box,
    .contact-form-wrapper {
        padding: 34px;
    }

    .contact-card {
        padding: 32px;
    }
}

/* =========================
   PHONES
========================= */

@media (max-width: 767.98px) {
    .contact-preview-section,
    .contact-section {
        padding: 52px 0;
    }

    .contact-hero {
        padding: 56px 0 40px;
    }

    .contact-preview-box,
    .contact-form-wrapper,
    .contact-card {
        padding: 24px;
        border-radius: 14px;
    }

    .contact-list,
    .contact-info {
        margin-top: 28px;
        gap: 18px;
    }

    .contact-item {
        gap: 12px;
    }

    .contact-item a {
        min-height: 44px;
    }

    /*
     * 16px prevents Safari on iPhone from automatically
     * zooming when the user selects a form field.
     */
    .contact-form-wrapper .form-control,
    .contact-form-wrapper .form-select {
        min-height: 52px;
        font-size: 16px;
    }

    .contact-form-wrapper textarea.form-control {
        min-height: 150px;
    }

    .contact-form-wrapper .btn {
        width: 100%;
        min-height: 50px;
    }

    .contact-map,
    .map-wrapper,
    .map-container {
        border-radius: 14px;
    }

    .contact-map iframe,
    .map-wrapper iframe,
    .map-container iframe,
    .contact-section iframe {
        min-height: 340px;
    }
}

/* =========================
   SMALL PHONES
========================= */

@media (max-width: 575.98px) {
    .contact-preview-section,
    .contact-section {
        padding: 46px 0;
    }

    .contact-preview-box,
    .contact-form-wrapper,
    .contact-card {
        padding: 22px 18px;
    }

    .contact-section .section-title {
        font-size: clamp(1.85rem, 9vw, 2.15rem);
    }

    .contact-item i,
    .contact-icon {
        min-width: 24px;
        font-size: 1.2rem;
    }

    .contact-card p {
        margin-bottom: 24px;
        line-height: 1.7;
    }

    .contact-map iframe,
    .map-wrapper iframe,
    .map-container iframe,
    .contact-section iframe {
        min-height: 300px;
    }
}

@media (max-width: 374.98px) {
    .contact-preview-box,
    .contact-form-wrapper,
    .contact-card {
        padding: 20px 16px;
    }

    .contact-item {
        gap: 10px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .contact-item a,
    .contact-form-wrapper .form-control,
    .contact-form-wrapper .form-select {
        transition: none;
    }
}