:root {
    --primary-color: #1a237e;
    --secondary-color: #283593;
    --accent-color: #3949ab;
    --light-bg: #f8f9fa;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 100vh;
}

.application-container {
    max-width: 1000px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.application-header {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
}

.application-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2.5rem;
    color: #fff;
}

.application-body {
    background: white;
    padding: 30px;
}

/* Ensure form elements don't interfere with loading overlay */
.application-body {
    position: relative;
    z-index: 1;
}

/* Fix for checkbox section styling */
.form-check {
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 15px 0;
}

.form-check:has(#terms_agree) {
    background-color: rgba(248, 249, 250, 0.8);
    border-left: 4px solid #dee2e6;
}

.form-check-input:focus {
    border-color: var(--nsb-primary);
    box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.25);
}

/* Additional positioning for better form flow */
#step4 .form-section {
    min-height: 500px;
}

.form-section {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.form-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.section-title i {
    font-size: 1.1rem;
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.required-field::after {
    content: " *";
    color: var(--danger-color);
}

.form-control, .form-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(57, 73, 171, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.programme-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    background: white;
}

.programme-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.programme-card.active {
    border-color: var(--primary-color);
    background-color: rgba(26, 35, 126, 0.05);
}

.programme-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.programme-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.programme-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-submit {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(26, 35, 126, 0.2);
    color: white;
}

.btn-outline-secondary {
    padding: 12px 30px;
    border-radius: 8px;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 0.9rem;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #777;
    z-index: 2;
    margin-bottom: 10px;
}

.step.active .step-circle {
    background: var(--primary-color);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 500;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hide-robot {
    display: none;
}

.education-section {
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.education-section h5 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.review-section .card {
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.review-section .card-body {
    padding: 25px;
}

.review-section p {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.review-section strong {
    color: var(--primary-color);
    min-width: 180px;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .application-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .application-body {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .step:not(:last-child)::after {
        width: 60%;
        left: 70%;
    }
    
    .btn-submit, .btn-outline-secondary {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
    }
    
    .review-section strong {
        min-width: 140px;
    }
}

@media (max-width: 576px) {
    .application-header {
        padding: 20px 15px;
        text-align: center;
    }
    
    .logo-container {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .step {
        flex: 0 0 calc(50% - 15px);
        max-width: none;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
}


/* Add these styles to your existing style.css */

/* Error message styling */
.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: none;
    border-left: 5px solid #f44336;
    border-radius: 10px;
    padding: 25px;
}

/* Success message styling */
.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: none;
    border-left: 5px solid #4caf50;
    border-radius: 10px;
    padding: 25px;
}

/* Loading overlay */
.loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.95) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.loading-spinner {
    width: 60px !important;
    height: 60px !important;
    border: 5px solid rgba(26, 35, 126, 0.1) !important;
    border-top: 5px solid var(--nsb-primary) !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin-bottom: 20px !important;
}

.loading-overlay h4 {
    color: var(--nsb-primary) !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

.loading-overlay p {
    color: #666 !important;
    font-size: 0.9rem !important;
}

/* Checkbox pulse animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Payment terms checkbox specific styling */
#step5 .form-check {
    background-color: rgba(248, 249, 250, 0.8);
    border-left: 4px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

#step5 .form-check:hover {
    background-color: rgba(248, 249, 250, 1);
}

#step5 .form-check-input {
    margin-top: 0.3em;
}

#step5 .form-check-label {
    line-height: 1.5;
    cursor: pointer;
}


/* Error message styling */
#payment-terms-error-message {
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

#payment-terms-error-message i {
    margin-right: 5px;
}

/* Make the payment terms checkbox more visible when highlighted */
#payment_terms:focus {
    border-color: var(--nsb-primary);
    box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.25);
}
/* Form validation styling */
.is-invalid {
    border-color: #f44336 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f44336'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f44336' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-valid {
    border-color: #4caf50 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%234caf50' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Responsive table for review */
.table-responsive {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.table th {
    background: #1a237e;
    color: white;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .btn-submit, .btn-outline-secondary {
        display: none !important;
    }
}

/* Payment Styles */
.payment-container {
    max-width: 800px;
    margin: 0 auto;
}

.payment-method-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 120px;
}

.payment-method-card.active {
    border-color: var(--nsb-primary);
    background-color: rgba(26, 35, 126, 0.05);
}

.payment-method-card:hover:not(.active) {
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.payment-icon {
    width: 60px;
    text-align: center;
    margin-right: 15px;
}

.payment-method-info {
    flex: 1;
}

.payment-check {
    color: var(--nsb-primary);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-method-card.active .payment-check {
    opacity: 1;
}

#free_payment_option {
    opacity: 0.5;
    cursor: not-allowed;
}

#free_payment_option.available {
    opacity: 1;
    cursor: pointer;
}

/* Payment Summary Styles */
.payment-summary .table tr:last-child td {
    border-bottom: none;
}

#proceed_payment {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 8px;
}

#proceed_payment:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Coupon Message Styles */
#coupon_message.success {
    color: #198754;
    font-weight: 500;
}

#coupon_message.error {
    color: #dc3545;
    font-weight: 500;
}

/* Razorpay Button */
.razorpay-payment-button {
    display: none !important;
}

.card-header {

        background-color: var(--nsb-primary) !important;
}