/* ============================================================
   REGISTRATION PAGE STYLES — Infra Polytechnic Institute
   ============================================================ */

/* Page header styles removed (header section deleted from templates) */

/* ── Progress Bar ── */
.progress-section {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: var(--shadow-sm);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border: 3px solid var(--gray-300);
}

.step-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: var(--gray-200);
    margin: 0 -2px;
    margin-bottom: 28px;
    transition: var(--transition);
}

/* Active state */
.progress-step.active .step-circle {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(26,82,118,0.35);
}

.progress-step.active .step-label { color: var(--primary); font-weight: 700; }

/* Completed state */
.progress-step.done .step-circle {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.progress-step.done .step-label { color: var(--secondary); }
.progress-line.done { background: var(--secondary); }

/* ── Registration Layout ── */
.registration-section {
    background: var(--gray-100);
    padding: 50px 0 80px;
}

.reg-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: flex-start;
}

/* ── Form Card ── */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-card-header {
    background: var(--primary);
    color: var(--white);
    padding: 22px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-card-header .header-icon { font-size: 1.6rem; }
.form-card-header h2 { color: var(--white); font-size: 1.3rem; margin: 0; }
.form-card-header p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin: 4px 0 0; }

/* Form Steps (panels) */
.form-step { display: none; padding: 30px; }
.form-step.active { display: block; }

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
.form-row.single    { grid-template-columns: 1fr; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.form-group:last-child { margin-bottom: 0; }

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

label .required {
    color: var(--danger);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,82,118,0.1);
}

.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(231,76,60,0.1);
}

.form-control.success {
    border-color: var(--secondary);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236c757d' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 38px;
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--gray-600);
    margin-top: 2px;
}

.field-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 2px;
    display: none;
}

.field-error.show { display: block; }

/* ── File Upload ── */
.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-100);
    position: relative;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(26,82,118,0.04);
}

.file-upload-area.has-file {
    border-color: var(--secondary);
    background: rgba(39,174,96,0.04);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-icon { font-size: 2.5rem; margin-bottom: 10px; }

.upload-text p {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 5px;
    font-weight: 500;
}

.upload-text span {
    font-size: 0.78rem;
    color: var(--gray-600);
}

.upload-text .allowed-types {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.type-tag {
    background: var(--gray-200);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--gray-600);
    font-family: monospace;
}

/* File Preview */
.file-preview {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(39,174,96,0.08);
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid rgba(39,174,96,0.25);
}

.file-preview.show { display: flex; }

.preview-icon { font-size: 1.6rem; flex-shrink: 0; }

.preview-info { flex: 1; min-width: 0; }
.preview-name { font-size: 0.88rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-size { font-size: 0.78rem; color: var(--gray-600); }

.preview-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.preview-remove:hover { background: rgba(231,76,60,0.1); }

/* ── Review Step ── */
.review-section {
    margin-bottom: 24px;
}

.review-section h4 {
    font-size: 0.95rem;
    color: var(--primary);
    padding: 10px 14px;
    background: rgba(26,82,118,0.06);
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary);
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.review-item {
    background: var(--gray-100);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.review-item .review-key {
    font-size: 0.78rem;
    color: var(--gray-600);
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
}

.review-item .review-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

/* Documents review */
.review-docs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.doc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-100);
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.doc-check .check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.doc-check span {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

/* ── Checkbox / Radio ── */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group.inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.custom-check,
.custom-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text);
    user-select: none;
}

.custom-check input,
.custom-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ── Form Navigation ── */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 30px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    gap: 10px;
}

.btn-prev {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 11px 28px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-prev:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-next,
.btn-submit {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 11px 32px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,82,118,0.3);
}

.btn-submit {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-submit:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    box-shadow: 0 6px 20px rgba(39,174,96,0.3);
}

/* Step counter */
.step-count {
    font-size: 0.82rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ── Sidebar ── */
.reg-sidebar {
    /* sidebar removed from template; kept for backward compatibility if needed */
    display: none;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.sidebar-card-header {
    padding: 15px 20px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card-header.amber { background: linear-gradient(135deg, #d4ac0d, var(--accent)); }
.sidebar-card-header.green { background: var(--secondary); }

.sidebar-card-body { padding: 18px 20px; }

/* Required Docs list */
.req-docs-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 0.88rem;
    color: var(--text);
}

.req-docs-list li:last-child { border-bottom: none; }
.req-docs-list li::before { content: '📄'; flex-shrink: 0; margin-top: 1px; }

/* Fee summary */
.fee-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 0.88rem;
}

.fee-summary-list li:last-child {
    border-bottom: none;
    padding-top: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.fee-summary-list li span:last-child { color: var(--primary); font-weight: 600; }
.fee-summary-list li:last-child span:last-child { color: var(--secondary); font-size: 1.1rem; }

.scholarship-note-sidebar {
    background: rgba(243,156,18,0.08);
    border: 1px solid rgba(243,156,18,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #7d6608;
    margin-top: 12px;
    text-align: center;
    font-weight: 600;
}

/* Help card */
.help-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 0.85rem;
    color: var(--text);
}

.help-list li:last-child { border-bottom: none; }

/* ── Responsive ── */
@media (max-width: 992px) {
    .reg-layout { grid-template-columns: 1fr; }
    .reg-sidebar { display: none; }
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .form-row.three-col { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .review-docs { grid-template-columns: 1fr; }
    .progress-steps { gap: 0; }
    .step-label { display: none; }
    .reg-sidebar { display: none; }
    /* responsive header rules removed */
    .form-step { padding: 22px 18px; }
    .form-navigation { padding: 18px; }
}

@media (max-width: 480px) {
    .progress-section { padding: 20px 0; }
    .step-circle { width: 36px; height: 36px; font-size: 0.95rem; }
    /* responsive header rules removed */
}
