﻿
/* Screen and Print specific visibility */
.screen-only {
    display: block !important;
}

.print-only {
    display: none !important;
}

.sk-admission-form {
    max-width: 1100px;
    margin: 20px auto;
    padding: 22px;
    background: white;
    border: 2px solid #0789db;
    border-radius: 28px;
    box-shadow: 0 5px 25px rgba(0,60,130,.08);
    color: #102c65;
}

.sk-admission-banner {
    display: grid;
    grid-template-columns: 28% 44% 28%;
    align-items: center;
    min-height: 180px;
    border-bottom: 2px solid #dce8f7;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.sk-brand img {
    width: 100%;
    max-width: 230px;
    height: 170px;
    object-fit: contain;
}

.sk-banner-title {
    border-left: 1px solid #cbd8e8;
    padding-left: 30px;
}

    .sk-banner-title h1 {
        font-size: clamp(25px, 3vw, 39px);
        font-weight: 900;
        line-height: 1.15;
        color: #103477;
        margin: 0;
    }

.sk-pink-underline {
    width: 160px;
    height: 6px;
    border-radius: 50%;
    border-top: 5px solid #f40878;
    transform: rotate(-3deg);
    margin: 12px 0;
}

.sk-banner-title > span {
    display: inline-block;
    padding: 7px 17px;
    border-radius: 25px;
    background: #dff0ff;
    color: #103477;
    font-weight: 800;
    font-size: 14px;
}

.sk-banner-art {
    min-height: 135px;
    border-radius: 50% 10% 45% 10%;
    background: radial-gradient(circle at 80% 25%, #ffcc26 0 20%, transparent 21%), linear-gradient(140deg, #e4f5ff, #fff7ed);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sk-kids-placeholder {
    font-size: 38px;
}

.sk-print-section {
    border: 1.5px solid;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 15px;
}

.student-section {
    border-color: #65a9ff;
}

.parent-section {
    border-color: #f40878;
}

.address-section {
    border-color: #54b51d;
}

.document-section {
    border-color: #f5b600;
}

.additional-section {
    border-color: #9653d3;
}

.sk-section-heading {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 15px;
    color: #103477;
    font-size: 17px;
    background: #e2efff;
}

.parent-section .sk-section-heading {
    background: #ffdaeb;
}

.address-section .sk-section-heading {
    background: #e5f5ce;
}

.document-section .sk-section-heading {
    background: #fff0c5;
}

.additional-section .sk-section-heading {
    background: #eaddff;
}

.sk-number {
    height: 40px;
    min-width: 66px;
    display: grid;
    place-items: center;
    background: #087fd1;
    color: white;
    font-size: 23px;
    font-weight: 900;
    border-radius: 0 0 22px 0;
}

.parent-section .sk-number {
    background: #f40878;
}

.address-section .sk-number {
    background: #54b51d;
}

.document-section .sk-number {
    background: #efad00;
}

.additional-section .sk-number {
    background: #7138bd;
}

.sk-section-icon {
    margin-left: auto;
    font-size: 23px;
}

.sk-student-layout {
    display: grid;
    grid-template-columns: 165px 1fr;
    gap: 22px;
    padding: 16px 22px;
}

.sk-photo-placeholder {
    min-height: 180px;
    border: 2px dashed #0789db;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .sk-photo-placeholder:hover {
        border-color: #0566a6;
        background: linear-gradient(135deg, #e6f2ff 0%, #d6e9ff 100%);
        box-shadow: 0 2px 8px rgba(7, 137, 219, 0.15);
    }

    .sk-photo-placeholder label {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        gap: 7px;
        font-size: 13px;
        color: #0789db;
        font-weight: 600;
        width: 100%;
        height: 100%;
        padding: 15px;
        box-sizing: border-box;
        transition: all 0.3s ease;
        user-select: none;
    }

    .sk-photo-placeholder label:hover {
        color: #0566a6;
    }

.photo-camera {
    font-size: 42px;
}

.sk-photo-input {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.sk-photo-input::file-selector-button {
    display: none !important;
}

.sk-photo-preview {
    width: 130px;
    height: 155px;
    object-fit: cover;
}

.sk-student-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sk-inline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sk-print-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .sk-print-field > label {
        flex-shrink: 0;
        color: #152a48;
        font-size: 13px;
        font-weight: 650;
        margin: 0;
    }

    .sk-print-field .rz-textbox,
    .sk-print-field .rz-dropdown,
    .sk-print-field .rz-datepicker,
    .sk-print-field .rz-textarea {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    .sk-print-field .rz-inputtext,
    .sk-print-field .rz-dropdown,
    .sk-print-field .rz-datepicker {
        border: none;
        border-bottom: 1px solid #9aa9bb;
        border-radius: 0;
        background: transparent;
        min-height: 32px;
        padding: 3px 6px;
    }

    .sk-print-field .rz-textarea {
        border: 1px solid #cbd6e4;
        border-radius: 7px;
    }

.sk-class-field {
    align-items: center;
}

    .sk-class-field > label {
        min-width: 85px;
    }

    .sk-class-field .rz-radiobutton-list,
    .sk-class-field > div {
        flex: 1;
    }

.sk-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 4px 12px 4px 0;
    font-size: 12px;
    color: #172d4c;
}

.sk-print-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px 30px;
    padding: 15px 25px;
}

    .sk-print-grid.two-col {
        grid-template-columns: 1.2fr 1fr;
    }

    .sk-print-grid .full {
        grid-column: 1 / -1;
    }

.sk-document-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1.4fr;
    gap: 15px;
    padding: 18px 30px;
}

    .sk-document-grid label {
        display: flex;
        align-items: center;
        gap: 9px;
        color: #172d4c;
        font-size: 13px;
    }

.sk-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 25px 18px;
}

    .sk-upload-grid label {
        display: block;
        font-size: 12px;
        margin-bottom: 5px;
    }

