/* NITS Timetabler Registration CSS - Oracle/PeopleSoft Style */

/* Main Container */
.nits-register-container {
    background: white;
    border: 1px solid #cccccc;
    width: 800px;
    max-width: 95%;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nits-register-header {
    background-color: #0054a6;
    color: white;
    padding: 20px;
    border-bottom: 1px solid #004080;
    text-align: center;
}

.nits-register-header h1 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nits-register-header .nits-subtitle {
    font-size: 13px;
    margin-top: 8px;
    opacity: 0.9;
}

.nits-register-header .nits-instructions {
    font-size: 11px;
    margin-top: 5px;
    color: #e0e0e0;
    font-style: italic;
}

/* Progress Steps */
.nits-progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eeeeee;
}

.nits-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.nits-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #cccccc;
    z-index: 1;
}

.nits-step.completed:not(:last-child)::after {
    background-color: #0054a6;
}

.nits-step-number {
    width: 40px;
    height: 40px;
    background-color: #cccccc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.nits-step.active .nits-step-number {
    background-color: #0054a6;
    border: 2px solid #004080;
}

.nits-step.completed .nits-step-number {
    background-color: #0054a6;
}

.nits-step-label {
    font-size: 12px;
    font-weight: bold;
    color: #666666;
    text-transform: uppercase;
}

.nits-step.active .nits-step-label {
    color: #0054a6;
}

.nits-step.completed .nits-step-label {
    color: #0054a6;
}

/* Step Content */
.nits-step-content {
    display: none;
    padding: 30px;
}

.nits-step-content.active {
    display: block;
}

.nits-step-title {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
    border-bottom: 2px solid #0054a6;
    padding-bottom: 8px;
}

