:root {
    --col-bg-alt: #f8fafc;
    --border-color: #e2e8f0;
}

body.bg-gray {
    background-color: #f1f5f9;
}

.admission-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-container {
    max-width: 600px;
    margin: 30px auto 60px;
    padding: 0 15px;
}

.admission-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-header h2 {
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.form-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.form-section {
    margin-bottom: 30px;
    background: var(--col-bg-alt);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--col-primary-dark);
    display: flex;
    align-items: center;
}

.form-section h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 18px;
    background: var(--col-gold);
    margin-right: 10px;
    border-radius: 4px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.form-group.required label::after {
    content: " *";
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--col-primary);
    box-shadow: 0 0 0 3px rgba(10, 48, 92, 0.1);
    outline: none;
}

textarea.form-control {
    resize: vertical;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: #334155;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: -2px;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--col-gold);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--col-gold);
    border-color: var(--col-gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

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

input[type="file"].form-control {
    padding: 10px;
    background: #fff;
    cursor: pointer;
}

.photo-preview-box {
    margin-top: 10px;
    position: relative;
    display: inline-block;
}

.photo-preview-box img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.btn-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Info Box */
.box-info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #1e3a8a;
    line-height: 1.5;
}

.btn-large {
    padding: 16px 24px;
    font-size: 1.1rem;
    border-radius: 8px;
}

.w-100 {
    width: 100%;
}

.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
}
.hidden {
    display: none !important;
}

/* Loader */
.loader-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.9);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top-color: var(--col-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Success View */
.success-container {
    padding: 20px 10px;
}
.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.success-icon svg {
    width: 40px;
    height: 40px;
}
.receipt-details {
    background: var(--col-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-row span {
    color: #64748b;
}

@media (max-width: 600px) {
    .admission-card {
        padding: 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
