/* ============================================
   HERO DIVIDER (Figma Implementation)
   ============================================ */
.contact-hero-divider-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
    margin-bottom: 20px;
}

.contact-hero-divider-outer {
    width: 100%;
    box-sizing: border-box;
    padding: 0 80px;
    /* desktop horizontal padding */
}

.contact-hero-divider {
    display: none;
    max-width: 100%;
    height: auto;
}

.contact-hero-divider-desktop {
    display: block;
    width: 1279.956px;
    height: 236.431px;
}

.contact-hero-divider-mobile {
    display: none;
}

@media (max-width: 900px) {
    .contact-hero-divider-desktop {
        width: 700px;
        height: 130px;
    }
}

@media (max-width: 600px) {
    .contact-hero-divider-desktop {
        display: none;
    }

    .contact-hero-divider-mobile {
        display: block;
        width: 311.232px;
        height: 110px;
    }

    .contact-hero-divider-wrapper {
        margin-bottom: 20px;
    }

    .contact-hero-divider-outer {
        padding: 0 30px;
        /* mobile horizontal padding */
    }
}

/* ============================================
   CONTACT DETAILS SECTION (Figma Implementation)
   ============================================ */
.contact-details-section {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 64px auto 0 auto;
    padding: 0 20px 64px 20px;
    z-index: 1;
    box-sizing: border-box;
}

.contact-details-section *,
.contact-details-section *::before,
.contact-details-section *::after {
    box-sizing: border-box;
}

.contact-details-background {
    position: relative;
    width: 100%;
    height: 430px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.contact-details-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

.contact-details-bg-mobile {
    display: none;
}

.contact-details-bg-desktop {
    display: block;
}

.contact-details-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
    pointer-events: none;
}

.contact-details-info {
    display: flex;
    gap: 66px;
    align-items: flex-start;
    background: none;
    margin-right: 80px;
    margin-top: 60px;
    pointer-events: auto;
}

.contact-details-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.contact-details-label {
    color: #181818;
    font-family: 'General Sans Variable', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 2px;
}

.contact-details-value {
    color: #181818;
    font-family: 'General Sans Variable', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 2px;
}

