
        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .form-container, .payment-container {
            max-width: 800px;
            margin: 20px auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .form-header, .payment-header {
            background: linear-gradient(135deg, #0048a8, #0056c7);
            color: white;
            padding: 30px;
            text-align: center;
        }
        
        .form-header h2, .payment-header h2 {
            margin: 0;
            font-size: 1.8rem;
            font-weight: 600;
        }
        
        .steps-container {
            display: flex;
            justify-content: center;
            padding: 20px;
            background: #f8f9fa;
        }
        
        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0 20px;
            opacity: 0.5;
        }
        
        .step.active, .step.completed {
            opacity: 1;
        }
        
        .step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #dee2e6;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-bottom: 8px;
        }
        
        .step.active .step-number {
            background: #0048a8;
            color: white;
        }
        
        .step.completed .step-number {
            background: #28a745;
            color: white;
        }
        
        .step-text {
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }
        
        .required-field::after {
            content: "*";
            color: #dc3545;
            margin-left: 4px;
        }
        
        .form-control {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 12px 15px;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        
        .form-control:focus {
            border-color: #0048a8;
            box-shadow: 0 0 0 0.2rem rgba(0, 72, 168, 0.25);
        }
        
        .submit-button, .razorpay-button {
            background: linear-gradient(135deg, #0048a8, #0056c7);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }
        
        .submit-button:hover, .razorpay-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 72, 168, 0.3);
        }
        
        .error-list {
            background: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        
        .payment-amount {
            font-size: 3rem;
            font-weight: 700;
            color: #0048a8;
            text-align: center;
            margin: 30px 0;
        }
        
        .payment-details {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
        }
        
        .payment-success {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            text-align: center;
        }
        
        .payment-error {
            background: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            text-align: center;
        }
        
        .payment-buttons {
            text-align: center;
            padding: 20px;
        }
        
        .form-photo-preview {
            width: 120px;
            height: 150px;
            border: 2px dashed #dee2e6;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        
        .form-photo-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .photo-instructions {
            margin-top: 8px;
        }
        
        /* ID Card Styles */
        .print-container {
            display: flex;
            justify-content: center;
            margin: 20px 0;
            page-break-after: always;
        }
        
        .id-card {
            width: 300px;
            height: 530px;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            position: relative;
            overflow: hidden;
            border: 2px solid #0048a8;
        }
        
        .card-header {
            background: linear-gradient(135deg, #0048a8, #0056c7);
            color: white;
            padding: 8px 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .school-logo {
            width: 30px;
            height: 30px;
            object-fit: contain;
        }
        
        .school-info {
            flex: 1;
        }
        
        .school-name {
            font-size: 11px;
            font-weight: bold;
            line-height: 1.2;
        }
        
        .school-address {
            font-size: 8px;
            opacity: 0.9;
        }
        
        .card-body {
            padding: 12px;
            display: grid;
            grid-template-columns: 80px 1fr;
            gap: 12px;
            height: calc(100% - 100px);
        }
        
        .photo-container {
            width: 80px;
            height: 100px;
            border: 2px solid #0048a8;
            border-radius: 8px;
            overflow: hidden;
            background: #f8f9fa;
        }
        
        .photo-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .student-details {
            display: flex;
            flex-direction: column;
            gap: 4px;
            position: relative;
        }
        
        .student-name {
            font-size: 14px;
            font-weight: bold;
            color: #0048a8;
            margin-bottom: 6px;
            line-height: 1.2;
        }
        
        .detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 9px;
        }
        
        .detail-label {
            font-weight: 600;
            color: #666;
            min-width: 60px;
        }
        
        .detail-value {
            font-weight: 500;
            color: #333;
            text-align: right;
            flex: 1;
        }
        
        /*.blood-group {*/
        /*    position: absolute;*/
        /*    top: 0;*/
        /*    right: 0;*/
        /*    background: #dc3545;*/
        /*    color: white;*/
        /*    padding: 2px 6px;*/
        /*    border-radius: 4px;*/
        /*    font-size: 8px;*/
        /*    font-weight: bold;*/
        /*}*/
        
        .qr-code {
            position: absolute;
            bottom: 12px;
            right: 12px;
            width: 30px;
            height: 30px;
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8px;
            font-weight: bold;
            color: #666;
        }
        
        .card-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 72, 168, 0.1);
            padding: 6px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .contact {
            font-size: 7px;
            color: #666;
            display: flex;
            flex-direction: column;
        }
        
        .signature {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .signature img {
            width: 40px;
            height: 15px;
            object-fit: contain;
        }
        
        .signature-label {
            font-size: 6px;
            color: #666;
            margin-top: 2px;
        }
        
        .hologram {
            position: absolute;
            top: 50px;
            right: 10px;
            width: 20px;
            height: 20px;
            background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
            border-radius: 50%;
        }
        
        .watermark {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-45deg);
            font-size: 24px;
            color: rgba(0, 72, 168, 0.05);
            font-weight: bold;
            pointer-events: none;
        }
        
        .card-number {
            position: absolute;
            bottom: 25px;
            left: 12px;
            font-size: 7px;
            color: #999;
        }
        
        .print-button {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #28a745;
            color: white;
            border: none;
            padding: 15px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
            z-index: 1000;
        }
        
        @media print {
            body { 
                background: white !important; 
                margin: 0;
                padding: 0;
            }
            
            .no-print { 
                display: none !important; 
            }
            
            .print-container { 
                margin: 0;
                page-break-after: always;
                display: block;
            }
            
            .id-card {
                box-shadow: none;
                margin: 0 auto;
            }
        }
        
        @media (max-width: 768px) {
            .form-container, .payment-container {
                margin: 10px;
                border-radius: 10px;
            }
            
            .form-header, .payment-header {
                padding: 20px;
            }
            
            .steps-container {
                padding: 15px 10px;
            }
            
            .step {
                margin: 0 10px;
            }
            
            .step-text {
                font-size: 0.8rem;
            }
        }
 
 
 
 /* ID Card Styles */
.print-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    page-break-after: always;
}

.id-card {
    /* Swapped width and height for vertical orientation */
    width: 300px; /* Now shorter */
    height: 530px; /* Now taller */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid #0048a8;
    display: flex; /* Use flexbox for overall card layout */
    flex-direction: column; /* Stack header, body, footer vertically */
}

.card-header {
    background: linear-gradient(135deg, #0048a8, #0056c7);
    color: white;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* Prevent shrinking header */
}

.school-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.school-info {
    flex: 1;
}

.school-name {
    font-size: 11px;
    font-weight: bold;
    line-height: 1.2;
}

.school-address {
    font-size: 8px;
    opacity: 0.9;
}

.card-body {
    padding: 12px;
    /* Removed grid, using flex column for vertical stacking */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center photo and details horizontally */
    gap: 10px;
    flex-grow: 1; /* Allow body to take up remaining space */
    position: relative; /* For absolute positioning of QR, Blood Group, Watermark */
}

.photo-container {
    width: 100px; /* Adjusted photo size for vertical card */
    height: 120px;
    border: 2px solid #0048a8;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 10px; /* Space below photo */
}

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

.student-details {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Increased gap for better spacing */
    width: 100%; /* Take full width of card body */
    text-align: center; /* Center student name */
    padding-bottom: 30px; /* Add space for QR/card number if placed inside */
}

.student-name {
    font-size: 16px; /* Slightly larger for prominence */
    font-weight: bold;
    color: #0048a8;
    margin-bottom: 8px;
    line-height: 1.2;
}

.detail-row {
    display: flex;
    justify-content: space-between; /* Keep labels and values separate */
    align-items: center;
    font-size: 10px; /* Slightly larger font */
    padding: 2px 0;
    width: 100%; /* Ensure detail rows span full width */
}

.detail-label {
    font-weight: 600;
    color: #666;
    min-width: 65px; /* Adjust min-width */
    text-align: left; /* Align labels left */
}

.detail-value {
    font-weight: 500;
    color: #333;
    text-align: right; /* Align values right */
    flex: 1;
}

/*.blood-group {*/
/*    position: absolute;*/
/*    top: 12px;*/
/*    right: 12px; */
/*    background: #dc3545;*/
/*    color: white;*/
/*    padding: 2px 6px;*/
/*    border-radius: 4px;*/
/*    font-size: 8px;*/
/*    font-weight: bold;*/
/*}*/

.qr-code {
    position: absolute;
    bottom: 12px; /* Position at the bottom of the card body */
    right: 12px;
    width: 40px; /* Increased size for QR */
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    color: #666;
}

.card-footer {
    /* No longer absolute, as it's part of the flex column */
    background: rgba(0, 72, 168, 0.1);
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevent shrinking footer */
    margin-top: auto; /* Push footer to the bottom */
}

.contact {
    font-size: 8px; /* Slightly larger font */
    color: #666;
    display: flex;
    flex-direction: column;
}

.signature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signature img {
    width: 50px; /* Slightly larger signature */
    height: 20px;
    object-fit: contain;
}

.signature-label {
    font-size: 7px; /* Slightly larger font */
    color: #666;
    margin-top: 2px;
}

.hologram {
    position: absolute;
    top: 100px; /* Adjusted position for vertical card */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    width: 30px; /* Slightly larger hologram */
    height: 30px;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    border-radius: 50%;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 30px; /* Larger watermark */
    color: rgba(0, 72, 168, 0.05);
    font-weight: bold;
    pointer-events: none;
}

.card-number {
    position: absolute;
    bottom: 12px; /* Position at the bottom of the card body, align with QR */
    left: 12px;
    font-size: 8px; /* Slightly larger font */
    color: #999;
}

.print-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    z-index: 1000;
}

@media print {
    body {
        background: white !important;
        margin: 0;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }

    .print-container {
        margin: 0;
        page-break-after: always;
        display: block;
    }

    .id-card {
        box-shadow: none;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .form-container, .payment-container {
        margin: 10px;
        border-radius: 10px;
    }

    .form-header, .payment-header {
        padding: 20px;
    }

    .steps-container {
        padding: 15px 10px;
    }

    .step {
        margin: 0 10px;
    }

    .step-text {
        font-size: 0.8rem;
    }
}