/* ============================
   REGISTRATION PAGE
   ============================ */

.reg-main {
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 2rem 1rem 4rem;
    position: relative;
}

.reg-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0, 98, 155, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(58, 183, 233, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.reg-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Page Header */
.reg-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reg-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-slate-400);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.reg-back-link:hover {
    color: var(--secondary);
}

.reg-back-link .material-symbols-outlined {
    font-size: 1.125rem;
}

.reg-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .reg-title {
        font-size: 2.5rem;
    }
}

.reg-subtitle {
    color: var(--text-slate-400);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.reg-deadline {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================
   STEP INDICATOR
   ============================ */

.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex-shrink: 0;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-dark);
    border: 2px solid var(--surface-border);
    transition: all 0.3s ease;
    position: relative;
}

.step-num {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-slate-500);
    transition: all 0.3s;
}

.step-check {
    display: none;
    font-size: 1.25rem;
    color: white;
}

.step-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    white-space: nowrap;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--surface-border);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 80px;
    min-width: 20px;
    transition: background 0.3s;
}

/* Step states */
.step-item.active .step-circle {
    border-color: var(--secondary);
    background: rgba(58, 183, 233, 0.1);
}

.step-item.active .step-num {
    color: var(--secondary);
}

.step-item.active .step-label {
    color: var(--secondary);
}

.step-item.completed .step-circle {
    border-color: var(--primary);
    background: var(--primary);
}

.step-item.completed .step-num {
    display: none;
}

.step-item.completed .step-check {
    display: block;
}

.step-item.completed .step-label {
    color: var(--text-slate-300);
}

.step-connector.completed {
    background: var(--primary);
}

/* ============================
   FORM WRAPPER & STEPS
   ============================ */

.reg-form-wrapper {
    background: var(--surface-dark);
    border: 1px solid var(--surface-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
    .reg-form-wrapper {
        padding: 2.5rem;
    }
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeStep 0.35s ease-out;
}

@keyframes fadeStep {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--surface-border);
}

.form-step-icon {
    font-size: 2rem;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-step-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.form-step-desc {
    color: var(--text-slate-400);
    font-size: 0.875rem;
}

/* ============================
   FORM FIELDS
   ============================ */

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .full-width {
        grid-column: 1 / -1;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-slate-300);
    letter-spacing: 0.01em;
}

.required {
    color: #f87171;
}

.form-input {
    height: 2.75rem;
    padding: 0 0.875rem;
    background: var(--background-dark);
    border: 1.5px solid var(--surface-border);
    border-radius: 0.625rem;
    color: white;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: var(--text-slate-500);
}

.form-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(58, 183, 233, 0.12);
}

.form-input.error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.form-input.valid {
    border-color: #34d399;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option {
    background: var(--surface-dark);
    color: white;
}

.form-textarea {
    height: auto;
    min-height: 5rem;
    padding: 0.75rem 0.875rem;
    resize: vertical;
    line-height: 1.5;
}

.form-error {
    font-size: 0.75rem;
    color: #f87171;
    min-height: 0;
    transition: all 0.2s;
}

.form-error:not(:empty) {
    min-height: 1rem;
    margin-top: 0.125rem;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-slate-500);
    margin-top: 0.125rem;
}

.hint-icon {
    font-size: 0.875rem;
    flex-shrink: 0;
}

.form-char-count {
    font-size: 0.6875rem;
    color: var(--text-slate-500);
    text-align: right;
}

/* ============================
   MEMBER CARDS
   ============================ */

.member-card {
    background: var(--background-dark);
    border: 1px solid var(--surface-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s;
}

.member-card:hover {
    border-color: rgba(58, 183, 233, 0.2);
}

.member-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.member-card-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.member-number {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 183, 233, 0.1);
    border: 1px solid rgba(58, 183, 233, 0.2);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
}

.member-card-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: white;
}

.leader-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.625rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.leader-badge .material-symbols-outlined {
    font-size: 0.875rem;
}

/* ============================
   CHECKBOXES
   ============================ */

.acknowledgments {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-border);
}

.ack-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-slate-300);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkbox-label a:hover {
    color: white;
}

.form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    border: 2px solid var(--surface-border);
    border-radius: 0.3125rem;
    background: var(--background-dark);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.0625rem;
    position: relative;
}

.form-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 0.3125rem;
    top: 0.125rem;
    width: 0.3125rem;
    height: 0.5625rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox:focus {
    box-shadow: 0 0 0 3px rgba(58, 183, 233, 0.15);
}

