/* Traditional School Admission Form Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SolaimanLipi', 'Kalpurush', 'Nikosh', Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header Section */
.form-header {
    border: 3px solid #000;
    padding: 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.school-logo {
    width: 80px;
    height: 80px;
    border: 2px solid #333;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    padding: 5px;
}

.school-info {
    flex: 1;
    text-align: center;
}

.school-name-bangla {
    font-size: 28px;
    font-weight: bold;
    color: #000080;
    margin-bottom: 5px;
    line-height: 1.3;
}

.school-name-english {
    font-size: 20px;
    font-weight: bold;
    color: #000080;
    margin-bottom: 5px;
    font-family: Arial, sans-serif;
}

.school-address {
    font-size: 14px;
    color: #333;
    font-family: Arial, sans-serif;
}

.photo-box {
    width: 120px;
    height: 140px;
    border: 2px solid #000;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    position: relative;
    flex-shrink: 0;
}

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

.photo-placeholder {
    text-align: center;
    padding: 10px;
}

/* Form Title */
.form-title-section {
    background: white;
    padding: 15px 20px;
    border-left: 3px solid #000;
    border-right: 3px solid #000;
    position: relative;
}

.form-title-text {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #000080;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.form-title-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #000080, transparent);
}

.form-title-section::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(20deg);
    width: 100px;
    height: 3px;
    background: #000080;
}

/* Form Body */
.form-body {
    padding: 30px;
    border-left: 3px solid #000;
    border-right: 3px solid #000;
    background: white;
}

/* Multi-step Navigation (Hide in print) */
.step-navigation {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    border: 2px solid #dee2e6;
}

.step-item.active .step-number {
    background: #000080;
    color: white;
    border-color: #000080;
}

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

.step-name {
    font-size: 13px;
    color: #495057;
}

.step-item.active .step-name {
    color: #000080;
    font-weight: bold;
}

/* Form Steps */
.form-step {
    display: none;
}

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

/* Form Fields */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.form-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.field-serial {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    min-width: 25px;
}

.field-label {
    font-size: 16px;
    color: #000;
    min-width: 150px;
    white-space: nowrap;
}

.field-colon {
    font-size: 16px;
    color: #000;
}

.field-input-wrapper {
    flex: 1;
    position: relative;
}

.form-control {
    width: 100%;
    border: none;
    border-bottom: 1px dotted #333;
    padding: 5px 0;
    font-size: 15px;
    background: transparent;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-bottom: 1px solid #000080;
}

.form-select {
    width: 100%;
    border: 1px solid #333;
    padding: 5px;
    font-size: 15px;
    background: white;
    font-family: inherit;
}

textarea.form-control {
    border: 1px solid #333;
    padding: 8px;
    min-height: 60px;
    resize: vertical;
}

/* Birth Registration - 17 Digit Boxes */
.birth-registration-input {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.digit-box {
    width: 28px;
    height: 35px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #333;
    background: white;
}

.digit-box:focus {
    outline: none;
    border-color: #000080;
    background: #f0f8ff;
}

/* Birth Date Split */
.birth-date-split {
    display: flex;
    gap: 10px;
    align-items: center;
}

.birth-date-split select {
    padding: 5px;
    border: 1px solid #333;
    font-size: 15px;
    font-family: inherit;
}

.birth-date-label {
    font-size: 14px;
    color: #666;
}

/* Radio and Checkbox */
.form-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.form-check-label {
    font-size: 15px;
    color: #000;
}

/* File Upload */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-upload-input {
    flex: 1;
    padding: 5px;
    border: 1px solid #333;
    font-size: 14px;
}

/* Section Headers */
.section-header {
    font-size: 20px;
    font-weight: bold;
    color: #000080;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #000080;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(20deg);
    width: 80px;
    height: 2px;
    background: #000080;
}

/* Footer Section */
.form-footer {
    padding: 30px;
    border: 3px solid #000;
    border-top: none;
    background: white;
}

.declaration-section {
    margin-bottom: 25px;
}

.declaration-title {
    font-size: 18px;
    font-weight: bold;
    color: #000080;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.declaration-title::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%) rotate(20deg);
    width: 40px;
    height: 2px;
    background: #000080;
}

.declaration-text {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.signature-section {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.signature-box {
    text-align: center;
}

.signature-line {
    width: 200px;
    border-bottom: 1px solid #000;
    margin-bottom: 5px;
    height: 50px;
}

.signature-label {
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #000080;
    color: white;
}

.btn-primary:hover {
    background: #000060;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-print {
    background: #17a2b8;
    color: white;
}

.btn-print:hover {
    background: #138496;
}

/* Required Field Indicator */
.required {
    color: #dc3545;
    margin-left: 3px;
}

/* Helper Text */
.field-help {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
    font-style: italic;
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    
    .form-container {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Hide buttons and non-printable elements */
    .step-navigation,
    .form-navigation,
    .btn,
    .no-print,
    button {
        display: none !important;
    }
    
    .form-step {
        display: block !important;
    }
    
    /* Ensure borders and colors show */
    .form-header {
        border: 3px solid #000 !important;
        background: white !important;
        -webkit-print-color-adjust: exact;
    }
    
    .school-logo {
        border: 2px solid #333 !important;
    }
    
    .school-name-bangla,
    .school-name-english {
        color: #000080 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .form-title-text {
        color: #000080 !important;
        border-bottom: 2px solid #000080 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .section-header {
        color: #000080 !important;
        border-bottom: 2px solid #000080 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .photo-box {
        border: 2px solid #000 !important;
    }
    
    .form-body {
        border-left: 3px solid #000 !important;
        border-right: 3px solid #000 !important;
    }
    
    .form-footer {
        border: 3px solid #000 !important;
        border-top: none !important;
    }
    
    .declaration-title {
        color: #000080 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .signature-line {
        border-top: 2px solid #000 !important;
    }
    
    /* Ensure all borders show */
    .digit-box {
        border: 1px solid #000 !important;
    }
    
    input, select, textarea {
        border-bottom: 1px solid #000 !important;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    /* Remove box shadows */
    * {
        box-shadow: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-left {
        flex-direction: column;
        text-align: center;
    }
    
    .school-name-bangla {
        font-size: 20px;
    }
    
    .school-name-english {
        font-size: 16px;
    }
    
    .photo-box {
        width: 100px;
        height: 120px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .field-label {
        min-width: auto;
    }
    
    .birth-registration-input {
        justify-content: center;
    }
    
    .digit-box {
        width: 25px;
        height: 32px;
        font-size: 14px;
    }
    
    .signature-section {
        flex-direction: column;
        gap: 30px;
    }
    
    .signature-line {
        width: 100%;
    }
}

/* Animation */
.form-step.active {
    animation: fadeIn 0.3s ease-in;
}

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

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.success-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.application-id {
    font-size: 20px;
    font-weight: bold;
    color: #000080;
    padding: 15px;
    background: #f8f9fa;
    border: 2px dashed #000080;
    display: inline-block;
    margin: 20px 0;
}
