/* =========================================================
   REGISTER PAGE STYLES
   ========================================================= */

/* ============ HERO ============ */
.reg-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 55px 0 45px;
    position: relative;
    overflow: hidden;
}

.reg-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,160,23,0.15), transparent 70%);
    border-radius: 50%;
}

.reg-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.reg-hero-badge {
    display: inline-block;
    background: rgba(212,160,23,0.15);
    color: var(--gold-light);
    border: 1px solid rgba(212,160,23,0.35);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.reg-hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}

.reg-hero-title span { color: var(--gold-light); }

.reg-hero-sub {
    font-size: 15.5px;
    color: #cbd5e1;
    line-height: 1.65;
    margin: 0;
}

/* ============ ERROR ALERT ============ */
.reg-alert {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 25px 0 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reg-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--danger);
}

.reg-alert-icon {
    width: 38px;
    height: 38px;
    background: rgba(220,38,38,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    font-size: 17px;
    flex-shrink: 0;
}

.reg-alert-content strong {
    display: block;
    color: #7f1d1d;
    font-size: 14px;
    margin-bottom: 6px;
}

.reg-alert-content ul {
    margin: 0;
    padding-left: 18px;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.65;
}

/* ============ PROGRESS INDICATOR ============ */
.reg-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 35px 0 30px;
    padding: 0 15px;
}

.reg-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rp-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-light);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: 0.3s;
}

.reg-progress-step.active .rp-circle {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: var(--gold-light);
    border-color: var(--maroon);
    box-shadow: 0 4px 12px rgba(127,17,32,0.3);
}

.rp-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reg-progress-step.active .rp-label {
    color: var(--maroon);
}

.reg-progress-line {
    flex: 1;
    max-width: 70px;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 24px;
}

/* ============ REG CARD ============ */
.reg-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(10,30,60,0.04);
    transition: 0.3s;
}

.reg-card:hover {
    box-shadow: 0 6px 20px rgba(10,30,60,0.08);
}

.reg-card-head {
    background: linear-gradient(135deg, #fbfaf6, #f5f2e8);
    padding: 16px 22px;
    border-bottom: 1px solid #e8dfc4;
    display: flex;
    align-items: center;
    gap: 14px;
}

.reg-card-num {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: var(--gold-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(127,17,32,0.25);
}

.reg-card-title h3 {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 2px;
    letter-spacing: 0.2px;
}

.reg-card-title p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.reg-card-body {
    padding: 22px;
}

/* ============ FORM FIELDS ============ */
.reg-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.reg-label span {
    color: var(--danger);
    font-weight: 800;
}

.reg-input,
.reg-select {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    transition: 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.reg-input:focus,
.reg-select:focus {
    background: #fff;
    border-color: var(--maroon);
    box-shadow: 0 0 0 4px rgba(127,17,32,0.08);
}

.reg-input:read-only {
    background: #f1f5f9;
    color: var(--text-muted);
    cursor: not-allowed;
}

.reg-input::placeholder {
    color: #94a3b8;
}

.reg-textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.reg-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 36px;
    cursor: pointer;
}

.reg-help {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.4;
}

/* ============ PAYMENT BOX ============ */
.reg-payment-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #fbfaf6, #f5f2e8);
    border: 1px dashed var(--gold);
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 16px;
}

.reg-payment-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 20px;
    flex-shrink: 0;
}

.reg-payment-text h4 {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--maroon);
    margin: 0 0 4px;
    letter-spacing: 0.2px;
}

.reg-payment-text p {
    font-size: 12.5px;
    color: var(--slate);
    margin: 0;
    line-height: 1.5;
}

.reg-payment-text strong {
    color: var(--navy);
    font-weight: 700;
}

/* ============ QR CODE ============ */
.reg-qr-wrap {
    margin-top: 18px;
    text-align: center;
}

.reg-qr-inner {
    display: inline-block;
    background: #fff;
    border: 2px solid var(--maroon);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(127,17,32,0.15);
}

.reg-qr-inner img {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 8px;
}

