/* Registration Section */
.registration-section {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.reg-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
}

.reg-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

.icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--brand-surface);
    color: var(--brand-primary);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(63, 16, 133, 0.1);
}

.reg-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.reg-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.reg-body {
    padding: 3rem;
    position: relative;
}

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

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

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-label span {
    color: var(--brand-secondary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-base);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    background: var(--bg-surface);
    border-color: rgba(63, 16, 133, 0.4);
    box-shadow: 0 0 0 4px rgba(63, 16, 133, 0.08);
}

.form-control.is-invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.error-msg {
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 500;
    display: none;
    margin-top: 0.25rem;
}

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

.form-hint svg {
    color: var(--brand-primary);
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-base);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.custom-select-trigger.active {
    background: var(--bg-surface);
    border-color: rgba(63, 16, 133, 0.4);
    box-shadow: 0 0 0 4px rgba(63, 16, 133, 0.08);
}

.custom-select-trigger.is-invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.custom-select-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    left: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    padding: 1rem;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
}

.custom-select-dropdown.show {
    display: grid;
}

.custom-option {
    text-align: center;
    padding: 0.6rem 0.2rem;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.custom-option:hover {
    background: var(--brand-surface);
    border-color: rgba(63, 16, 133, 0.3);
    color: var(--brand-primary);
}

.custom-option.selected {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.form-actions {
    margin-top: 2.5rem;
    display: flex;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-strong);
}

.form-actions .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-primary:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}

/* Success State */
.success-state {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-state h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.success-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.success-steps {
    text-align: right;
    background: var(--bg-base);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.success-steps li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.success-steps li:last-child {
    margin-bottom: 0;
}

.success-steps li svg {
    color: var(--brand-primary);
    flex-shrink: 0;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: none;
}

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

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

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

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

@media (max-width: 480px) {
    .custom-select-dropdown {
        grid-template-columns: repeat(2, 1fr);
    }
}
