/* Gravity Forms - Coral Bathrooms Luxury Theme */
/* Modern, elegant design with premium aesthetics */
/* Brand colors: #A79777 (warm taupe), #082A3E (sophisticated navy) */

:root {
    --primary-taupe: #A79777;
    --primary-navy: #082A3E;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border-light: #e8e6e1;
    --border-focus: #A79777;
    --input-bg: #fafaf8;
    --success: #2e7d32;
    --error: #c62828;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== FORM WRAPPER ===== */
.contact-section .gform_wrapper {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.contact-section .gform_wrapper form {
    margin: 0;
}

.contact-section .gform_body {
    background: transparent;
    border: none;
    padding: 0;
}

/* ===== FIELD CONTAINER ===== */
.contact-section .gform_body li {
    margin-bottom: 42px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    list-style: none !important;
}

.contact-section .gform_body li:last-child {
    margin-bottom: 28px;
}

/* ===== LABELS - PROMINENT & ELEGANT ===== */
.contact-section .gform_wrapper label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    transition: var(--transition);
}

.contact-section .gform_wrapper .gform_body .gfield label {
    margin-bottom: 14px;
}

.contact-section .gform_wrapper .gfield_required {
    color: var(--error);
    font-weight: 600;
    margin-left: 2px;
}

/* ===== INPUT FIELDS - REFINED & MODERN ===== */
.contact-section .gform_wrapper input[type="text"],
.contact-section .gform_wrapper input[type="email"],
.contact-section .gform_wrapper input[type="url"],
.contact-section .gform_wrapper input[type="tel"],
.contact-section .gform_wrapper input[type="number"],
.contact-section .gform_wrapper input[type="date"],
.contact-section .gform_wrapper input[type="time"],
.contact-section .gform_wrapper textarea,
.contact-section .gform_wrapper select {
    width: 100% !important;
    padding: 8px 12px !important;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark) !important;
    background-color: var(--input-bg) !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height:45px;
}

.contact-section .gform_wrapper input[type="text"]:hover,
.contact-section .gform_wrapper input[type="email"]:hover,
.contact-section .gform_wrapper input[type="url"]:hover,
.contact-section .gform_wrapper input[type="tel"]:hover,
.contact-section .gform_wrapper input[type="number"]:hover,
.contact-section .gform_wrapper input[type="date"]:hover,
.contact-section .gform_wrapper input[type="time"]:hover,
.contact-section .gform_wrapper textarea:hover,
.contact-section .gform_wrapper select:hover {
    border-color: var(--border-light) !important;
    background-color: #ffffff !important;
    box-shadow: var(--shadow-md);
}

.contact-section .gform_wrapper input[type="text"]:focus,
.contact-section .gform_wrapper input[type="email"]:focus,
.contact-section .gform_wrapper input[type="url"]:focus,
.contact-section .gform_wrapper input[type="tel"]:focus,
.contact-section .gform_wrapper input[type="number"]:focus,
.contact-section .gform_wrapper input[type="date"]:focus,
.contact-section .gform_wrapper input[type="time"]:focus,
.contact-section .gform_wrapper textarea:focus,
.contact-section .gform_wrapper select:focus {
    outline: none !important;
    border-color: var(--primary-taupe) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(167, 151, 119, 0.12), var(--shadow-md) !important;
}

/* ===== TEXTAREA ===== */
.contact-section .gform_wrapper textarea {
    resize: vertical;
    min-height: 130px !important;
    line-height: 1.6;
}

/* ===== PLACEHOLDER TEXT ===== */
.contact-section .gform_wrapper input::placeholder,
.contact-section .gform_wrapper textarea::placeholder {
    color: #a0a0a0;
    font-style: normal;
}

/* ===== SELECT DROPDOWN ===== */
.contact-section .gform_wrapper select {
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23082A3E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px !important;
    cursor: pointer;
}

.contact-section .gform_wrapper select:hover {
    border-color: var(--border-light) !important;
    background-color: #ffffff !important;
}