.additional-section > .sk-print-field {
    padding: 15px 25px;
}

.sk-declaration {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #e6f5ff;
    border: 1px solid #75c5f8;
    border-radius: 18px;
    padding: 15px 20px;
    margin: 15px 0;
    font-size: 13px;
    color: #103477;
}

.sk-signature-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 15px 20px;
    font-size: 14px;
    color: #103477;
}

    .sk-signature-area p {
        margin: 10px 0;
    }

.sk-signature-line {
    width: 270px;
    text-align: center;
}

    .sk-signature-line div {
        height: 35px;
        border-bottom: 1.5px solid #103477;
        margin-bottom: 8px;
    }

    .sk-signature-line strong {
        font-size: 13px;
    }

.sk-footer {
    min-height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 12px;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(90deg, #0789db 0 20%, #f5b600 20% 45%, #f40878 45% 70%, #54b51d 70% 100%);
    color: white;
    font-size: 17px;
    font-weight: 900;
}

.sk-screen-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 0 5px;
}

@media(max-width: 768px) {
    .sk-admission-form {
        padding: 12px;
    }

    .sk-admission-banner {
        grid-template-columns: 1fr 1.5fr;
    }

    .sk-banner-art {
        display: none;
    }

    .sk-student-layout {
        grid-template-columns: 1fr;
    }

    .sk-photo-placeholder {
        min-height: 120px;
    }

    .sk-print-grid,
    .sk-print-grid.two-col,
    .sk-document-grid,
    .sk-inline-row {
        grid-template-columns: 1fr;
    }

    .sk-print-field {
        flex-wrap: wrap;
    }

    .sk-signature-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@page {
    size: A4 portrait;
    margin: 5mm;
}

@media print {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

        body * {
            visibility: hidden !important;
        }

    .sk-admission-form,
    .sk-admission-form * {
        visibility: visible !important;
    }

    .sk-admission-form {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 3mm;
        border: 1px solid #0789db;
        box-shadow: none;
        border-radius: 10px;
    }

    .screen-only,
    .sk-screen-actions {
        display: none !important;
    }

    .sk-print-section,
    .sk-declaration,
    .sk-signature-area,
.sk-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;

    width: 100%;
    min-height: 65px;
    margin-top: 12px;
    padding: 0;

    background: linear-gradient(
        to right,
        #0789db 0%,
        #0789db 25%,
        #f5b600 25%,
        #f5b600 50%,
        #f40878 50%,
        #f40878 75%,
        #54b51d 75%,
        #54b51d 100%
    );

    color: white;
    font-size: 17px;
    font-weight: 900;
    border-radius: 0 0 18px 18px;
}

.sk-footer span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}
    .sk-admission-banner {
        min-height: 36mm;
    }

    .sk-brand img {
        height: 33mm;
    }

    .sk-print-field .rz-inputtext,
    .sk-print-field .rz-dropdown,
    .sk-print-field .rz-datepicker {
        color: #152a48 !important;
        -webkit-text-fill-color: #152a48 !important;
    }

    .sk-admission-form {
        font-size: 9px;
    }
}

/* Document Upload Styles */
.sk-documents-container {
    margin: 20px 0;
}

.sk-document-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.sk-document-upload-item {
    border: 1px solid #e0e7f1;
    border-radius: 8px;
    padding: 15px;
    background: #f8fafc;
}

.sk-document-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #dce8f7;
    padding-bottom: 10px;
}

.sk-document-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #102c65;
}

.sk-badge-required {
    background: #fee7e7;
    color: #d32f2f;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.sk-badge-optional {
    background: #e8f5e9;
    color: #388e3c;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.sk-file-hint {
    color: #666;
    font-size: 12px;
    display: block;
}

.sk-document-upload-area {
    position: relative;
}

.sk-uploaded-files {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sk-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #e0e7f1;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sk-file-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.sk-file-details {
    flex: 1;
    min-width: 0;
}

.sk-file-name {
    font-weight: 500;
    color: #102c65;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sk-file-size {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.sk-btn-remove {
    background: #fee7e7;
    color: #d32f2f;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-weight: bold;
    transition: all 0.2s ease;
}

.sk-btn-remove:hover {
    background: #d32f2f;
    color: white;
}

.sk-upload-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 2px dashed #0789db;
    border-radius: 6px;
    background: #f0f7ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sk-upload-input-wrapper:hover {
    background: #e3f2fd;
    border-color: #0562a8;
}

.sk-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

.sk-upload-placeholder {
    text-align: center;
    color: #0789db;
    font-weight: 500;
    font-size: 14px;
    pointer-events: none;
}

.sk-error-message {
    margin-top: 10px;
    padding: 10px;
    background: #fee7e7;
    color: #d32f2f;
    border-radius: 4px;
    font-size: 12px;
    border-left: 3px solid #d32f2f;
}

.sk-document-checklist {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #dce8f7;
    border-radius: 8px;
}

.sk-checklist-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.sk-checklist-items label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #102c65;
    font-weight: 500;
}

.sk-checklist-items label:hover {
    color: #0789db;
}

/* Print styles */
@media print {
    .screen-only {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .sk-documents-container {
        display: none;
    }

    .sk-document-checklist {
        border: 1px solid #000;
    }

    .sk-checklist-items label {
        margin-bottom: 8px;
        font-size: 11px;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .sk-document-upload-grid {
        grid-template-columns: 1fr;
    }

    .sk-document-info {
        flex-wrap: wrap;
    }

    .sk-uploaded-files {
        max-height: 300px;
        overflow-y: auto;
    }
}
