/* assets/style.css - AUDITED STRUCTURE + SOFTER FIELD COLORS */
:root {
    --ducati-red: #A30000;
    --ducati-dark: #000000;
    --text-pure: #ffffff;
    --input-bg: #1a1a1a; /* Adjusted: Softer charcoal instead of pure black */
}

/* --- MAIN CONTAINER --- */
body .rtw-box { 
    background: var(--ducati-dark) !important; 
    color: #ffffff !important;
    padding: 40px !important; 
    border-left: 8px solid var(--ducati-red) !important; 
    font-family: 'Segoe UI', Roboto, sans-serif !important;
    max-width: 850px !important; 
    margin: 30px auto !important;
}

/* --- TITLE & COUNTER --- */
body .rtw-header h1 { 
    font-weight: 900 !important; 
    font-size: 32px !important; 
    text-transform: uppercase !important; 
    font-style: italic !important;
    color: #ffffff !important;
    margin: 0 0 5px 0 !important;
}

/* --- BATCH FULL / STATUS MESSAGE --- */
body .rtw-counter { 
    font-size: 24px !important;        /* Increased size for the 'FULL' alert */
    color: #ffffff !important;         /* FORCED Pure White for 'BATCH 1' */
    font-weight: 900 !important; 
    text-transform: uppercase !important; 
    font-style: italic !important;     /* Matches Ducati 'RACE' header */
    margin-bottom: 30px !important;
    display: block !important;
}

body .rtw-counter span { 
    color: #ff3e3e !important;         /* FORCED Neon Red for 'IS FULL' or 'SPOTS LEFT' */
    font-weight: 900 !important; 
    text-shadow: 0 0 10px rgba(255, 62, 62, 0.4) !important; /* Subtle neon glow */
}

/* --- THE RESTORED 2-COLUMN GRID --- */
body .rtw-grid { 
    display: grid !important; 
    grid-template-columns: 1fr 1fr !important; 
    gap: 15px 30px !important; 
}

@media (max-width: 768px) { 
    body .rtw-grid { grid-template-columns: 1fr !important; } 
}

/* --- INPUTS & LABELS --- */
body .rtw-input label { 
    display: block !important; 
    font-size: 11px !important; 
    font-weight: 800 !important; 
    text-transform: uppercase !important; 
    margin-bottom: 8px !important; 
    color: #ffffff !important;
}

body .rtw-input input, 
body .rtw-input select { 
    width: 100% !important; 
    background: var(--input-bg) !important; /* Softer dark background */
    border: 1px solid #333 !important;      /* Slightly lighter border for visibility */
    color: #fff !important; 
    height: 48px !important; 
    padding: 0 15px !important; 
    border-radius: 4px !important;
    font-size: 14px !important;
}

/* --- REFINED SMALLER BUTTONS WITH SPACING FIX --- */
body .rtw-btn-group { 
    display: flex !important; 
    gap: 15px !important; 
    justify-content: flex-start !important; 
    margin-top: 60px !important; /* Forces the gap you discussed */
}

body .rtw-btn, 
body .rtw-back { 
    height: 46px !important; 
    padding: 0px 30px !important;
    margin: 30px 0px !important; /* FIXED: Removed the 30px margin that caused spacing issues */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important; 
    text-transform: uppercase !important; 
    font-style: italic !important; 
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 12px !important;      
    white-space: nowrap !important;  
    transition: 0.3s !important;
}