.nits-step-description {
    font-size: 12px;
    color: #666666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Registration Type Options */
.nits-registration-type {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.nits-type-option {
    border: 2px solid #dddddd;
    border-radius: 4px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.nits-type-option:hover {
    border-color: #0054a6;
    background-color: #f8fbff;
}

.nits-type-option.selected {
    border-color: #0054a6;
    background-color: #f0f7ff;
    box-shadow: 0 0 0 2px rgba(0, 84, 166, 0.1);
}

.nits-type-icon {
    width: 50px;
    height: 50px;
    background-color: #0054a6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 20px;
}

.nits-type-option h4 {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.nits-type-option p {
    font-size: 12px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.nits-type-help {
    font-size: 11px;
    color: #0054a6;
    background-color: #f0f7ff;
    padding: 8px;
    border-radius: 3px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.nits-type-help i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Form Elements */
.nits-register-form {
    background: white;
}

.nits-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.nits-form-group {
    margin-bottom: 20px;
}

.nits-form-group label {
    display: block;
    color: #333333;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.nits-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #999999;
    font-size: 14px;
    background: white;
    color: #333333;
    font-family: 'Courier New', monospace;
}

.nits-form-input:focus {
    outline: none;
    border-color: #0054a6;
    box-shadow: 0 0 0 2px rgba(0, 84, 166, 0.2);
}

.nits-form-input.error {
    border-color: #cc0000;
    background-color: #fff2f2;
}

.nits-form-input.error:focus {
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

.nits-help-text {
    font-size: 11px;
    color: #666666;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.4;
}

.nits-required {
    color: #cc0000;
    font-weight: bold;
}

/* Password Group */
.nits-password-group {
    position: relative;
}

.nits-password-group .nits-form-input {
    padding-right: 40px;
}

.nits-password-group .password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
}

/* School Selection */
.nits-school-select {
    font-family: 'Arial', sans-serif;
}

.nits-school-details {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    border-radius: 4px;
}

.nits-school-details h4 {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.nits-school-info p {
    font-size: 12px;
    color: #666666;
    margin-bottom: 5px;
    line-height: 1.5;
}

.nits-school-info strong {
    color: #333333;
    min-width: 100px;
    display: inline-block;
}

.nits-confirm-message {
    font-size: 11px;
    color: #0054a6;
    font-style: italic;
    margin-top: 10px;
    padding: 8px;
    background-color: #f0f7ff;
    border-radius: 3px;
}

/* Confirmation Checkbox */
.nits-confirmation {
    margin: 25px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    border-radius: 4px;
}

/* Navigation Buttons */
.nits-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #eeeeee;
    background-color: #f9f9f9;
}

.nits-btn-primary, .nits-btn-secondary {
    padding: 10px 25px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nits-btn-primary {
    background-color: #0054a6;
    color: white;
    border-color: #004080;
}

.nits-btn-primary:hover {
    background-color: #004080;
}

.nits-btn-primary:disabled {
    background-color: #cccccc;
    border-color: #bbbbbb;
    cursor: not-allowed;
}

.nits-btn-secondary {
    background-color: white;
    color: #0054a6;
    border-color: #0054a6;
}

.nits-btn-secondary:hover {
    background-color: #f0f7ff;
}

/* Messages */
.nits-error-message {
    background: #fff2f2;
    border: 1px solid #cc0000;
    padding: 12px 15px;
    margin: 0 30px 20px;
    color: #cc0000;
    font-size: 12px;
    border-radius: 4px;
    display: none;
}

.nits-success-message {
    background: #f0fff0;
    border: 1px solid #00cc00;
    padding: 12px 15px;
    margin: 0 30px 20px;
    color: #006600;
    font-size: 12px;
    border-radius: 4px;
    display: none;
}

/* Register Footer */
.nits-register-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
    font-size: 12px;
    color: #666666;
    line-height: 1.5;
}

.nits-register-footer a {
    color: #0054a6;
    text-decoration: none;
}

.nits-register-footer a:hover {
    text-decoration: underline;
}

.nits-register-note {
    font-size: 11px;
    color: #999999;
    margin-top: 5px;
    font-style: italic;
}

/* Loading Overlay */
.nits-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.nits-spinner {
    text-align: center;
}

.nits-spinner-circle {
    width: 50px;
    height: 50px;
    border: 4px solid #eeeeee;
    border-top: 4px solid #0054a6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nits-spinner p {
    color: #0054a6;
    font-size: 13px;
    font-weight: bold;
}
/* Select2 Customization for Oracle Style */
.nits-school-select + .select2-container {
    width: 100% !important;
    font-family: 'Arial', sans-serif;
}

.nits-school-select + .select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #999999;
    border-radius: 0;
    font-size: 14px;
}

.nits-school-select + .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    color: #333333;
    padding-left: 12px;
}

.nits-school-select + .select2-container .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.nits-school-select + .select2-container.select2-container--focus .select2-selection--single {
    border-color: #0054a6;
    outline: none;
}

.nits-school-select + .select2-container .select2-dropdown {
    border: 1px solid #999999;
    border-top: none;
    border-radius: 0;
}

.nits-school-select + .select2-container .select2-search--dropdown .select2-search__field {
    border: 1px solid #999999;
    border-radius: 0;
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
}

.nits-school-select + .select2-container .select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
}

.nits-school-select + .select2-container .select2-results__option--highlighted[aria-selected] {
    background-color: #0054a6;
    color: white;
}

.nits-school-select + .select2-container .select2-results__option[aria-selected=true] {
    background-color: #f0f7ff;
    color: #0054a6;
}

/* Help Icon */
.help-icon {
    color: #0054a6;
    cursor: help;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .nits-register-container {
        width: 95%;
        margin: 10px auto;
    }
    
    .nits-progress-steps {
        padding: 15px 10px;
    }
    
    .nits-step:not(:last-child)::after {
        right: -40%;
    }
    
    .nits-step-number {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .nits-step-label {
        font-size: 10px;
    }
    
    .nits-step-content {
        padding: 20px;
    }
    
    .nits-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nits-registration-type {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nits-form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nits-form-navigation button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nits-register-header {
        padding: 15px;
    }
    
    .nits-step-content {
        padding: 15px;
    }
    
    .nits-error-message,
    .nits-success-message {
        margin: 0 15px 15px;
    }
}