/* ============================================
   REQUEST INFORMATION - GRAVITY FORMS STYLES
   Version: 2.0
   Date: November 17, 2025
   Compatible with Gravity Forms 2.9.21.1
   Based on ED Self-Check Form Styles
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    /* Colors - Blue Tones */
    --req-gf-primary-blue: #194f90 !important;
    --req-gf-light-blue: #EFF2FB !important;
    --req-gf-accent-blue: #6B7FD7 !important;
    --req-gf-dark-blue: #0a1628 !important;

    /* Colors - Text */
    --req-gf-text-primary: #212121 !important;
    --req-gf-text-secondary: #4b5563 !important;
    --req-gf-text-muted: #9ca3af !important;
    --req-gf-text-white: #ffffff !important;

    /* Colors - Backgrounds */
    --req-gf-bg-white: #ffffff !important;
    --req-gf-bg-gray-50: #f9fafb !important;
    --req-gf-bg-gray-100: #f3f4f6 !important;
    --req-gf-bg-gray-200: #e5e7eb !important;

    /* Colors - Borders */
    --req-gf-border-gray: #e5e7eb !important;
    --req-gf-border-gray-dark: #d1d5db !important;

    /* Spacing */
    --req-gf-spacing-sm: 8px !important;
    --req-gf-spacing-md: 12px !important;
    --req-gf-spacing-lg: 16px !important;
    --req-gf-spacing-xl: 24px !important;

    /* Border Radius */
    --req-gf-radius-sm: 6px !important;
    --req-gf-radius-md: 10px !important;
    --req-gf-radius-lg: 16px !important;
    --req-gf-radius-full: 9999px !important;

    /* Shadows */
    --req-gf-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
    --req-gf-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
    --req-gf-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.12) !important;

    /* Transitions */
    --req-gf-transition-fast: 150ms !important;
    --req-gf-easing: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================
   2. FORM WRAPPER
   ============================================ */
#gform_wrapper_2,
.gform_wrapper.gravity-theme {
    max-width: 100% !important;
    margin: 0 !important;
}

#gform_2,
.gform_wrapper.gravity-theme form {
    margin: 0 !important;
    padding: 0 !important;
}

.gform-body,
.gform_body {
    margin: 0 !important;
    padding: 0 !important;
}

.gform_fields {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   3. FORM FIELDS
   ============================================ */
.gfield {
    margin-bottom: var(--req-gf-spacing-xl) !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.gfield_label,
.gform-field-label {
    font-size: 19px !important;
    font-weight: 600 !important;
    color: var(--req-gf-text-primary) !important;
    margin-bottom: var(--req-gf-spacing-md) !important;
    line-height: 1.4 !important;
    display: block !important;
}

.gfield_required,
.gfield_required_text {
    color: #dc2626 !important;
    font-weight: 600 !important;
    margin-left: 4px !important;
}

.gfield_required_asterisk {
    color: #dc2626 !important;
}

.gfield_description {
    font-size: 15px !important;
    color: var(--req-gf-text-secondary) !important;
    margin-bottom: var(--req-gf-spacing-md) !important;
    margin-top: var(--req-gf-spacing-sm) !important;
    font-style: italic !important;
}

/* Hidden labels */
.hidden_label .gfield_label,
.hidden_sub_label,
.screen-reader-text {
    position: absolute !important;
    left: -9999px !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
}

/* ============================================
   4. INPUT CONTAINER
   ============================================ */
.ginput_container {
    margin-top: 0 !important;
}

/* Name field grid */
.ginput_container_name.gform-grid-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: var(--req-gf-spacing-md) !important;
}

.gform-grid-col {
    display: flex !important;
    flex-direction: column !important;
}

/* ============================================
   5. TEXT INPUTS, EMAIL, PHONE, SELECT FIELDS
   ============================================ */
#gform_2 input[type="text"],
#gform_2 input[type="email"],
#gform_2 input[type="tel"],
#gform_2 input[type="url"],
#gform_2 input[type="number"],
#gform_2 textarea,
#gform_2 select {
    width: 100% !important;
    padding: 14px var(--req-gf-spacing-lg) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: var(--req-gf-text-primary) !important;
    background-color: var(--req-gf-bg-white) !important;
    border: 2px solid var(--req-gf-border-gray) !important;
    border-radius: var(--req-gf-radius-md) !important;
    transition: all var(--req-gf-transition-fast) var(--req-gf-easing) !important;
    outline: none !important;
    box-sizing: border-box !important;
}

