/* --- Container --- */
.admission-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* --- Progress Bar --- */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    padding: 0 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.step-label {
    font-size: 1.3em;
    color: #999;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: #333;
}

.progress-line {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    margin: 0 15px;
    margin-bottom: 30px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.progress-line.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* --- Form Steps --- */
.form-step {
    display: none;
    animation: fadeSlideIn 0.5s ease forwards;
}

.form-step.active {
    display: block;
}

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

/* --- Step Header --- */
.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5em;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 2.8em;
    color: #302851;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-subtitle {
    font-size: 1.6em;
    color: #888;
}

/* --- Form Grid --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 5px;
}

/* --- Form Group --- */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 1.6em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
}

/* --- Input Wrapper with Icon --- */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #667eea;
    font-size: 1.4em;
    z-index: 1;
    pointer-events: none;
}

.textarea-wrapper .input-icon {
    top: 16px;
    align-self: flex-start;
}

.form-group .form-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.5em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
}

.form-group .form-input::placeholder {
    color: #aaa;
}

.form-group .form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.form-group .form-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-group .form-input.success {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.08);
}

/* Textarea */
.form-group .form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Select dropdown arrow */
.form-group select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 8.825L0.375 3.2l.85-.85L6 7.125 10.775 2.35l.85.85z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* --- Error Message --- */
.error-message {
    display: block;
    font-size: 1.3em;
    color: #e74c3c;
    margin-top: 6px;
    min-height: 20px;
    transition: all 0.3s ease;
    padding-left: 5px;
}

/* --- Radio Group --- */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    color: #444;
    cursor: pointer;
    padding: 12px 22px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
}

.radio-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.04);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.06);
}

/* --- Photo Upload --- */
.photo-upload-area {
    position: relative;
    border: 3px dashed #d0d0d0;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    overflow: hidden;
}

.photo-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.03);
}

.photo-upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.06);
    transform: scale(1.01);
}

.photo-upload-area.has-photo {
    border-style: solid;
    border-color: #28a745;
    padding: 20px;
}

.photo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 4em;
    color: #667eea;
    margin-bottom: 5px;
}

.upload-text {
    font-size: 1.7em;
    color: #555;
    font-weight: 600;
}

.upload-hint {
    font-size: 1.3em;
    color: #999;
}

.preview-image {
    display: none;
    max-width: 200px;
    max-height: 250px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
}

.photo-upload-area.has-photo .photo-preview {
    display: none;
}

.photo-upload-area.has-photo .preview-image {
    display: block;
    margin: 0 auto;
}

.remove-photo {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.4em;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.remove-photo:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.photo-upload-area.has-photo .remove-photo {
    display: flex;
}

/* --- Confirmation Section --- */
.confirmation-section {
    margin-top: 30px;
}

.confirmation-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    padding: 30px;
}

.confirmation-card h3 {
    font-size: 2em;
    color: #302851;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirmation-card h3 i {
    color: #667eea;
}

.checkbox-group {
    margin-bottom: 18px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    font-size: 1.5em;
    color: #444;
    line-height: 1.6;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #ccc;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    flex: 1;
}

/* --- Navigation Buttons --- */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.btn-next,
.btn-prev,
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.6em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    margin-left: auto;
}

.btn-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-prev {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.25);
}

.btn-prev:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-submit.loading .spinner {
    display: inline-block;
}

.btn-submit.loading i {
    display: none;
}

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

/* --- Success Modal --- */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.success-modal.active {
    display: flex;
}

.success-content {
    background: white;
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: modalPop 0.5s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    font-size: 5em;
    color: #28a745;
    margin-bottom: 20px;
    animation: successBounce 0.6s ease 0.3s;
}

@keyframes successBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.success-content h2 {
    font-size: 2.8em;
    color: #302851;
    margin-bottom: 15px;
}

.success-content p {
    font-size: 1.6em;
    color: #666;
    line-height: 1.7;
    margin-bottom: 10px;
}

.success-note {
    font-size: 1.4em;
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-size: 1.6em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    margin-top: 15px;
}

.btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
}


/* ============================
   Responsive Design
   ============================ */

@media (max-width: 768px) {
    .admission-container {
        padding: 25px 15px 60px;
    }

    .progress-bar {
        margin-bottom: 35px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 2em;
    }

    .step-label {
        font-size: 2em;
    }

    .progress-line {
        margin: 0 8px;
        margin-bottom: 25px;
    }

    .step-icon {
        width: 65px;
        height: 65px;
        font-size: 2em;
    }

    .step-title {
        font-size: 2.3em;
    }

    .step-subtitle {
        font-size: 2em;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-nav {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .btn-next,
    .btn-prev,
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 15px 30px;
    }

    .btn-next {
        margin-left: 0;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .confirmation-card {
        padding: 20px;
    }

    .confirmation-card h3 {
        font-size: 1.7em;
    }

    .photo-upload-area {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .step-label {
        font-size: 1.5em;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 1.3em;
    }

    .progress-line {
        margin: 0 5px;
        margin-bottom: 22px;
    }

    .step-title {
        font-size: 2em;
    }

    .form-label {
        font-size: 2em;
    }

    .form-group .form-input {
        font-size: 1.8em;
        padding: 12px 15px 12px 42px;
    }

    .success-content {
        padding: 35px 25px;
    }

    .success-content h2 {
        font-size: 2.5em;
    }
}