.reg-qr-caption {
    font-size: 11.5px;
    color: var(--maroon);
    font-weight: 700;
    margin-top: 8px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ============ FILE UPLOAD ============ */
.reg-upload {
    position: relative;
}

.reg-upload-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1.5px dashed var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.reg-upload-label:hover {
    background: #fff;
    border-color: var(--maroon);
    border-style: solid;
    box-shadow: 0 4px 12px rgba(127,17,32,0.08);
}

.reg-upload-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(127,17,32,0.08), rgba(127,17,32,0.04));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maroon);
    font-size: 18px;
    flex-shrink: 0;
}

.reg-upload-text strong {
    display: block;
    font-size: 13.5px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 2px;
}

.reg-upload-text small {
    font-size: 11.5px;
    color: var(--text-muted);
}

.reg-upload-preview {
    margin-top: 10px;
}

.reg-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

.reg-preview-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.reg-preview-file {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    font-size: 20px;
    flex-shrink: 0;
}

.reg-preview-info {
    flex: 1;
    min-width: 0;
}

.reg-preview-info strong {
    display: block;
    font-size: 12.5px;
    color: var(--navy);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.reg-preview-info small {
    font-size: 11px;
    color: var(--success-dark);
    font-weight: 600;
}

/* ============ CONSENT ============ */
.reg-consent {
    padding: 4px 0;
}

.reg-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.reg-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.reg-checkmark {
    width: 22px;
    height: 22px;
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: 0.2s;
}

.reg-checkbox input:checked ~ .reg-checkmark {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    border-color: var(--maroon);
}

.reg-checkbox input:checked ~ .reg-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.reg-checktext {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.65;
}

.reg-checktext a {
    color: var(--maroon);
    font-weight: 700;
    text-decoration: underline;
}

/* ============ SIDEBAR ============ */
.reg-sidebar {
    position: sticky;
    top: 20px;
}

.reg-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(10,30,60,0.04);
}

.reg-summary-head {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reg-summary-head i {
    color: var(--gold-light);
    font-size: 16px;
}

.reg-summary-head h4 {
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 0.3px;
}

.reg-summary-body {
    padding: 18px;
}

.reg-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--slate);
}

.reg-summary-row strong {
    color: var(--maroon);
    font-weight: 800;
    font-size: 15px;
    font-family: 'Cinzel', serif;
}

.reg-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.reg-summary-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    padding-top: 4px;
}

.reg-summary-note i {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============ SUBMIT BUTTON ============ */
.reg-submit-btn {
    width: 100%;
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 8px 20px rgba(127,17,32,0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.reg-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(127,17,32,0.38);
}

.reg-submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* ============ INFO BOX ============ */
.reg-info-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reg-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--slate);
    font-weight: 500;
}

.reg-info-item i {
    color: var(--gold);
    width: 16px;
    text-align: center;
    font-size: 13px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .reg-hero { padding: 45px 0 35px; }
    .reg-hero-title { font-size: 30px; }
    .reg-hero-sub { font-size: 14.5px; }

    .reg-sidebar { position: static; margin-top: 20px; }
    .reg-progress-line { max-width: 40px; }
}

@media (max-width: 768px) {
    .reg-progress { padding: 0 5px; gap: 0; }
    .rp-circle { width: 36px; height: 36px; font-size: 13px; }
    .rp-label { font-size: 10px; }
    .reg-progress-line { max-width: 25px; margin: 0 4px; margin-bottom: 22px; }

    .reg-card-head { padding: 14px 16px; gap: 12px; }
    .reg-card-num { width: 38px; height: 38px; font-size: 13px; }
    .reg-card-title h3 { font-size: 15px; }
    .reg-card-body { padding: 18px 16px; }

    .reg-qr-inner img { width: 170px; height: 170px; }
}

@media (max-width: 480px) {
    .reg-hero-title { font-size: 24px; }
    .reg-hero-badge { font-size: 11.5px; padding: 5px 14px; }

    .rp-label { display: none; }
    .reg-progress-line { margin-bottom: 0; max-width: 30px; }

    .reg-card-head { padding: 12px 14px; }
    .reg-card-body { padding: 14px; }

    .reg-upload-label { padding: 12px 14px; }
    .reg-upload-icon { width: 38px; height: 38px; font-size: 16px; }
    .reg-upload-text strong { font-size: 13px; }
    .reg-upload-text small { font-size: 11px; }

    .reg-qr-inner img { width: 150px; height: 150px; }
    .reg-submit-btn { padding: 14px 18px; font-size: 14.5px; }
}