/* Placeholder Styling */
#gform_2 input::placeholder,
#gform_2 textarea::placeholder {
    color: var(--req-gf-text-muted) !important;
    opacity: 1 !important;
}

/* Focus State */
#gform_2 input[type="text"]:focus,
#gform_2 input[type="email"]:focus,
#gform_2 input[type="tel"]:focus,
#gform_2 input[type="url"]:focus,
#gform_2 input[type="number"]:focus,
#gform_2 textarea:focus,
#gform_2 select:focus {
    border-color: var(--req-gf-primary-blue) !important;
    box-shadow: 0 0 0 4px rgba(25, 79, 144, 0.1) !important;
}

/* Hover State */
#gform_2 input[type="text"]:hover,
#gform_2 input[type="email"]:hover,
#gform_2 input[type="tel"]:hover,
#gform_2 input[type="url"]:hover,
#gform_2 input[type="number"]:hover,
#gform_2 textarea:hover,
#gform_2 select:hover {
    border-color: var(--req-gf-border-gray-dark) !important;
}

/* Textarea */
#gform_2 textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

/* Invalid/Error State */
.gfield_error input[type="text"],
.gfield_error input[type="email"],
.gfield_error input[type="tel"],
.gfield_error input[type="number"],
.gfield_error select,
.gfield_error textarea {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.gfield_error input:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1) !important;
}

/* Disabled State */
#gform_2 input[type="text"]:disabled,
#gform_2 input[type="email"]:disabled,
#gform_2 input[type="tel"]:disabled,
#gform_2 input[type="number"]:disabled,
#gform_2 select:disabled,
#gform_2 textarea:disabled,
#gform_2 input[readonly] {
    background-color: var(--req-gf-bg-gray-100) !important;
    color: var(--req-gf-text-muted) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* ============================================
   6. SELECT DROPDOWNS
   ============================================ */
#gform_2 select.gfield_select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23212121' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
    padding-right: 48px !important;
    cursor: pointer !important;
}

/* Select Placeholder Option Styling */
#gform_2 select option.gf_placeholder {
    color: var(--req-gf-text-muted) !important;
}

/* ============================================
   7. RADIO BUTTONS (JELLYBEAN STYLE)
   ============================================ */
.gform_wrapper.request-info-form_wrapper .gfield_radio {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--req-gf-spacing-sm) !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gform_wrapper.request-info-form_wrapper .gchoice {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px var(--req-gf-spacing-lg) !important;
    background-color: var(--req-gf-bg-white) !important;
    border: 2px solid var(--req-gf-border-gray) !important;
    border-radius: var(--req-gf-radius-full) !important;
    cursor: pointer !important;
    transition: all var(--req-gf-transition-fast) var(--req-gf-easing) !important;
    margin: 0 !important;
}

.gform_wrapper.request-info-form_wrapper .gchoice:hover {
    border-color: var(--req-gf-accent-blue) !important;
    transform: translateY(-2px) !important;
}

.gform_wrapper.request-info-form_wrapper .gchoice input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    z-index: 1 !important;
}

.gform_wrapper.request-info-form_wrapper .gchoice label {
    flex: 1 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--req-gf-text-primary) !important;
    padding-left: 40px !important;
    position: relative !important;
    cursor: pointer !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Custom Radio Circle */
.gform_wrapper.request-info-form_wrapper .gchoice label::before {
    content: '' !important;
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    border: 2px solid var(--req-gf-border-gray-dark) !important;
    border-radius: 50% !important;
    background-color: var(--req-gf-bg-white) !important;
    transition: all var(--req-gf-transition-fast) var(--req-gf-easing) !important;
}

/* Radio Inner Circle */
.gform_wrapper.request-info-form_wrapper .gchoice label::after {
    content: '' !important;
    position: absolute !important;
    left: 21px !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: var(--req-gf-primary-blue) !important;
    transition: transform var(--req-gf-transition-fast) var(--req-gf-easing) !important;
}

/* Selected State */
.gform_wrapper.request-info-form_wrapper .gchoice input[type="radio"]:checked + label::before {
    border-color: var(--req-gf-primary-blue) !important;
}

.gform_wrapper.request-info-form_wrapper .gchoice input[type="radio"]:checked + label::after {
    transform: translate(-50%, -50%) scale(1) !important;
}

.gform_wrapper.request-info-form_wrapper .gchoice:has(input[type="radio"]:checked) {
    background-color: var(--req-gf-light-blue) !important;
    border-color: var(--req-gf-primary-blue) !important;
}

/* ============================================
   8. CHECKBOXES & CONSENT FIELDS
   ============================================ */
