/* Modern Real Estate Style for Everest Forms - "Card Premium" */

/* 1. The Card Container */
body .everest-forms .evf-container {
    background-color: #ffffff !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* 2. Container Spacing */
body .everest-forms .evf-field-container {
    gap: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Force Fields to 100% within their grids */
body .everest-forms .evf-field {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    position: relative !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* 3. Labels */
body .everest-forms .evf-field-label {
    display: block !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    margin-bottom: 6px !important;
    color: #4b5563 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* Respect Hidden Labels */
body .everest-forms .evf-field-label.evf-label-hide {
    display: none !important;
}

/* 4. Input Fields */
body .everest-forms input[type=text],
body .everest-forms input[type=email],
body .everest-forms input[type=tel],
body .everest-forms input[type=number],
body .everest-forms input[type=url],
body .everest-forms select,
body .everest-forms textarea {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    color: #111827 !important;
    height: 48px !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    display: block !important;
}

body .everest-forms textarea {
    height: auto !important;
    min-height: 120px !important;
}

/* Focus State - Using Theme Color */
body .everest-forms input:focus,
body .everest-forms select:focus,
body .everest-forms textarea:focus {
    border-color: #A67B5B !important; /* Theme Primary */
    box-shadow: 0 0 0 3px rgba(166, 123, 91, 0.15) !important; /* Theme Primary Glow */
    outline: none !important;
}

/* 5. Submit Button - THEME COLOR MATCH */
body .everest-forms .evf-submit-container {
    margin-top: 20px !important;
    width: 100% !important;
    display: block !important;
}

body .everest-forms button.evf-submit {
    width: 100% !important;
    background-color: #A67B5B !important; /* Theme Primary */
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 16px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: background-color 0.3s ease, transform 0.2s !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
}

body .everest-forms button.evf-submit:hover {
    background-color: #8c664b !important; /* Slightly darker shade of #A67B5B */
    transform: translateY(-1px) !important;
}

/* Checkboxes Accent Color */
body .everest-forms input[type=checkbox],
body .everest-forms input[type=radio] {
    accent-color: #A67B5B !important; /* Theme Primary */
}

/* 6. GRID OVERRIDE - FORCE FULL WIDTH */
/* This section targets the specific grid classes used by Everest Forms */

body .everest-forms .evf-frontend-row {
    display: block !important; /* Stack vertically */
    margin: 0 !important;
    width: 100% !important;
}

body .everest-forms .evf-frontend-grid {
    display: block !important; /* Stack vertically */
    width: 100% !important;
    padding: 0 !important;
    flex: none !important;
    max-width: 100% !important;
}

/* Force each column to be full width */
body .everest-forms .evf-grid-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin-bottom: 20px !important; /* Add spacing between stacked fields */
    float: none !important;
}

/* Specific overrides for 2, 3 column layouts defined by plugin */
body .everest-forms .evf-grid-2,
body .everest-forms .evf-grid-3 {
    width: 100% !important;
    display: block !important;
}