.contact-section .gform_wrapper select:focus {
    border-color: var(--primary-taupe) !important;
}

/* ===== RADIO & CHECKBOX - MODERN STYLING ===== */
.contact-section .gform_wrapper input[type="radio"],
.contact-section .gform_wrapper input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-taupe);
    flex-shrink: 0;
}

.contact-section .gform_wrapper .gfield_checkbox li,
.contact-section .gform_wrapper .gfield_radio li {
    list-style: none;
    padding: 10px 0 !important;
    margin: 8px 0 !important;
    background: none !important;
    border: none !important;
}

.contact-section .gform_wrapper .gfield_checkbox li label,
.contact-section .gform_wrapper .gfield_radio li label {
    display: flex;
    align-items: center;
    margin: 0 !important;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-dark);
    font-size: 15px;
    gap: 6px;
}

/* ===== SUBMIT BUTTON - LUXURY STYLING ===== */
.contact-section .gform_wrapper .gform_footer input[type="submit"],
.contact-section .gform_wrapper button[type="submit"] {
    background: var(--primary-taupe) !important;
    color: white !important;
    padding: 22px 48px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 22px!important;
    font-weight: 600!important;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif!important;
    display: inline-block;
    width: auto;
    margin-top: 4px;
}

.contact-section .gform_wrapper .gform_footer input[type="submit"]:hover,
.contact-section .gform_wrapper button[type="submit"]:hover {
    background: #8f7f5f !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-section .gform_wrapper .gform_footer input[type="submit"]:active,
.contact-section .gform_wrapper button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

/* ===== BUTTON FOOTER ===== */
.contact-section .gform_wrapper .gform_footer {
    background: transparent;
    border: none;
    padding: 0 !important;
    margin-top: 32px;
    display: flex;
    justify-content: flex-start;
}

/* ===== VALIDATION & ERROR STATES ===== */
.contact-section .gform_wrapper .gfield_error input,
.contact-section .gform_wrapper .gfield_error textarea,
.contact-section .gform_wrapper .gfield_error select {
    border-color: var(--error) !important;
    background-color: rgba(198, 40, 40, 0.04) !important;
}

.contact-section .gform_wrapper .gfield_error input:focus,
.contact-section .gform_wrapper .gfield_error textarea:focus,
.contact-section .gform_wrapper .gfield_error select:focus {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12) !important;
}

.contact-section .gform_wrapper .gfield_error label {
    color: var(--error) !important;
}

.contact-section .gform_wrapper .validation_message {
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    display: block;
}

/* ===== CONFIRMATION & ERROR MESSAGES ===== */
.contact-section .gform_wrapper .gform_confirmation_message,
.contact-section .gform_wrapper .gform_submission_error,
.contact-section .gform_wrapper .gform_validation_errors {
    padding: 20px 20px;
    border-radius: 8px;
    margin-bottom: 28px;
    font-size: 15px;
    border-left: 4px solid;
}

.contact-section .gform_wrapper .gform_confirmation_message {
    background: rgba(46, 125, 50, 0.08) !important;
    border-left-color: var(--success) !important;
    color: var(--success) !important;
}

.contact-section .gform_wrapper .gform_submission_error,
.contact-section .gform_wrapper .gform_validation_errors {
    background: rgba(198, 40, 40, 0.08) !important;
    border-left-color: var(--error) !important;
    color: var(--error) !important;
}

/* ===== SECTION HEADERS ===== */
.contact-section .gform_wrapper .gsection_title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 24px;
    margin-top: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-taupe);
    letter-spacing: 0.4px;
}

/* ===== FIELD DESCRIPTION ===== */
.contact-section .gform_wrapper .gfield_description {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 6px;
    font-style: italic;
    line-height: 1.5;
}

/* ===== MULTI-ROW LAYOUTS ===== */
.contact-section .gform_wrapper .gfield_row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 0;
}

.contact-section .gform_wrapper .gfield_row .gfield {
    margin-bottom: 0 !important;
}

