/* ===========================
   CONTACT PAGE HEADER
   =========================== */

.contact-page-header {
    background: var(--warm-white, #faf9f6);
    padding: 130px 40px 20px;
    box-sizing: border-box;
}

.contact-page-header h1 {
    font-family: 'Belleza', serif;
    font-size: clamp(36px, 5vw, 80px);
    font-weight: 400;
    color: var(--dark);
    letter-spacing: 0.01em;
    width: 100%;
    /* padding-top: 5rem; */
    /* padding-bottom: 5rem; */
    padding-top: 4rem;
    padding-bottom: -1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 23px;
}

/* ===========================
   GOOGLE MAP
   =========================== */

.contact-map {
    width: 100%;
    height: 545px;
    background: #e0ddd8;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(20%);
}

/* ===========================
   CONTACT DETAILS SECTION
   =========================== */

.contact-details {
    background: var(--warm-white, #faf9f6);
    /* padding: 60px 60px 80px; */
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details-title {
    font-family: 'Belleza', serif;
    font-size: 55px;
    font-weight: 400;
    color: var(--dark, #221b00);
    text-align: center;
    margin: 0 0 32px;
    letter-spacing: 0.01em;
    margin-top: 59px;
}

/* ===========================
   CARDS
   =========================== */

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 52px 32px;
    border-radius: 20px;
    text-align: center;
}

/* Card color variants */
.contact-card--beige {
    background: linear-gradient(to top, #e8e2d8, #f5f1eb);
}

.contact-card--yellow {
    background: linear-gradient(to top, #f5e89a, #fdf8d8);
}

.contact-card--green {
    background: linear-gradient(to top, #a8e6bc, #d8f5e4);
}

/* Icon */
.contact-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Text */
.contact-card p {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    color: #3a3028;
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
    .contact-page-header {
        padding: 120px 32px 20px;
    }

    .contact-details {
        padding: 48px 32px 60px;
    }

    .contact-cards {
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .contact-page-header {
        padding: 110px 20px 16px;
    }

    .contact-details {
        padding: 40px 20px 48px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-card {
        padding: 32px 24px;
    }
}

/* ===========================
   CONTACT FORM SECTION
   =========================== */
 
.contact-form-section {
    width: 100%;
    background: var(--warm-white, #faf9f6);
}

.contact-form-bg {
    position: relative;
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    overflow: visible;
    margin-bottom: 400px;
}

.contact-form-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(250, 249, 246, 0.85) 0%,   
        rgba(250, 249, 246, 0.0) 40%, 
        rgba(250, 249, 246, 0.0) 100%
    );
    backdrop-filter: blur(1px);
}

/* Title now floats above the card, over the background image */
.contact-form-title {
    position: relative;
    z-index: 1;
    font-family: 'Belleza', serif;
    font-size: 55px;
    font-weight: 400;
    color: var(--dark, #221b00);
    text-align: center;
    margin: 0 0 20px;
    letter-spacing: 0.01em;
}

/* Form card */
.contact-form-card {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 4px;
    padding: 32px 48px 48px;
    width: 100%;
    /* max-width: 1034px; */
    margin-bottom: 60px;
    border-top: 4px solid #712c1b;
    overflow: visible;
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/images/contact icon/background-white -form.png');
    background-size: cover;
    background-position: center;
    opacity: 42.25;            
    z-index: 0;
}

.contact-form-card > * {
    position: relative;
    z-index: 1;
}

.contact-form-divider {
    width: 100%;
    height: 1px;
    margin-bottom: 32px;
}
 
/* Rows */
.cf-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 32px;
    margin-bottom: 28px;
}
 
.cf-row--full {
    grid-template-columns: 1fr;
}
 
/* Fields */
.cf-field {
    display: flex;
    flex-direction: column;
}
 
.cf-field input,
.cf-field select,
.cf-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #b0a090;
    padding: 8px 0;
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    color: #3a3028;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
}
 
.cf-field input::placeholder,
.cf-field textarea::placeholder {
    color: #9a8a72;
}
 
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
    border-bottom-color: #7a6a4f;
}
 
/* Select dropdown arrow */
.cf-field--select {
    position: relative;
}
 
.cf-field--select select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    color: #9a8a72;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a8a72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 20px;
}
 
.cf-field--select select option {
    color: #3a3028;
}
 
/* Message field */
.cf-message-label {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    color: #9a8a72;
    margin-bottom: 8px;
}
 
.cf-field--message textarea {
    resize: none;
    line-height: 1.6;
}
 
/* Submit */
.cf-submit {
    margin-top: 32px;
}
 
.cf-submit button {
    background: var(--dark, #221b00);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s ease;
}
 
.cf-submit button:hover {
    background: #3a2e1e;
}
 
/* ===========================
   RESPONSIVE — FORM
   =========================== */
 
@media (max-width: 768px) {
    .contact-form-bg {
        height: auto;
        padding-top: 30px;
        margin-bottom: 0;
    }

    .contact-form-card {
        padding: 24px 16px 36px;
        margin-left: 16px;
        margin-right: 16px;
        box-sizing: border-box;
    }

    .cf-row {
        grid-template-columns: 1fr;
        gap: 20px 0;
    }

    .cf-submit {
        margin-top: 24px;
        width: 100%;
        position: relative;
        z-index: 2;
    }

    .cf-submit button {
        width: 100%;
        padding: 16px 32px;
        font-size: 18px;
        display: block;
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 480px) {
    .contact-form-card {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    .contact-details-title {
        font-size: clamp(28px, 6vw, 44px);
    }

    .contact-card p {
        font-size: 16px;
    }
}

/* ===========================
   CONTACT SUBSCRIBE BANNER
   =========================== */

.subscribe-banner-contact {
    background: var(--warm-white, #faf9f6);
    padding: 60px 0;
    position: relative;
    z-index: 10;
    display: block;
    width: 100%;
    clear: both;
}

.subscribe-inner-contact {
    display: flex;
    align-items: stretch;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d0c8b8;
    max-width: 1536px;
    margin-top: 0;
}

.subscribe-left-contact {
    background: #221b00;
    padding: 40px 60px 40px 44px;
    flex: 0 0 auto;
    width: 560px;
    display: flex;
    align-items: center;
}

.subscribe-left-contact h2 {
    font-family: 'Belleza', serif;
    font-size: 55px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
}

.subscribe-right-contact {
    background: #ffffff;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 24px 28px;
}

.subscribe-form-contact {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
    background: #c6b48a;
    border-radius: 5px;
    padding: 8px 4px 8px 20px;
    min-height: 98px;
}

.subscribe-form-contact input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-family: 'Jost', sans-serif;
    font-size: 24px;
    color: #000000;
    background: transparent;
}

.subscribe-form-contact input::placeholder {
    color: #000000;
    font-size: 24px;
    font-family: 'Jost', sans-serif;
}

.subscribe-form-contact button {
    background: #3d3526;
    color: #fff;
    border: none;
    padding: 25px 24px;
    font-family: 'Jost', sans-serif;
    font-size: 24px;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    /* margin-right: 4px; */
}

.subscribe-form-contact button:hover {
    background: #221b00;
}

@media (max-width: 768px) {
    .subscribe-banner-contact {
        padding: 30px 16px;
    }

    .subscribe-inner-contact {
        flex-direction: column;
        max-width: 100%;
        border-radius: 8px;
        margin-top: 0;
    }

    .subscribe-left-contact {
        width: 100%;
        padding: 20px 16px;
        justify-content: center;
        text-align: center;
        border-radius: 8px 8px 0 0;
    }

    .subscribe-left-contact h2 {
        font-size: clamp(18px, 5vw, 26px);
        white-space: normal;
    }

    .subscribe-right-contact {
        padding: 16px;
        width: 100%;
    }

    .subscribe-form-contact {
        min-height: 56px;
        padding: 6px 6px 6px 14px;
    }

    .subscribe-form-contact input {
        font-size: 14px;
    }

    .subscribe-form-contact button {
        padding: 12px 16px;
        font-size: 14px;
        margin-right: 0;
    }
}

.contact-page-header,
.contact-details,
.contact-form-card,
.subscribe-banner-contact {
    padding-left: 60px;
    padding-right: 60px;
}

@media (max-width: 768px) {
    .contact-page-header,
    .contact-details,
    .contact-form-card,
    .subscribe-banner-contact {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===========================
   APPLE LAPTOP RESPONSIVE
   1280px - 1440px
   =========================== */
@media (max-width: 1440px) {
    .contact-page-header,
    .contact-details,
    .contact-form-card,
    .subscribe-banner-contact {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .contact-details-title,
    .contact-form-title {
        font-size: 44px;
    }
}

@media (max-width: 1280px) {
    .contact-page-header,
    .contact-details,
    .contact-form-card,
    .subscribe-banner-contact {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .contact-details-title,
    .contact-form-title {
        font-size: 38px;
    }

    .contact-card p {
        font-size: 17px;
    }

    .cf-field input,
    .cf-field select,
    .cf-field textarea {
        font-size: 17px;
    }
}