/* Modern UI Enhancements */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;900&display=swap');

body,
input,
select,
textarea,
button {
    font-family: 'Roboto', Arial, sans-serif;
}

p {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

:root {
    --primary-color: #1e3a1e;
    --primary-dark: #2d5a2d;
    --secondary-color: #1a2e1a;
    --light-bg: #f4f7f4;
    --dark-text: #1a2e1a;
    --secondary-color: #2e3e4e;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f4f7f4;
    --dark-text: #2e3e4e;
    --border-radius: 10px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.25s ease;
    --section-bg: #ffffff;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ── PROFILE FORM WRAPPER ── */
/* #stuproFrm .container {
    max-width: 1100px;
} */

/* ── FORM HEADER ── */
.main-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    padding: 28px 20px !important;
    margin-bottom: 28px;
    box-shadow: 0 4px 15px rgba(30, 58, 30, 0.25);
}

.main-title h4 {
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0 0 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.interview-title-display {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 15px !important;
    font-weight: 600;
    margin: 6px 0 4px;
    line-height: 1.4;
}

.interview-lastdate-display {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 13px !important;
    margin: 0;
    font-weight: 500;
}

/* ── SECTION CARDS ── */
.form-section-card {
    background: var(--section-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    padding: 28px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.form-section-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.11);
}

.form-section-title {
    font-size: 17px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    font-size: 1rem;
}

/* ── PHOTO / SIGNATURE UPLOAD CARD ── */
.upload-card {
    background: var(--light-bg);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
}

.upload-card:hover {
    background: #eaf4ea;
    border-color: var(--primary-dark);
}

.upload-card img {
    border-radius: 8px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.upload-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-top: 10px !important;
    margin-bottom: 4px;
}

.upload-card h5 {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 10px;
}

/* ── FORM CONTROLS ── */
.form-control {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-family: 'Roboto', Arial, sans-serif;
    color: #374151;
    transition: var(--transition);
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 30, 0.12);
    outline: none;
    background: #fff;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231e3a1e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ── LABELS ── */
.form-group label,
label {
    font-size: 15px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
    display: block;
}

.form-step .form-group label,
label {}

.form-group label span {
    color: var(--danger-color);
}

/* ── RADIO / CHECKBOX ── */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ── TABLES ── */
.table {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    font-size: 17px;
    font-family: 'Roboto', Arial, sans-serif;
}

.table thead th {
    background: #4b5563;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 14px;
    font-size: 16px;
    font-family: 'Roboto', Arial, sans-serif;
    letter-spacing: 0.3px;
    text-align: center;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--light-bg);
}

.table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    border-color: #f1f5f9;
}

.table tfoot td {
    padding: 10px 12px;
    background: #f8fafc;
}

/* ── BUTTONS ── */
.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 17px;
    font-family: 'Roboto', Arial, sans-serif;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: #fff;
    padding: 10px 28px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(30, 58, 30, 0.35);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: #fff;
    padding: 10px 28px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1aab82);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.35);
    color: #fff;
}

.btn-danger {
    background: var(--danger-color);
    border: none;
    color: #fff;
    padding: 6px 12px;
}

.btn-danger:hover {
    background: #c82333;
    color: #fff;
}

.btn-outline-add {
    background: #fff;
    border: 1.5px solid #4b5563;
    color: #4b5563;
    padding: 6px 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-add:hover {
    background: #4b5563;
    color: #fff;
}

/* ── ACTION BUTTONS ROW ── */
.form-action-row {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-top: 8px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── PAYMENT SECTION ── */
.payment-qr-wrap {
    text-align: center;
    padding: 16px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.payment-qr-wrap img {
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    max-width: 100%;
    height: 260px;
    object-fit: contain;
}

.payment-qr-wrap p {
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ── FOOTER INSIDE FORM ── */
#stuproFrm footer {
    background: linear-gradient(135deg, #1a2e1a, #2d5a2d);
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    margin-top: 8px;
    border: none;
    box-shadow: none;
    font-size: 17px;
    line-height: 1.8;
}

#stuproFrm footer p {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
}

#stuproFrm footer a {
    color: rgba(255, 255, 255, 0.8);
}

#stuproFrm footer a:hover {
    color: #fff;
}

#stuproFrm footer strong {
    color: #fff;
}

