        :root {
            --eva-primary: #006064;
            --eva-primary-light: #00838f;
            --eva-secondary: #00acc1;
            --eva-accent: #4dd0e1;
            --eva-gold: #ffc107;
            --eva-dark: #263238;
            --eva-gray: #607d8b;
            --eva-light: #eceff1;
            --eva-white: #ffffff;
            --eva-danger: #e53935;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
            --radius-sm: 6px;
            --radius-md: 12px;
            --radius-lg: 16px;
        }

        * { box-sizing: border-box; }

        body {
            background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 50%, #e0f7fa 100%);
            min-height: 100vh;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            color: var(--eva-dark);
            padding-bottom: 40px;
        }

        /* Form Container */
        .form-container {
            max-width: 800px;
            margin: 40px auto;
            padding: 0 24px;
        }

        /* Header */
        .form-header {
            background: linear-gradient(135deg, var(--eva-primary) 0%, var(--eva-primary-light) 100%);
            color: var(--eva-white);
            border-radius: var(--radius-lg) var(--radius-lg) 0 0;
            padding: 32px 40px;
            margin-bottom: 0;
            position: relative;
            overflow: hidden;
        }

        .form-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 300px;
            height: 300px;
            background: rgba(255,255,255,0.05);
            border-radius: 50%;
        }

        .form-header::after {
            content: '';
            position: absolute;
            bottom: -60%;
            left: -10%;
            width: 250px;
            height: 250px;
            background: rgba(255,255,255,0.03);
            border-radius: 50%;
        }

        .form-header .header-logo {
            max-width: 200px;
            height: auto;
            margin-bottom: 16px;
            position: relative;
            z-index: 1;
        }

        .form-header h1 {
            margin: 0;
            font-size: 28px;
            font-weight: 600;
            letter-spacing: 0.5px;
            position: relative;
            z-index: 1;
        }

        .form-header p {
            margin: 8px 0 0 0;
            opacity: 0.9;
            font-size: 14px;
            position: relative;
            z-index: 1;
        }

        .form-header-border {
            height: 4px;
            background: linear-gradient(90deg, var(--eva-secondary), var(--eva-accent), var(--eva-gold));
            margin-bottom: 0;
        }

        /* Registration Deadline Banner */
        .deadline-banner {
            background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.2) 100%);
            border: 2px solid var(--eva-gold);
            border-radius: var(--radius-md);
            padding: 12px 20px;
            position: relative;
            z-index: 1;
        }

        .deadline-content {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 16px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
        }

        .deadline-content i {
            color: var(--eva-gold);
            font-size: 18px;
            animation: pulse-clock 2s infinite;
        }

        @keyframes pulse-clock {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }

        /* Countdown Timer */
        .countdown-timer {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .countdown-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            padding: 8px 14px;
            min-width: 60px;
        }

        .countdown-value {
            font-size: 24px;
            font-weight: 700;
            color: var(--eva-gold);
            line-height: 1.2;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }

        .countdown-label {
            font-size: 11px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.85);
            letter-spacing: 0.5px;
        }

        /* Deadline Expired State */
        .deadline-banner.expired {
            background: linear-gradient(135deg, rgba(229, 57, 53, 0.2) 0%, rgba(198, 40, 40, 0.25) 100%);
            border-color: var(--eva-danger);
        }

        .deadline-banner.expired .deadline-content i {
            color: var(--eva-danger);
            animation: none;
        }

        .deadline-banner.expired .countdown-value {
            color: var(--eva-danger);
        }

        /* Registration Closed Notice */
        .registration-closed-notice {
            background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
            border: 2px solid var(--eva-danger);
            border-radius: var(--radius-lg);
            padding: 32px;
            margin: 24px 0;
            color: var(--eva-danger);
        }

        .registration-closed-notice h4 {
            color: var(--eva-danger);
        }

        .registration-closed-notice a {
            color: var(--eva-primary);
            font-weight: 600;
        }

        /* Form Disabled State */
        .form-disabled {
            opacity: 0.5;
            pointer-events: none;
            user-select: none;
        }

        @media (max-width: 768px) {
            .countdown-timer {
                gap: 8px;
            }
            .countdown-item {
                padding: 6px 10px;
                min-width: 50px;
            }
            .countdown-value {
                font-size: 18px;
            }
            .countdown-label {
                font-size: 9px;
            }
        }

        /* Alert Box */
        .alert-danger {
            background: #ffebee;
            border: 1px solid #ffcdd2;
            border-radius: var(--radius-md);
            padding: 16px 20px;
            margin: 24px 0;
            color: var(--eva-danger);
        }

        .alert-danger ul { margin: 0; padding-left: 20px; }

        /* Form Sections */
        .form-section {
            background: var(--eva-white);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-md);
            margin-bottom: 24px;
            padding: 28px 32px;
            border: 1px solid rgba(0,0,0,0.04);
            transition: box-shadow 0.3s ease;
        }

        .form-section:hover {
            box-shadow: var(--shadow-lg);
        }

        .form-section-title {
            font-weight: 700;
            font-size: 16px;
            color: var(--eva-primary);
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--eva-light);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .form-section-title i {
            font-size: 18px;
            color: var(--eva-secondary);
        }

        .form-section-title .required {
            color: var(--eva-danger);
            margin-left: 4px;
            font-weight: 400;
        }

        /* Form Labels */
        .form-label {
            font-weight: 600;
            font-size: 14px;
            color: var(--eva-dark);
            margin-bottom: 8px;
        }

        /* Form Controls */
        .form-control {
            border: 2px solid var(--eva-light);
            border-radius: var(--radius-sm);
            padding: 12px 16px;
            font-size: 15px;
            transition: all 0.2s ease;
        }

        .form-control:focus {
            border-color: var(--eva-secondary);
            box-shadow: 0 0 0 3px rgba(0,172,193,0.15);
            outline: none;
        }

        .form-control:hover:not(:focus) {
            border-color: #b0bec5;
        }

        /* Radio Groups */
        .custom-radio-group {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .custom-radio-group .form-check {
            background: var(--eva-light);
            border-radius: var(--radius-sm);
            padding: 12px 16px 12px 40px;
            margin: 0;
            transition: all 0.2s ease;
            cursor: pointer;
            border: 2px solid transparent;
            flex: 1 1 auto;
            min-width: fit-content;
        }

        .custom-radio-group .form-check:hover {
            background: #cfd8dc;
        }

        .custom-radio-group .form-check:has(input:checked) {
            background: rgba(0,172,193,0.1);
            border-color: var(--eva-secondary);
        }

        .custom-radio-group .form-check-input {
            margin-top: 2px;
        }

        .custom-radio-group .form-check-label {
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: var(--eva-dark);
        }

        /* Disabled payment mode styling */
        .custom-radio-group .form-check.disabled {
            background: #e0e0e0;
            opacity: 0.6;
            cursor: not-allowed;
        }

        .custom-radio-group .form-check.disabled:hover {
            background: #e0e0e0;
        }

        .custom-radio-group .form-check.disabled .form-check-label {
            cursor: not-allowed;
            color: #9e9e9e;
        }

        .custom-radio-group .form-check.disabled .form-check-input {
            cursor: not-allowed;
        }

        /* Radio/Checkbox Styling */
        .form-check-input {
            width: 18px;
            height: 18px;
            border: 2px solid #b0bec5;
            cursor: pointer;
        }

        .form-check-input:checked {
            background-color: var(--eva-secondary);
            border-color: var(--eva-secondary);
        }

        .form-check-input:focus {
            box-shadow: 0 0 0 3px rgba(0,172,193,0.2);
        }

        /* Size Selection Grid */
        .size-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 12px;
        }

        .size-grid .form-check {
            text-align: center;
            padding: 16px 12px;
            justify-content: center;
        }

        .size-grid .form-check-label {
            font-weight: 600;
            font-size: 16px;
        }

        /* Size Category Styling */
        .size-category {
            background: var(--eva-light);
            border-radius: var(--radius-md);
            padding: 16px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .size-category-header {
            font-weight: 700;
            font-size: 14px;
            color: var(--eva-primary);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .size-category-header i {
            font-size: 16px;
            color: var(--eva-secondary);
        }

        .size-category .size-grid .form-check {
            background: var(--eva-white);
        }

        .size-category .size-grid .form-check:hover {
            background: #e0e0e0;
        }

        .size-category .size-grid .form-check:has(input:checked) {
            background: rgba(0,172,193,0.15);
            border-color: var(--eva-secondary);
        }

        /* Entry Fee Cards */
        .fee-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .fee-grid .form-check {
            flex-direction: column;
            padding: 20px 16px;
            text-align: center;
        }

        .fee-grid .form-check-label {
            display: flex;
            flex-direction: column;
        }

        .fee-grid .fee-distance {
            font-size: 24px;
            font-weight: 700;
            color: var(--eva-primary);
        }

        .fee-grid .fee-price {
            font-size: 14px;
            color: var(--eva-gray);
            margin-top: 4px;
        }

        /* Payment Info Box */
        .payment-info {
            background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
            padding: 20px 24px;
            border-radius: var(--radius-md);
            margin-bottom: 20px;
            border-left: 4px solid #4caf50;
        }

        .payment-info h6 {
            color: #2e7d32;
            font-weight: 700;
            margin-bottom: 12px;
            font-size: 14px;
        }

        .payment-info p {
            margin-bottom: 6px;
            font-size: 14px;
            color: var(--eva-dark);
        }

        /* GCash QR Code */
        .gcash-qr-code {
            max-width: 200px;
            height: auto;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-md);
            border: 3px solid #007dfe;
        }

        #gcash_details {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            border-left-color: #007dfe;
        }

        #gcash_details h6 {
            color: #007dfe;
        }

        /* Other Input */
        .other-input {
            border: none;
            border-bottom: 2px solid var(--eva-gray);
            background: transparent;
            margin-left: 8px;
            width: 180px;
            outline: none;
            padding: 4px 0;
            transition: border-color 0.2s ease;
        }

        .other-input:focus {
            border-bottom-color: var(--eva-secondary);
        }

        /* Waiver Section */
        .waiver-text {
            font-size: 14px;
            line-height: 1.7;
            background: #fafafa;
            padding: 24px;
            border-radius: var(--radius-md);
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid var(--eva-light);
        }

        .waiver-text h6 {
            font-weight: 700;
            margin-top: 16px;
            margin-bottom: 8px;
            color: var(--eva-primary);
            font-size: 14px;
        }

        .waiver-text h6:first-of-type {
            margin-top: 12px;
        }

        .waiver-text p {
            color: var(--eva-gray);
            margin-bottom: 8px;
        }

        .waiver-agreement-check {
            background: rgba(0,172,193,0.05);
            padding: 16px 20px;
            border-radius: var(--radius-sm);
            margin-top: 16px;
            border: 2px solid var(--eva-light);
        }

        .waiver-agreement-check:has(input:checked) {
            border-color: var(--eva-secondary);
            background: rgba(0,172,193,0.1);
        }

        /* Submit Button */
        .btn-primary {
            background: linear-gradient(135deg, var(--eva-primary) 0%, var(--eva-primary-light) 100%);
            border: none;
            padding: 16px 32px;
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 0.5px;
            border-radius: var(--radius-md);
            transition: all 0.3s ease;
            text-transform: uppercase;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, var(--eva-primary-light) 0%, var(--eva-secondary) 100%);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        /* Validation States */
        .is-invalid {
            border-color: var(--eva-danger) !important;
        }

        .invalid-feedback {
            display: block;
            color: var(--eva-danger);
            font-size: 13px;
            margin-top: 6px;
        }

        .required-notice {
            color: var(--eva-gray);
            font-size: 13px;
            text-align: center;
            margin-top: 24px;
        }

        /* Text Muted */
        .text-muted {
            color: var(--eva-gray) !important;
            font-size: 13px;
        }

        /* Row Gap */
        .row {
            --bs-gutter-x: 20px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .form-container {
                padding: 0 16px;
                margin: 20px auto;
            }

            .form-header {
                padding: 24px;
                text-align: center;
            }

            .form-header .header-logo {
                max-width: 150px;
                margin-bottom: 12px;
            }

            .form-header h1 {
                font-size: 22px;
            }

            .form-section {
                padding: 20px;
            }

            .size-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .fee-grid {
                grid-template-columns: 1fr;
            }

            .custom-radio-group .form-check {
                flex: 1 1 100%;
            }

            .payment-methods-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Payment Page Styles */
        .order-summary {
            background: var(--eva-light);
            border-radius: var(--radius-md);
            padding: 20px;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
        }

        .summary-label {
            color: var(--eva-gray);
            font-weight: 500;
        }

        .summary-value {
            font-weight: 600;
            color: var(--eva-dark);
        }

        .summary-row.total {
            font-size: 1.2em;
            padding-top: 16px;
        }

        .payment-methods-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        @media (min-width: 992px) {
            .payment-methods-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 767px) {
            .payment-methods-grid {
                grid-template-columns: 1fr;
            }
        }

        .payment-method-card {
            background: var(--eva-white);
            border: 2px solid var(--eva-light);
            border-radius: var(--radius-md);
            padding: 24px;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .payment-method-card:hover {
            border-color: var(--eva-secondary);
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .payment-method-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            text-align: center;
        }

        .payment-method-header i {
            font-size: 24px;
            color: var(--eva-primary);
        }

        .payment-method-header h5 {
            margin: 0;
            font-size: 16px;
        }

        .payment-method-header .badge {
            font-size: 10px;
        }

        .payment-logo-img {
            height: 40px;
            width: auto;
            object-fit: contain;
        }

        .payment-method-desc {
            color: var(--eva-gray);
            font-size: 13px;
            margin-bottom: 16px;
            text-align: center;
            flex-grow: 1;
        }

        .payment-logos {
            display: flex;
            gap: 12px;
            margin-bottom: 16px;
            font-size: 28px;
            color: var(--eva-gray);
            justify-content: center;
        }

        .payment-logos.gcash img {
            height: 30px;
            width: auto;
        }

        .payment-badge {
            opacity: 0.7;
        }

        .btn-gcash {
            background: #007dfe;
            border: none;
            color: white;
        }

        .btn-gcash:hover {
            background: #0066cc;
            color: white;
        }

        .btn-maya {
            background: #00d65f;
            border: none;
            color: white;
        }

        .btn-maya:hover {
            background: #00b350;
            color: white;
        }

        .btn-grab {
            background: #00b14f;
            border: none;
            color: white;
        }

        .btn-grab:hover {
            background: #009940;
            color: white;
        }

        .alert-warning {
            background: #fff3cd;
            border: 1px solid #ffc107;
            color: #856404;
            border-radius: var(--radius-md);
            padding: 16px 20px;
        }

        /* International Phone Input Styles */
        .iti {
            width: 100%;
        }

        .iti__flag-container {
            z-index: 10;
        }

        .iti__selected-flag {
            background-color: var(--eva-light);
            border-radius: var(--radius-sm) 0 0 var(--radius-sm);
        }

        .iti--separate-dial-code .iti__selected-flag {
            background-color: var(--eva-light);
        }

        .iti__country-list {
            z-index: 100;
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-md);
        }

        .iti__country.iti__highlight {
            background-color: var(--eva-light);
        }

        .phone-error {
            color: var(--eva-danger);
            font-size: 0.875em;
            margin-top: 0.25rem;
            display: none;
        }

        .phone-error.show {
            display: block;
        }

        /* Flatpickr Calendar Styling */
        .flatpickr-calendar {
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            border-radius: 8px;
        }
        .flatpickr-day.selected,
        .flatpickr-day.selected:hover {
            background: var(--eva-primary, #006064);
            border-color: var(--eva-primary, #006064);
        }
        .flatpickr-day:hover {
            background: var(--eva-secondary, #00acc1);
            border-color: var(--eva-secondary, #00acc1);
            color: white;
        }
        .flatpickr-months .flatpickr-month {
            background: var(--eva-primary, #006064);
            color: white;
        }
        .flatpickr-current-month .flatpickr-monthDropdown-months,
        .flatpickr-current-month input.cur-year {
            color: white;
        }
        .flatpickr-weekdays {
            background: var(--eva-primary-light, #00838f);
        }
        span.flatpickr-weekday {
            color: white;
            font-weight: 600;
        }
        .flatpickr-date[readonly] {
            background-color: #fff;
            cursor: pointer;
        }
        .input-group-text {
            background-color: var(--eva-primary, #006064);
            color: white;
            border-color: var(--eva-primary, #006064);
        }