.contact-details-social-icons {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.contact-social-link img {
    width: 38px;
    height: 38px;
    display: block;
    transition: transform 0.2s;
}

.contact-social-link:hover img {
    transform: scale(1.08);
}

@media (max-width: 900px) {
    .contact-details-info {
        gap: 32px;
        margin-right: 20px;
    }

    .contact-details-section {
        padding-bottom: 32px;
    }
}

@media (max-width: 600px) {
    .contact-details-section {
        padding: 0 0 32px;
        margin-top: 32px;
        position: relative;
    }

    .contact-details-background {
        height: 283px;
        position: relative;
    }

    .contact-details-bg-mobile {
        display: block;
    }

    .contact-details-bg-desktop {
        display: none;
    }

    .contact-details-content {
        position: absolute;
        left: calc(50% + 1.5px);
        top: 0;
        width: calc(50% - 1.5px);
        height: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 15px 10px;
        margin: 0;
    }

    .contact-details-info {
        flex-direction: column;
        gap: 32px;
        margin: 0;
        align-items: flex-start;
        width: 100%;
    }

    .contact-details-block {
        min-width: 0;
        width: 100%;
    }

    .contact-details-value {
        font-size: 16px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-details-label {
        font-size: 14px;
        line-height: 1.2;
    }

    .contact-details-social-icons {
        gap: 12px;
    }

    .contact-social-link img {
        width: 30px;
        height: 30px;
    }
}

/* ============================================
   CONTACT US SECTION STYLES
   ============================================ */

.contact-us-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    background: #FFFFFF;
    margin: 0 auto;
    max-width: 1200px;
}

.contact-us-inner {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 80px;
}

/* Header */
.contact-us-header {
    width: 100%;
    max-width: 843px;
}

.contact-us-header .hero-section {
    padding: 0;
    background: none;
    text-align: left;
}

.contact-us-header .hero-inner {
    margin: 0;
}

.contact-us-header .hero-title {
    color: #181818;
    font-family: Costaline, serif;
    font-size: 64px;
    font-weight: 100;
    line-height: 1.7;
    margin: 0 0 32px;
    text-align: left;
}

.contact-us-header .hero-content {
    text-align: left;
}

.contact-us-header .hero-content p {
    color: #181818;
    font-family: "General Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    text-align: left;
}

/* Contact Options */
.contact-options {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

/* Calendar Section */
.contact-calendar {
    display: flex;
    flex-direction: column;
    gap: 42px;
    align-items: center;
    width: 539px;
    flex-shrink: 0;
}

.contact-section-title {
    width: 100%;
    text-align: center;
}

.contact-section-title h3 {
    color: #181818;
    font-family: "Alamendro", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.calendar-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 539 / 428;
}

.calendar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OR Divider */
.contact-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-divider p {
    color: #833C1E;
    font-family: "Alamendro", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    white-space: nowrap;
}

/* Message Form Section */
.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 42px;
    align-items: center;
    width: 539px;
    flex-shrink: 0;
}

/* Contact Form */
.contact-form {
    width: 100%;
    background: #FFFFFF;
    position: relative;
    box-sizing: border-box;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* SVG Borders */
.form-border {
    position: absolute;
    pointer-events: none;
}

.form-border-top {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
}

.form-border-right {
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 100%;
}

.form-border-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
}

.form-border-left {
    top: 0;
    left: 0;
    bottom: 0;
    width: auto;
    height: 100%;
}

.form-row {
    display: flex;
    gap: 24px;
    width: 100%;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-row .form-field {
    min-width: 0;
}

.form-field label {
    color: #181818;
    font-family: "General Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
    background: #FFFFFF;
    border: 1px solid #181818;
    padding: 15.19px 11.6px;
    color: #181818;
    font-family: "General Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.form-field input[type="text"]::placeholder,
.form-field input[type="email"]::placeholder,
.form-field textarea::placeholder {
    color: #B4B2AD;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field textarea:focus {
    border-color: #833C1E;
}

.form-field input[type="text"],
.form-field input[type="email"] {}

.form-field textarea {
    min-height: 180px;
    resize: vertical;
}

/* Force border-box for the form and its descendants to avoid inputs expanding
   beyond their flex containers (important when padding is present). Placed
   at file end so it wins over other rules. */
.contact-form,
.contact-form * {
    box-sizing: border-box !important;
}

/* Ensure SVG borders do not contribute to layout width.
   Use specific rules for top/bottom (width:100%) and left/right (height:100%). */
.form-border {
    display: block;
    pointer-events: none;
    max-width: 100%;
}

/* Top and bottom borders span the full width and keep intrinsic height */
.form-border-top,
.form-border-bottom {
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Left and right borders should match the form height exactly on all viewports */
.form-border-left,
.form-border-right {
    top: 0;
    bottom: 0;
    height: 100% !important;
    width: auto;
    max-height: 100% !important;
}

/* Ensure SVGs scale inside their boxes */
.form-border {
    object-fit: contain;
}

/* Form Actions */
.form-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact-submit-btn {
    background: #833C1E;
    color: #FFFFFF;
    border: 0.831px solid #833C1E;
    padding: 16px;
    min-height: 53.179px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16.618px);
    -webkit-backdrop-filter: blur(16.618px);
    cursor: pointer;
    font-family: "General Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.14px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.contact-submit-btn:hover {
    background: #6d3218;
    border-color: #6d3218;
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1200px) {
    .contact-us-inner {
        gap: 60px;
    }

    .contact-us-header .hero-title {
        font-size: 48px;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
    }

    .contact-calendar,
    .contact-form-wrapper {
        width: 100%;
        max-width: 539px;
    }

    .contact-divider {
        margin: 20px 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-us-section {
        width: auto;
        padding: 40px 20px;
        padding-bottom: 135px;
        /* ensure required gap to footer on mobile */
    }

    .contact-us-inner {
        gap: 40px;
    }

    .contact-us-header {
        max-width: 100%;
    }

    .contact-us-header .hero-title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .contact-us-header .hero-content p {
        font-size: 16px;
    }

    .contact-options {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .contact-calendar,
    .contact-form-wrapper {
        width: 100%;
    }

    .contact-divider {
        margin: 12px 0;
    }

    .contact-form {
        padding: 12px;
        gap: 20px;
    }

    .form-row {
        /* flex-direction: column; */
        gap: 8px;
    }

    .form-field input[type="text"],
    .form-field input[type="email"] {
        font-size: 16px;
        padding: 6px 8px;
    }

    .form-field textarea {
        font-size: 16px;
        min-height: 150px;
    }
}

@media (max-width: 400px) {
    .contact-us-header .hero-title {
        font-size: 28px;
    }

    .contact-us-header .hero-content p {
        font-size: 14px;
    }

    .contact-section-title h3 {
        font-size: 16px;
    }

    .contact-divider p {
        font-size: 16px;
    }
}