/* ============================
   REVIEW CARDS
   ============================ */

.review-section {
    margin-bottom: 1.5rem;
}

.review-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.review-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-slate-400);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.review-edit-btn:hover {
    color: var(--secondary);
}

.review-edit-btn .material-symbols-outlined {
    font-size: 0.875rem;
}

.review-card {
    background: var(--background-dark);
    border: 1px solid var(--surface-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.review-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    gap: 1rem;
}

.review-row:last-child {
    border-bottom: none;
}

.review-label {
    font-size: 0.8125rem;
    color: var(--text-slate-500);
    flex-shrink: 0;
}

.review-value {
    font-size: 0.875rem;
    color: white;
    font-weight: 500;
    text-align: right;
}

.review-member-card {
    background: var(--background-dark);
    border: 1px solid var(--surface-border);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.625rem;
}

.review-member-name {
    font-weight: 700;
    color: white;
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-member-detail {
    font-size: 0.8125rem;
    color: var(--text-slate-400);
    line-height: 1.6;
}

.review-leader-tag {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    background: rgba(58, 183, 233, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

/* ============================
   FORM NAVIGATION
   ============================ */

.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-border);
    gap: 1rem;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), #0077b6);
    box-shadow: 0 10px 25px -5px rgba(0, 98, 155, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0077b6, var(--secondary));
    color: white;
    transform: scale(1.02);
}

/* ============================
   SUCCESS STATE
   ============================ */

.form-success {
    text-align: center;
}

.success-content {
    padding: 1rem 0;
}

.success-icon-wrapper {
    margin-bottom: 1.5rem;
}

.success-icon {
    font-size: 4rem;
    color: #34d399;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.success-desc {
    color: var(--text-slate-400);
    font-size: 0.9375rem;
    max-width: 420px;
    margin: 0 auto 2rem;
}

.success-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin-bottom: 2rem;
    text-align: left;
}

@media (min-width: 640px) {
    .success-info-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.success-info-card {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--background-dark);
    border: 1px solid var(--surface-border);
    border-radius: 0.75rem;
}

.success-info-card .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.success-info-card strong {
    display: block;
    font-size: 0.875rem;
    color: white;
    margin-bottom: 0.25rem;
}

.success-info-card p {
    font-size: 0.8125rem;
    color: var(--text-slate-400);
    line-height: 1.5;
    margin: 0;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 360px;
    margin: 0 auto;
}

.success-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ============================
   LOADING SPINNER
   ============================ */

.spin-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 639px) {
    .reg-form-wrapper {
        padding: 1.25rem;
    }

    .form-step-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .step-label {
        font-size: 0.5625rem;
    }

    .step-circle {
        width: 2rem;
        height: 2rem;
    }

    .step-num {
        font-size: 0.75rem;
    }

    .form-nav {
        flex-wrap: wrap;
    }
}

/* ============================
   PAYMENT UPLOAD SECTION
   ============================ */

.payment-upload-section {
    margin-bottom: 1.5rem;
}

.payment-info-box {
    background: var(--surface-1, #1e293b);
    border: 1px solid var(--border, #334155);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
}

.payment-cliq {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.payment-cliq .material-symbols-outlined {
    font-size: 1.75rem;
    color: var(--accent, #00629B);
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-cliq strong {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary, #f1f5f9);
}

.payment-cliq p {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    margin: 2px 0;
}

.cliq-alias {
    font-weight: 700;
    color: var(--accent, #00629B);
    background: rgba(0,98,155,0.12);
    padding: 1px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.payment-note {
    font-size: 0.8rem !important;
    color: var(--text-muted, #64748b) !important;
    margin-top: 4px !important;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px dashed var(--border, #334155);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--surface-1, #1e293b);
    text-align: center;
}

.file-upload-wrapper:hover .file-upload-label,
.file-upload-wrapper:focus-within .file-upload-label {
    border-color: var(--accent, #00629B);
    background: rgba(0,98,155,0.06);
}

.file-upload-icon {
    font-size: 2.25rem;
    color: var(--accent, #00629B);
}

.file-upload-text {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary, #f1f5f9);
}

.file-upload-hint {
    font-size: 0.8125rem;
    color: var(--text-secondary, #94a3b8);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface-1, #1e293b);
    border: 1px solid var(--accent, #00629B);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}

.file-preview .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--accent, #00629B);
}

.file-preview-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary, #94a3b8);
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
}

.file-remove-btn:hover {
    color: #ef4444;
}
