/* --- Contact Page Specific Styles (Final Perfection) --- */

.page-contact {
    background-color: #fff;
}

.page-contact .career-section {
    padding-top: 170px;
    padding-bottom: 180px;
}

/* Fix for WordPress/CF7 auto-p and br tags */
.wpcf7 br {
    display: none !important;
}

.wpcf7 p {
    margin: 0 !important;
    padding: 0 !important;
}

.career-section.has-watermark::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background-image: url('../images/logo_f.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

/* --- Form Layout & Structure --- */
.velt-form-premium-wrap {
    background: #fff;
    padding: 100px 80px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.04);
    margin: 60px auto;
    position: relative;
    z-index: 2;
    border-radius: 4px;
    max-width: 1000px;
}

/* Grid System for 2-column rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
    margin-bottom: 40px;
}

.form-group {
    display: block;
    width: 100%;
    margin-bottom: 40px;
}

/* Fix: Remove internal margin when part of a row to prevent double-spacing */
.form-row .form-group {
    margin-bottom: 0;
}

/* Remove margin from last form element to maintain symmetry with submit wrap */
.form-row:last-of-type,
.form-group:last-of-type {
    margin-bottom: 0;
}

/* Half width fields (matching the provided screenshot for Dept/Phone) */
.form-group.is-half {
    width: calc(50% - 15px);
    /* Same width as a grid column */
}

/* Vertical Labels */
.form-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Required Badge Style */
.required-badge {
    color: #d9534f;
    margin-left: 8px;
    font-size: 11px;
    vertical-align: middle;
    font-family: var(--font-sans);
    font-weight: 400;
}

/* --- Premium Box Inputs --- */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-text,
.wpcf7-textarea,
.wpcf7-select {
    width: 100% !important;
    background-color: #f8f8f8 !important;
    /* Light grey */
    border: 1px solid #eee !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
    color: var(--color-text) !important;
    font-family: var(--font-sans) !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    border-radius: 4px !important;
}

/* Dropdown specific (Select) */
.wpcf7-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' 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 20px center;
    padding-right: 45px !important;
}

/* Focus States */
.wpcf7-text:focus,
.wpcf7-textarea:focus,
.wpcf7-select:focus {
    background-color: #fff !important;
    border-color: #188136 !important;
    box-shadow: 0 0 0 4px rgba(24, 129, 54, 0.05) !important;
}

.wpcf7-textarea {
    height: 180px !important;
    resize: vertical !important;
}

/* --- Submit Button --- */
.cf7-submit-wrap {
    margin-top: 80px;
    text-align: center;
}

.wpcf7-submit {
    display: inline-block !important;
    width: 450px !important;
    max-width: 100% !important;
    background-color: #0B3B23 !important;
    color: #fff !important;
    padding: 24px 0 !important;
    border: none !important;
    font-family: var(--font-serif) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2rem !important;
    cursor: pointer !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.wpcf7-submit:hover {
    background-color: #1a6d46 !important;
    transform: translateY(-5px) !important;
}

/* --- Mobile --- */
@media (max-width: 850px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 28px;
    }

    .form-row .form-group {
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 28px;
    }

    .form-group.is-half {
        width: 100%;
    }

    .velt-form-premium-wrap {
        padding: 40px 20px;
        box-shadow: none;
        margin: 30px auto;
    }

    .page-contact .career-section {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .cf7-submit-wrap {
        margin-top: 40px;
    }

    .wpcf7-submit {
        width: 100% !important;
        max-width: 320px !important;
        font-size: 16px !important;
        padding: 20px 0 !important;
    }
}