/**
 * Custom Styles
 * LKG Online Application System
 */

/* Form Styles */
.form-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h4 {
    color: #1e3c72;
    border-bottom: 2px solid #1e3c72;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.required-field::after {
    content: " *";
    color: red;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

.status-open {
    background-color: #28a745;
    color: white;
}

.status-closed {
    background-color: #dc3545;
    color: white;
}

.status-coming-soon {
    background-color: #ffc107;
    color: #333;
}

/* Landing Page */
.landing-card {
    text-align: center;
    padding: 40px;
}

.landing-card .icon {
    font-size: 4rem;
    color: #1e3c72;
    margin-bottom: 20px;
}

.landing-card h3 {
    color: #333;
    margin-bottom: 15px;
}

/* Multi-step Form */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
}

.step.active .step-number {
    background-color: #1e3c72;
    color: white;
}

.step.completed .step-number {
    background-color: #28a745;
    color: white;
}

.step-title {
    font-size: 0.9rem;
    color: #666;
}

.step.active .step-title {
    color: #1e3c72;
    font-weight: 600;
}

.step-connector {
    width: 50px;
    height: 2px;
    background-color: #dee2e6;
    margin: 0 5px;
}

.step-connector.completed {
    background-color: #28a745;
}

/* Photo Preview */
.photo-preview {
    width: 150px;
    height: 180px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.photo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .school-header {
        background: #1e3c72 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        background: white !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Instruction Page */
.instruction-list {
    list-style: none;
    padding: 0;
}

.instruction-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
}

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

.instruction-list li i {
    color: #28a745;
    margin-right: 12px;
    margin-top: 3px;
}

/* Acknowledgement */
.acknowledgement-card {
    text-align: center;
    padding: 40px;
}

.acknowledgement-card .success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
}

.application-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3c72;
    background: #f8f9fa;
    padding: 15px 30px;
    border-radius: 10px;
    display: inline-block;
    margin: 20px 0;
}

/* Reprint Form */
.reprint-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
}

/* Enhanced Checkbox Visibility */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    cursor: pointer;
    border: 2px solid #1e3c72;
    border-radius: 0.25rem;
}

.form-check-input:checked {
    background-color: #1e3c72;
    border-color: #1e3c72;
}

.form-check-input:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 0.25rem rgba(30, 60, 114, 0.25);
}

.form-check-label {
    cursor: pointer;
    padding-left: 0.5rem;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
}

/* Declaration Section - Enhanced Visibility */
.declaration-box {
    background: #fff;
    border: 3px solid #1e3c72;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.15);
}

.declaration-checkbox .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.25rem;
    border: 3px solid #1e3c72;
    flex-shrink: 0;
}

.declaration-checkbox .form-check-input:checked {
    background-color: #1e3c72;
    border-color: #1e3c72;
}

.declaration-checkbox .form-check-input:hover {
    border-color: #2a5298;
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.15);
}

.declaration-checkbox .form-check-label {
    margin-left: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #222;
}

.declaration-checkbox .form-check-label strong {
    color: #1e3c72;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .school-header h1 {
        font-size: 1.3rem;
    }

    .school-header h2 {
        font-size: 1rem;
    }

    .step-indicator {
        flex-direction: column;
        align-items: center;
    }

    .step {
        margin: 5px 0;
    }

    .step-connector {
        width: 2px;
        height: 20px;
    }
}
