/* === Registration Page — Dark Premium Theme === */

.reg-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
    min-height: 100vh;
}

/* Hero / Header */
.reg-hero {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    border-left: 4px solid;
    border-image: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%) 1;
    box-shadow: var(--shadow-md);
}

.reg-logo {
    margin-bottom: 20px;
}

.reg-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.reg-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.reg-hero-content { }

.reg-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.reg-hero-title h1, .reg-hero-title h2, .reg-hero-title h3 {
    color: var(--text-primary);
}

.reg-hero-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.reg-hero-desc p { margin-bottom: 8px; }

.reg-hero-location {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reg-location-icon { font-size: 1.1rem; }

/* Sections */
.reg-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.reg-section-title {
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* Form */
.reg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.reg-field { margin-bottom: 12px; }

.reg-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.reg-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.reg-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(229,57,53,0.15);
}

.reg-input::placeholder { color: var(--text-muted); }

/* Calendar */
.reg-calendar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reg-cal-day {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.reg-cal-day:hover:not(.reg-cal-day-full) {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.reg-cal-day-expanded {
    border-color: var(--accent-primary) !important;
}

.reg-cal-day-full {
    opacity: 0.5;
    cursor: not-allowed;
}

.reg-cal-day-header {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
}

.reg-cal-day-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    min-width: 50px;
    text-align: center;
    line-height: 1;
}

.reg-cal-day-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reg-cal-day-name {
    font-weight: 600;
    text-transform: capitalize;
    font-size: 0.95rem;
}

.reg-cal-day-month {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: capitalize;
}

.reg-cal-day-badge { }

.reg-badge-spots {
    background: rgba(76,175,80,0.15);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.reg-badge-full {
    background: rgba(255,82,82,0.15);
    color: var(--error);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.reg-cal-arrow {
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.reg-cal-arrow-open {
    transform: rotate(180deg);
}

/* Slots (expanded under a day) */
.reg-cal-slots {
    padding: 0 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: regSlideDown 0.3s ease;
}

@keyframes regSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.reg-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.reg-slot:hover:not(.reg-slot-full) {
    border-color: var(--accent-primary);
    background: rgba(229,57,53,0.05);
}

.reg-slot-selected {
    border-color: var(--accent-primary) !important;
    background: rgba(229,57,53,0.1) !important;
    box-shadow: var(--shadow-glow);
}

.reg-slot-full {
    opacity: 0.4;
    cursor: not-allowed;
}

.reg-slot-time {
    font-weight: 600;
    font-size: 1rem;
}

.reg-slot-spots { }

.reg-slot-check {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Checkbox */
.reg-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reg-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

/* Buttons */
.reg-btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--button-text);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.reg-btn-primary:hover {
    box-shadow: 0 0 30px rgba(229,57,53,0.3);
    transform: translateY(-1px);
}

.reg-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reg-btn-secondary {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
}

.reg-btn-secondary:hover {
    border-color: var(--text-muted);
}

/* Privacy Modal */
.reg-modal-privacy {
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.reg-privacy-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reg-privacy-content h1,
.reg-privacy-content h2,
.reg-privacy-content h3 {
    color: var(--text-primary);
    margin: 16px 0 8px;
}

.reg-privacy-content p { margin-bottom: 8px; }

.reg-privacy-content ul,
.reg-privacy-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.reg-privacy-content a { color: var(--accent-primary); }

/* Error */
.reg-error {
    background: rgba(255,82,82,0.1);
    color: var(--error);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    text-align: center;
    border: 1px solid rgba(255,82,82,0.2);
}

/* Modal */
.reg-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.reg-modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 90%;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.reg-modal h3 {
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.reg-modal p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.reg-modal-option {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.reg-modal-option:hover {
    border-color: var(--accent-primary);
    background: rgba(229,57,53,0.05);
}

.reg-modal-date { font-weight: 600; }
.reg-modal-time { color: var(--text-muted); }

/* Success */
.reg-success {
    text-align: center;
    padding: 60px 20px;
}

.reg-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--button-text);
    margin: 0 auto 20px;
    animation: regPulse 2s infinite;
}

@keyframes regPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,0.4); }
    50% { box-shadow: 0 0 0 15px rgba(229,57,53,0); }
}

.reg-success h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.reg-success-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px auto;
    max-width: 350px;
    border: 1px solid var(--border-color);
}

.reg-success-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.reg-success-detail {
    display: flex;
    gap: 16px;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reg-success-email {
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 24px;
}

/* Loading / Empty */
.reg-loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.reg-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: regSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.reg-spinner-sm {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: regSpin 0.8s linear infinite;
    display: inline-block;
}

@keyframes regSpin { to { transform: rotate(360deg); } }

.reg-empty {
    text-align: center;
    padding: 80px 20px;
}

.reg-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.reg-empty h2 {
    margin-bottom: 8px;
}

.reg-empty p {
    color: var(--text-muted);
}

.reg-no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

/* Responsive */
@media (max-width: 640px) {
    .reg-page { padding: 12px 8px; }
    .reg-hero { padding: 20px; }
    .reg-form-row { grid-template-columns: 1fr; }
    .reg-cal-day-header { padding: 12px; }
    .reg-cal-day-number { font-size: 1.5rem; min-width: 40px; }
    .reg-success-detail { flex-direction: column; gap: 4px; }
}