/* ── OVERLAY ── */
.overlay {
    background: rgba(255, 255, 255, 0.85) url("../images/refresh.gif") center no-repeat;
    backdrop-filter: blur(3px);
}

/* ── ERROR MESSAGES ── */
label.error,
.error {
    color: var(--danger-color);
    font-size: 0.78rem;
    margin-top: 4px;
    display: block;
}

/* ── WORD COUNT ── */
#rchars {
    font-weight: 700;
    color: var(--primary-color);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .form-section-card {
        padding: 18px 14px;
    }

    .main-title h4 {
        font-size: 1.1rem;
    }

    .form-action-row {
        flex-direction: column;
        align-items: center;
    }

    .table {
        font-size: 0.78rem;
    }
}

/* ── FOCUS VISIBLE ── */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    outline-color: var(--primary-color);
}

/* ── SMOOTH SCROLLBAR ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 3px;
}

/* ── STEP INDICATOR ── */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding: 0 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 90px;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    transition: var(--transition);
}

.step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    transition: var(--transition);
    line-height: 1.3;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-bottom: 22px;
    transition: var(--transition);
}

.step-item.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 58, 30, 0.3);
}

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

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

.step-item.completed .step-label {
    color: var(--primary-dark);
}

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

/* ── FORM STEPS ── */
.form-step {
    display: none;
}

.form-step[data-step="1"] {
    display: block;
}

/* ── STEP NAV ROW ── */
.step-nav-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 16px 0 4px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #e2e8f0;
    border: none;
    color: #4b5563;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #cbd5e1;
    color: #1e293b;
}

@media (max-width: 576px) {
    .step-indicator {
        gap: 0;
    }

    .step-item {
        min-width: 52px;
    }

    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

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

    .step-nav-row {
        justify-content: center;
    }
}

/* ── PAYMENT SUMMARY CARD ── */
.payment-summary-card {
    border: 1.5px solid #86efac;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30,58,30,0.08);
}
.payment-summary-header {
    background: linear-gradient(135deg, var(--dark), var(--maroon2));
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
}
.payment-summary-header i { font-size: 1.1rem; }
.payment-summary-body {
    padding: 20px 24px 8px;
    background: #fff;
}
.payment-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.92rem;
}
.psr-label { color: #6b7280; font-weight: 500; }
.psr-value { color: #1a2e1a; font-weight: 600; text-align: right; max-width: 60%; }
.payment-summary-divider {
    border-top: 1.5px dashed #d1fae5;
    margin: 8px 0;
}
.payment-fee-row .psr-label { font-size: 1rem; font-weight: 700; color: #15803d; }
.payment-fee-row .psr-value { font-size: 1.3rem; font-weight: 800; color: #15803d; }
.payment-summary-footer {
    background: #f0fdf4;
    padding: 16px 24px 20px;
    text-align: center;
    border-top: 1px solid #d1fae5;
}
.payment-note {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 14px;
}
.btn-pay {
    background: linear-gradient(135deg, var(--dark), var(--maroon2));
    color: #fff;
    border: none;
    padding: 12px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
    width: 100%;
}
.btn-pay:hover { opacity: 0.88; color: #fff; }
.btn-pay i { margin-right: 8px; }

/* ── PAYMENT INFO BOX ── */
.payment-info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 20px 24px;
}
.payment-info-icon {
    font-size: 2rem;
    color: #16a34a;
    margin-top: 2px;
}
.payment-info-title {
    font-size: 1rem;
    font-weight: 700;
    color: #15803d;
    margin: 0 0 4px;
}
.payment-info-desc {
    font-size: 0.9rem;
    color: #166534;
    margin: 0;
}

/* ── LEGACY COMPAT ── */
.pass-link a {
    font-size: 14px;
    font-weight: 500;
}

.project-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.project-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.project-list li:last-child {
    border-bottom: none;
}

.title-text .title {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 30px;
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: #fff;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #333;
}