.ginput_container_consent {
    display: flex !important;
    align-items: flex-start !important;
    gap: var(--req-gf-spacing-md) !important;
}

#gform_2 input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: 2px 0 0 0 !important;
    cursor: pointer !important;
    accent-color: var(--req-gf-primary-blue) !important;
}

.gfield_consent_label,
.gform-field-label--type-inline {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: var(--req-gf-text-secondary) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.gfield_consent_label a,
.gform-field-label--type-inline a {
    color: var(--req-gf-primary-blue) !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    transition: color var(--req-gf-transition-fast) var(--req-gf-easing) !important;
}

.gfield_consent_label a:hover,
.gform-field-label--type-inline a:hover {
    color: var(--req-gf-accent-blue) !important;
}

/* ============================================
   9. SUBMIT BUTTON
   ============================================ */
.gform-footer,
.gform_footer {
    margin-top: var(--req-gf-spacing-xl) !important;
    padding: 0 !important;
}

#gform_submit_button_2,
.gform_button.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--req-gf-spacing-sm) !important;
    width: auto !important;
    padding: 0 48px !important;
    height: 52px !important;
    background-color: #dc2626 !important;
    color: var(--req-gf-text-white) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Montserrat', sans-serif !important;
    border: none !important;
    border-radius: var(--req-gf-radius-full) !important;
    cursor: pointer !important;
    transition: all var(--req-gf-transition-fast) var(--req-gf-easing) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2) !important;
}

#gform_submit_button_2:hover,
.gform_button.button:hover {
    background-color: #b91c1c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3) !important;
}

#gform_submit_button_2:active,
.gform_button.button:active {
    transform: translateY(0) !important;
}

/* ============================================
   10. VALIDATION ERRORS
   ============================================ */
.gfield_error {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.validation_error,
.validation_message {
    display: flex !important;
    align-items: center !important;
    gap: var(--req-gf-spacing-sm) !important;
    background-color: #fef2f2 !important;
    border-left: 4px solid #dc2626 !important;
    border-radius: var(--req-gf-radius-md) !important;
    padding: var(--req-gf-spacing-md) !important;
    margin-bottom: var(--req-gf-spacing-lg) !important;
    margin-top: var(--req-gf-spacing-sm) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #991b1b !important;
}

/* ============================================
   11. CONFIRMATION MESSAGE
   ============================================ */
.gform_wrapper.request-info-form_wrapper .gform_confirmation_message {
    background-color: var(--req-gf-light-blue) !important;
    border-left: 4px solid var(--req-gf-primary-blue) !important;
    border-radius: var(--req-gf-radius-md) !important;
    padding: var(--req-gf-spacing-lg) !important;
    font-size: 16px !important;
    color: var(--req-gf-text-primary) !important;
    margin: 0 !important;
}

/* ============================================
   12. HIDDEN FIELDS
   ============================================ */
.gfield_visibility_hidden,
.gform_hidden,
.admin-hidden-markup {
    display: none !important;
}

.ginput_container_hidden {
    display: none !important;
}

/* Akismet spam protection */
.akismet-fields-container {
    display: none !important;
}

/* Required legend */
.gform_required_legend {
    display: none !important;
}

/* ============================================
   13. RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .gfield_label,
    .gform-field-label {
        font-size: 17px !important;
    }
    
    .ginput_container_name.gform-grid-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .gfield_label,
    .gform-field-label {
        font-size: 16px !important;
    }
    
    .gfield_consent_label,
    .gform-field-label--type-inline {
        font-size: 14px !important;
    }
    
    #gform_submit_button_2,
    .gform_button.button {
        height: 48px !important;
        padding: 0 32px !important;
        font-size: 15px !important;
    }
}

/* ============================================
   14. ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.gform_wrapper.request-info-form_wrapper .gform_button:focus-visible,
.gform_wrapper.request-info-form_wrapper .gchoice:focus-within {
    outline: 3px solid var(--req-gf-accent-blue) !important;
    outline-offset: 2px !important;
}

/* ============================================
   15. LOADING STATE & MISC
   ============================================ */
.gform_validation_error {
    border: none !important;
}

.gform_ajax_spinner {
    margin-left: var(--req-gf-spacing-md) !important;
}

/* Width modifiers - Force all fields to full width */
.gfield--width-half,
.gfield--width-full {
    width: 100% !important;
    display: block !important;
}

/* Override any inline width styles */
#gform_2 .gfield {
    width: 100% !important;
    display: block !important;
    float: none !important;
}
