/* contact.css - Revamped */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brown-dark: #2F1200;
    --brown-mid: #7d4e13;
    --brown-light: #c27a1e;
    --cream: #fff3e5;
    --cream-dark: #f5e6d0;
    --white: #ffffff;
    --text-muted: #8a6a50;
}

body {
    padding-top: 50px;
    font-family: 'Crimson Pro', serif;
    line-height: 1.6;
    color: #333;
    background: var(--white);
}

/* ------------------------------------------- */
/* Sub Header */
/* ------------------------------------------- */
.sub-header {
    background-image: url('../images/background-image.jpg');
    background-size: cover;
    background-position: center;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.sub-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.sub-header h1,
.hero-text {
    position: relative;
    z-index: 1;
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-weight: normal;
    font-size: 50px;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* ------------------------------------------- */
/* Contact Info Section - Card Style */
/* ------------------------------------------- */
.contact-info-section {
    background: var(--cream);
    padding: 50px 0;
}

.contact-info-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 40px;
    align-items: center;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-item {
    background: var(--white);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(47, 18, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(47, 18, 0, 0.13);
}

.contact-item .icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--brown-dark);
    font-weight: 500;
    line-height: 1.5;
}

.get-in-touch {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.get-in-touch h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 4rem;
    font-weight: 500;
    font-style: italic;
    text-align: right;
    color: var(--brown-dark);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -1px;
    position: relative;
}

.get-in-touch h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brown-light);
    margin-top: 12px;
    margin-left: auto;
    border-radius: 2px;
}

/* ------------------------------------------- */
/* Contact Form Section */
/* ------------------------------------------- */
.contact-form-section {
    background: var(--white);
    padding: 60px 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Left Description */
.project-description {
    position: sticky;
    top: 80px;
}

.project-description h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.4rem;
    font-weight: 500;
    font-style: oblique;
    color: var(--brown-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.project-description p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    line-height: 1.8;
    color: #5a3a20;
    margin-bottom: 14px;
}

.talk-with-us {
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brown-dark) !important;
    margin-top: 28px !important;
    margin-bottom: 8px !important;
}

.social {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.social img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.social img:hover {
    transform: scale(1.15);
    opacity: 1;
}

/* Right Form */
.contact-form-fields {
    background: var(--cream);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(47, 18, 0, 0.07);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    gap: 6px;
}

.contact-form-fields label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brown-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-form-fields input,
.contact-form-fields textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d4b896;
    border-radius: 8px;
    background: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-fields input:focus,
.contact-form-fields textarea:focus {
    border-color: var(--brown-dark);
    box-shadow: 0 0 0 3px rgba(47, 18, 0, 0.08);
    outline: none;
}

.contact-form-fields textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group.submit-group {
    margin-top: 8px;
}

.submit-btn {
    width: 100%;
    background: var(--brown-dark);
    color: white;
    border: none;
    padding: 14px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 8px;
}

.submit-btn:hover {
    background: var(--brown-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(47, 18, 0, 0.2);
}

/* ------------------------------------------- */
/* Form Errors */
/* ------------------------------------------- */
.form-errors {
    background: #fee;
    border: 1px solid #fcc;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #c33;
    font-family: 'Montserrat', sans-serif;
}

.form-errors ul {
    margin: 0;
    padding-left: 18px;
}

.form-errors li {
    margin-bottom: 6px;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ------------------------------------------- */
/* Phone Hint */
/* ------------------------------------------- */
.phone-hint {
    display: block;
    color: #999;
    font-size: 0.78rem;
    margin-top: 3px;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
}

/* ------------------------------------------- */
/* reCAPTCHA */
/* ------------------------------------------- */
.recaptcha-group {
    margin-bottom: 16px;
}

.recaptcha-group .g-recaptcha {
    transform: scale(0.93);
    transform-origin: 0 0;
}

/* ------------------------------------------- */
/* Map Section */
/* ------------------------------------------- */
.map-section {
    padding: 50px 0;
    background: var(--cream);
}

.container-map {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.container-map h2 {
    font-family: 'Crimson Pro', serif;
    font-weight: normal;
    font-style: italic;
    font-size: 2.8rem;
    color: var(--brown-dark);
    text-align: center;
    margin-bottom: 24px;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(47, 18, 0, 0.12);
    height: 480px;
}

/* ------------------------------------------- */
/* Modal */
/* ------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    padding: 36px 30px;
    border-radius: 14px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content h2 {
    margin-bottom: 10px;
    color: var(--brown-dark);
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-style: italic;
}

.modal-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.close {
    color: #aaa;
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #000;
}

html.modal-open,
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100vh;
}

/* ------------------------------------------- */
/* RESPONSIVE - Tablet */
/* ------------------------------------------- */
@media (max-width: 900px) {
    .contact-info-section .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .get-in-touch {
        align-items: flex-start;
    }

    .get-in-touch h1 {
        text-align: left;
        font-size: 3rem;
    }

    .get-in-touch h1::after {
        margin-left: 0;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-description {
        position: static;
    }

    .project-description h2 {
        font-size: 2rem;
    }
}

/* ------------------------------------------- */
/* RESPONSIVE - Mobile */
/* ------------------------------------------- */
@media (max-width: 768px) {
    .contact-info-section {
        padding: 30px 0;
    }

    .contact-info-section .container {
        padding: 0 16px;
        gap: 20px;
    }

    .contact-details {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .contact-item {
        padding: 14px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .contact-item p {
        font-size: 12px;
    }

    .get-in-touch {
        align-items: flex-start;
    }

    .get-in-touch h1 {
        font-size: 2.4rem;
        text-align: left;
    }

    .contact-form-section {
        padding: 30px 0;
    }

    .container {
        padding: 0 16px;
    }

    .contact-form-fields {
        padding: 24px 18px;
    }

    .map-container {
        height: 280px;
    }

    .container-map h2 {
        font-size: 2rem;
    }

    .container-map {
        padding: 0 16px;
    }

    .recaptcha-group .g-recaptcha {
        transform: scale(0.85);
    }
}

/* ------------------------------------------- */
/* RESPONSIVE - Small Mobile */
/* ------------------------------------------- */
@media (max-width: 480px) {
    .sub-header h1 {
        font-size: 36px !important;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: row;
        align-items: center;
        padding: 12px 14px;
    }

    .contact-item p {
        font-size: 13px;
    }

    .get-in-touch h1 {
        font-size: 2rem;
    }

    .project-description h2 {
        font-size: 1.7rem;
    }

    .contact-form-fields {
        padding: 20px 14px;
    }

    .submit-btn {
        font-size: 0.82rem;
        letter-spacing: 1.5px;
        padding: 13px;
    }
}