/* ===== PAGE NAVIGATION ===== */
.contact-section .gform_wrapper .gform_page_footer {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: flex-start;
}

.contact-section .gform_wrapper .gform_page_footer input {
    background: var(--primary-taupe);
    color: white;
    padding: 14px 36px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    box-shadow: var(--shadow-md);
}

.contact-section .gform_wrapper .gform_page_footer input:hover {
    background: #8f7f5f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-section .gform_wrapper .gform_page_footer input[type="button"] {
    background: white;
    color: var(--primary-navy);
    border: 1.5px solid var(--border-light);
    box-shadow: none;
}

.contact-section .gform_wrapper .gform_page_footer input[type="button"]:hover {
    background: var(--input-bg);
    border-color: var(--primary-taupe);
}

/* ===== PROGRESS BAR ===== */
.contact-section .gform_wrapper .gform_progress_wrapper {
    margin-bottom: 32px;
}

.contact-section .gform_wrapper .gform_progress_bar {
    background: #e8e6e1;
    height: 3px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-section .gform_wrapper .gform_progress_bar .gform_progress {
    background: linear-gradient(90deg, var(--primary-taupe), #8f7f5f);
    height: 100%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-section .gform_wrapper .gform_progress_text {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
    text-align: right;
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .contact-section .gform_body li {
        margin-bottom: 32px !important;
    }

    .contact-section .gform_wrapper label {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .contact-section .gform_wrapper input[type="text"],
    .contact-section .gform_wrapper input[type="email"],
    .contact-section .gform_wrapper input[type="tel"],
    .contact-section .gform_wrapper input[type="number"],
    .contact-section .gform_wrapper select,
    .contact-section .gform_wrapper textarea {
        padding: 13px 14px !important;
        font-size: 16px;
    }

    .contact-section .gform_wrapper .gform_footer input[type="submit"],
    .contact-section .gform_wrapper button[type="submit"] {
        width: 100% !important;
        padding: 15px 24px !important;
        font-size: 15px;
    }

    .contact-section .gform_wrapper .gfield_row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-section .gform_wrapper .gfield_row .gfield {
        margin-bottom: 32px !important;
    }

    .contact-section .gform_wrapper .gform_page_footer {
        flex-direction: column;
    }

    .contact-section .gform_wrapper .gform_page_footer input {
        width: 100%;
    }

    .contact-section .gform_wrapper .gsection_title {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

/* ===== ACCESSIBILITY ===== */
.contact-section .gform_wrapper input:focus,
.contact-section .gform_wrapper select:focus,
.contact-section .gform_wrapper textarea:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* ===== HONEYPOT (SPAM PREVENTION) ===== */
.contact-section .gform_wrapper .gform_honeypot {
    display: none !important;
}

/* ===== FIELD CONTAINERS ===== */
.contact-section .gform_wrapper .ginput_container {
    width: 100%;
}

.contact-section .gform_wrapper .ginput_container input,
.contact-section .gform_wrapper .ginput_container select,
.contact-section .gform_wrapper .ginput_container textarea {
    width: 100%;
}

/* ===== SPLIT FIELDS ===== */
.contact-section .gform_wrapper .gfield.gf_left_half {
    float: left;
    width: 48%;
    margin-right: 4%;
}

.contact-section .gform_wrapper .gfield.gf_right_half {
    float: right;
    width: 48%;
}

.contact-section .gform_wrapper .gfield.gf_left_half input,
.contact-section .gform_wrapper .gfield.gf_right_half input {
    width: 100%;
}

@media (max-width: 768px) {
    .contact-section .gform_wrapper .gfield.gf_left_half,
    .contact-section .gform_wrapper .gfield.gf_right_half {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 32px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .contact-section .gform_wrapper button,
    .contact-section .gform_wrapper input[type="submit"],
    .contact-section .gform_wrapper .gform_page_footer,
    .contact-section .gform_wrapper .gform_footer {
        display: none;
    }
}