:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #0ea5e9; /* Summer blue */
    --success: #10b981;
    --danger: #ef4444;
    --gcash-blue: #0056e0;
    --text-main: #0f172a;
    --text-dim: #475569;
    --glass-bg: #ffffff;
    --border-color: #cbd5e1;
    --section-bg: #f8fafc;
}

/* Fix for Mobile Dark Mode auto-inversion */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: #ffffff;
        --text-main: #000000;
    }
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

body {
    background: #0f172a;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px 10px;
    display: flex;
    justify-content: center;
    color: var(--text-main);
}

.glass-card {
    background: var(--glass-bg) !important;
    border-radius: 24px;
    padding: 35px 30px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- NOTICES (Upcoming & Deadline) --- */
.notice-card {
    display: none;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    border: 2px solid;
    font-size: 0.95rem;
    line-height: 1.5;
}

#deadlineNotice {
    background: #fee2e2;
    color: #b91c1c;
    border-color: var(--danger);
}

#upcomingNotice {
    background: #e0e7ff;
    color: #3730a3;
    border-color: var(--primary);
}

/* --- HEADER & LOGOS --- */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between iTECH and EduLearn logos */
    margin-bottom: 20px;
}

.site-logo {
    height: 50px; /* Fixed height to keep them uniform */
    width: auto;
    object-fit: contain;
}

.header h2 { 
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b; 
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 6px;
    font-weight: 500;
}

/* --- FORM SECTIONS --- */
.form-section { margin-bottom: 35px; }

.section-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- INPUT GRID --- */
.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.input-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.input-group { margin-bottom: 20px; }

.input-group label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: #334155;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="number"],
input[type="file"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px; 
    outline: none;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #0f172a;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Standout styling for Workshop Duration */
select[name="days_avail"] {
    border-color: var(--secondary);
    background-color: #f0f9ff;
    font-weight: 700;
    color: #0369a1;
}

/* --- PRICING BADGE --- */
.amount-badge { 
    display: inline-block; 
    background: #eef2ff; 
    color: var(--primary); 
    padding: 10px 24px; 
    border-radius: 14px; 
    font-weight: 800; 
    font-size: 1.4rem;
    margin-top: 8px; 
    border: 2px solid var(--primary);
}

.bundle-tag {
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 700;
    display: none;
    margin-top: 8px;
    animation: fadeIn 0.3s ease;
}

/* --- PAYMENT METHODS --- */
.method-info {
    display: none;
    margin-top: 15px;
    padding: 20px;
    background: var(--section-bg);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.qr-container {
    background: white;
    padding: 12px;
    border-radius: 16px;
    border: 2px dashed var(--primary);
    text-align: center;
    margin: 15px auto 0;
    max-width: 190px;
}

/* --- CHECKBOX --- */
.checkmark {
    height: 20px;
    width: 20px;
    background-color: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.check-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* --- SUBMIT BUTTON --- */
.btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 20px;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.5);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 480px) {
    body { padding: 0; }
    .glass-card { padding: 30px 20px; border-radius: 0; min-height: 100vh; }
    .input-row { flex-direction: column; gap: 20px; }
    .logo-row { gap: 12px; }
    .site-logo { height: 50px; }
    .amount-badge { width: 100%; text-align: center; }
}
/* --- BIRTHDAY / DATE INPUT STYLING --- */

/* 1. Base styling to match your text inputs */
input[type="date"] {
    position: relative;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background-color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    color: var(--text-main);
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    cursor: text;
}

/* 2. Style the Calendar Icon (Chrome/Edge/Safari) */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    z-index: 2;
}

/* 3. Add a Custom Calendar Icon as a background */
input[type="date"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* 4. Focus State */
input[type="date"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* 5. Placeholder fix for iOS/Safari */
input[type="date"]:invalid::-webkit-datetime-edit {
    color: var(--text-dim);
}