body .rtw-btn { background: var(--ducati-red) !important; color: #ffffff !important; }
body .rtw-back { background: transparent !important; border: 1px solid #444 !important; color: #ffffff !important; }

/* --- T&C READER --- */
/* --- T&C READER - RESPONSIVE HEIGHT FIX --- */
body .rtw-tnc-view { 
    background: #f5f5f5 !important; 
    color: #111 !important; 
    padding: 25px !important; 
    /* Changed from fixed 180px to min-height */
    min-height: 300px !important; 
    height: auto !important; 
    /* Optional: Limit max height and allow internal scrolling for very long text */
    max-height: 500px !important; 
    overflow-y: auto !important; 
    border: 4px solid var(--ducati-red) !important;
    margin: 25px 0 !important;
    border-radius: 4px !important;
    /* Improved text spacing for the 10-point list */
    line-height: 1.6 !important;
    font-size: 14px !important;
}

/* Ensure list items inside the T&C view have proper spacing */
body .rtw-tnc-view ol, 
body .rtw-tnc-view ul {
    margin-left: 20px !important;
    margin-bottom: 15px !important;
}

body .rtw-tnc-view li {
    margin-bottom: 10px !important;
}

/* --- ACKNOWLEDGMENT TEXT VISIBILITY --- */
body .rtw-agree { 
    color: #ffffff !important; 
    font-size: 13px !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    display: inline-flex !important; 
    align-items: center !important;
    margin-top: 20px !important; 
    cursor: pointer !important;
}

body .rtw-agree input[type="checkbox"] {
    margin-right: 12px !important; 
    transform: scale(1.2) !important; 
    cursor: pointer !important;
}

/* --- SUCCESS / GOAL REACHED STATE --- */
body .rtw-success-container {
    color: #ffffff !important;
    text-align: center !important;
    padding: 60px 20px !important;
}

body .rtw-success-container h1 { 
    color: #ffffff !important;         /* Pure white text */
    font-size: 36px !important;        /* Large, bold impact */
    font-weight: 900 !important; 
    text-transform: uppercase !important; 
    font-style: italic !important;     /* Matches Ducati branding */
    margin-bottom: 20px !important;
}

@media (max-width: 768px) { 
    body .rtw-success-container h1 { 
        font-size: 18px !important; /* Even smaller for mobile */
    }
}

body .rtw-success-container p {
    color: #bbbbbb !important;         /* Softer grey for sub-text */
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* THE CHECKERED FINISH LINE */
body .rtw-finish-line { 
    height: 15px !important; 
    background: repeating-linear-gradient(
        45deg, 
        #ffffff, 
        #ffffff 10px, 
        #000000 10px, 
        #000000 20px
    ) !important; 
    margin: 30px 0 !important;
    border: 1px solid #333 !important;
}

/* --- THE "CLEAN & STANDARD" RESET --- */
.rtw-staff-portal-container {
    background: #ffffff !important;
    padding: 30px !important;
    font-family: -apple-system, Segoe UI, sans-serif !important;
    color: #333 !important;
}

/* FIX: Kill the Giant Italic Title */
.rtw-staff-portal-container h1 {
    font-size: 20px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    text-transform: none !important;
    color: #000 !important;
    margin-bottom: 20px !important;
}

/* FIX: Remove the yellow "bubbles" and big text on buttons */
.rtw-staff-portal-container .button, 
.rtw-staff-portal-container a.button, 
.rtw-staff-portal-container input.button {
    background: #f0f0f1 !important; /* Standard grey */
    border: 1px solid #8c8f94 !important;
    border-radius: 4px !important; /* Square, not pill-shaped */
    color: #2c3338 !important;
    font-size: 13px !important; /* STANDARD SIZE */
    font-style: normal !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    height: auto !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* Specific button colors for clarity */
.rtw-staff-portal-container .button-primary { 
    background: #2271b1 !important; 
    color: #fff !important; 
    border-color: #2271b1 !important; 
}

.rtw-staff-portal-container input[name="rtw_delete_all_confirm"] {
    background: #fff !important;
    color: #d63638 !important;
    border-color: #d63638 !important;
}

/* TABLE: Clean grid, no fancy stuff */
.rtw-staff-portal-container table.wp-list-table {
    border-collapse: collapse !important;
    font-size: 13px !important;
    width: 100% !important;
}

.rtw-staff-portal-container th {
    background: #f6f7f7 !important;
    padding: 10px !important;
    border: 1px solid #ccd0d4 !important;
    font-weight: 600 !important;
}

.rtw-staff-portal-container td {
    padding: 10px !important;
    border: 1px solid #ccd0d4 !important;
    background: #fff !important;
}