@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* ========================================
   MOBILE-FIRST - NUCLEAR VISIBILITY FIX
   ======================================== */

/* Container */
.god-form-container {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
    text-align: right;
    background: #ffffff;
    padding: 20px;
    margin: 10px auto;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .god-form-container {
        max-width: 800px;
        padding: 30px;
        margin: 20px auto;
    }
}

/* Typography */
.god-form-container h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a1a;
}

/* Form Fields */
.god-field {
    margin-bottom: 20px;
}

.god-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.god-field label .required {
    color: #e53935;
}

/* ========================================
   INPUTS - STANDARD STYLING
   ======================================== */

.god-field input[type="text"],
.god-field input[type="tel"],
.god-field input[type="email"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    transition: all 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

/* ========================================
   SELECT DROPDOWNS - NUCLEAR FIX FOR MOBILE
   ======================================== */

/* FORCE MAXIMUM VISIBILITY ON ALL DEVICES */
.god-field select,
select#customer_wilaya_desktop, select#customer_commune_desktop,
select#customer_wilaya_phone, select#customer_commune_phone {
    /* Size and spacing */
    width: 100% !important;
    min-height: 50px !important;
    padding: 14px !important;
    margin: 0 !important;
    
    /* Border and background */
    border: 3px solid #10893E !important; /* Thick green border so you can SEE it */
    border-radius: 10px !important;
    background-color: #ffffff !important;
    
    /* Typography */
    font-size: 16px !important;
    font-family: 'Tajawal', sans-serif !important;
    color: #000000 !important;
    line-height: 1.5 !important;
    
    /* Display properties */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    
    /* Remove any transforms or filters */
    transform: none !important;
    filter: none !important;
    
    /* Box model */
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
    
    /* Cursor */
    cursor: pointer !important;
    
    /* Transition */
    transition: all 0.2s ease !important;
}

/* Desktop: Custom styling with arrow */
@media (min-width: 768px) {
    .god-field select {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: left 12px center !important;
        background-size: 20px !important;
        padding-left: 45px !important;
    }
}

/* Mobile: FORCE native select appearance */
@media (max-width: 767px) {
    .god-field select,
    select#customer_wilaya_desktop, select#customer_commune_desktop,
    select#customer_wilaya_phone, select#customer_commune_phone {
        /* Force native select on iOS/Android */
        -webkit-appearance: menulist !important;
        -moz-appearance: menulist !important;
        appearance: auto !important;
        
        /* Remove any custom background */
        background-image: none !important;
        
        /* Adjust padding */
        padding: 14px 12px !important;
        
        /* Make absolutely sure it's tappable */
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(16, 137, 62, 0.2) !important;
        
        /* Increase tap target size */
        min-height: 55px !important;
    }
}

/* Disabled state - still visible but greyed */
.god-field select:disabled {
    background-color: #f0f0f0 !important;
    border-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

/* Focus state - even more visible */
.god-field input:focus,
.god-field select:focus {
    outline: none !important;
    border-color: #10893E !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(16, 137, 62, 0.2) !important;
}

/* ========================================
   OPTIONS - Make sure they're visible too
   ======================================== */

.god-field select option {
    padding: 10px !important;
    font-size: 16px !important;
    color: #000000 !important;
    background: #ffffff !important;
}

/* ========================================
   ROW LAYOUT
   ======================================== */

.god-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 768px) {
    .god-row {
        flex-direction: row;
        gap: 20px;
    }
    
    .god-row .god-field {
        flex: 1;
    }
}

/* ========================================
   SHIPPING OPTIONS
   ======================================== */

.god-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .god-shipping-options {
        flex-direction: row;
    }
}

.god-shipping-option {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.god-shipping-option:active {
    transform: scale(0.98);
}

.god-shipping-option input[type="radio"] {
    margin-left: 12px;
    width: 20px;
    height: 20px;
    accent-color: #10893E;
}

.god-radio-label {
    font-size: 15px;
}

.god-shipping-option input[type="radio"]:checked ~ .god-radio-label {
    font-weight: 700;
}

.god-shipping-option:has(input:checked) {
    border-color: #10893E;
    background: #e8f5e9;
}

/* ========================================
   ORDER SUMMARY
   ======================================== */

.god-summary {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.god-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
}

.god-summary-total {
    font-size: 20px;
    font-weight: 700;
    color: #10893E;
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
    margin-bottom: 0;
}

/* ========================================
   SUBMIT BUTTON
   ======================================== */

.god-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10893E 0%, #0d7a35 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(16, 137, 62, 0.3);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .god-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(16, 137, 62, 0.4);
    }
}

.god-submit:active {
    transform: translateY(0);
}

.god-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   NUCLEAR OVERRIDE - KILL ALL CONFLICTS
   ======================================== */

/* Override ANY theme/plugin trying to hide our selects */
body select#customer_wilaya_desktop, body select#customer_commune_desktop,
body select#customer_wilaya_phone, body select#customer_commune_phone,
.elementor-widget-container select#customer_wilaya_desktop, .elementor-widget-container select#customer_commune_desktop,
.elementor-widget-container select#customer_wilaya_phone, .elementor-widget-container select#customer_commune_phone,
.woocommerce select#customer_wilaya_desktop, .woocommerce select#customer_commune_desktop,
.woocommerce select#customer_wilaya_phone, .woocommerce select#customer_commune_phone {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 50px !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    clip: unset !important;
    clip-path: none !important;
}
