/* Ixtirochi Form Styles */

.ixtirochi-form-wrap {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Progress Bar */
.ixtirochi-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.ixtirochi-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e5e5;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #646970;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 12px;
    color: #646970;
    text-align: center;
}

.progress-step.active .step-number {
    background: #2271b1;
    color: #fff;
}

.progress-step.completed .step-number {
    background: #00a32a;
    color: #fff;
}

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

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.form-step h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #1d2327;
    font-size: 24px;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio Labels */
.radio-label {
    display: block;
    margin-bottom: 15px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-box {
    display: block;
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-box {
    border-color: #2271b1;
    background: #f0f6fc;
}

.radio-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 5px;
}

.radio-desc {
    display: block;
    font-size: 14px;
    color: #646970;
}

.radio-label:hover .radio-box {
    border-color: #2271b1;
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Students Container */
#students-container .student-form {
    background: #f6f7f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

#students-container .student-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2271b1;
}

.btn-remove-student {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3232;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-remove-student:hover {
    background: #a00;
}

#add-student-btn-container {
    margin-bottom: 20px;
    text-align: center;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #2271b1;
    color: #fff;
}

.btn-primary:hover {
    background: #135e96;
}

.btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.btn-secondary:hover {
    background: #dcdcde;
}

.btn-success {
    background: #00a32a;
    color: #fff;
}

.btn-success:hover {
    background: #008a20;
}

/* Review Content */
#review-content {
    background: #f6f7f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#review-content h3 {
    color: #2271b1;
    margin-top: 0;
    margin-bottom: 15px;
}

#review-content .review-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

#review-content .review-section:last-child {
    border-bottom: none;
}

#review-content .review-item {
    display: flex;
    margin-bottom: 10px;
}

#review-content .review-label {
    font-weight: 600;
    min-width: 150px;
    color: #1d2327;
}

#review-content .review-value {
    color: #646970;
}

/* User Info Box */
.ixtirochi-user-info-box {
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.ixtirochi-user-info-box .info-message {
    color: #00a32a;
    font-weight: 600;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.ixtirochi-user-info-box .info-field {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d0d9e3;
}

.ixtirochi-user-info-box .info-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ixtirochi-user-info-box .info-field label {
    font-weight: 600;
    color: #1d2327;
    min-width: 250px;
    margin: 0;
}

.ixtirochi-user-info-box .info-field .info-value {
    color: #2271b1;
    font-weight: 500;
    flex: 1;
}

/* Warning Box */
.ixtirochi-warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.ixtirochi-warning-box p {
    margin: 15px 0;
    font-size: 16px;
    color: #856404;
}

.ixtirochi-warning-box p:first-child {
    font-weight: 600;
}

.ixtirochi-warning-box .btn {
    margin: 5px;
}

/* Error Message Box */
.error-message-box,
.success-message-box {
    text-align: center;
    padding: 40px 20px;
}

.error-message-box h2 {
    color: #dc3232;
    font-size: 28px;
    margin-bottom: 20px;
}

.success-message-box h2 {
    color: #00a32a;
    font-size: 28px;
    margin-bottom: 20px;
}

.error-message-box p,
.success-message-box p {
    font-size: 16px;
    color: #646970;
    margin: 15px 0;
}

#existing-application-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.contact-info-box {
    background: #f0f6fc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.contact-info-box h3 {
    margin-top: 0;
    color: #2271b1;
}

.contact-info-box p {
    margin: 10px 0;
}

/* Loading */
.ixtirochi-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    display: none;
}

.ixtirochi-loading.active {
    display: flex;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

/* Yordam uchun kontakt plashkasi */
.ixtirochi-help-contact {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.ixtirochi-help-contact p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

.ixtirochi-help-contact strong {
    color: #000;
    font-size: 16px;
    direction: ltr;
    display: inline-block;
}

.ixtirochi-help-contact .help-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.ixtirochi-help-contact .help-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.ixtirochi-help-contact .btn-home {
    background: #2271b1;
    color: #fff;
}

.ixtirochi-help-contact .btn-home:hover {
    background: #135e96;
}

.ixtirochi-help-contact .btn-logout {
    background: #dc3545;
    color: #fff;
}

.ixtirochi-help-contact .btn-logout:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .ixtirochi-form-wrap {
        padding: 20px;
        margin: 20px;
    }
    
    .ixtirochi-progress-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .progress-step {
        flex: 0 0 calc(33.333% - 10px);
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .ixtirochi-help-contact .help-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .ixtirochi-help-contact .help-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .progress-step {
        flex: 0 0 calc(50% - 5px);
    }
    
    .form-step h2 {
        font-size: 20px;
    }
    
    .ixtirochi-user-info-box .info-field {
        flex-direction: column;
    }
    
    .ixtirochi-user-info-box .info-field label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .ixtirochi-warning-box {
        padding: 15px;
    }
    
    .ixtirochi-warning-box p {
        font-size: 14px;
    }
    
    .ixtirochi-video-instruction {
        padding: 15px;
    }
    
    .ixtirochi-video-instruction h3 {
        font-size: 18px;
    }
    
    .ixtirochi-video-instruction > p {
        font-size: 14px;
    }
    
    .video-container {
        max-width: 100%;
    }
}

/* Edit Application Section */
#edit-application-section {
    background: #e7f5ff;
    border: 1px solid #2271b1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

#edit-application-section p {
    margin-bottom: 15px;
    font-weight: 500;
}

#edit-application-btn {
    font-size: 16px;
    padding: 12px 30px;
}

/* Video Instruction */
.ixtirochi-video-instruction {
    background: #f8f9fa;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ixtirochi-video-instruction h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #2271b1;
    font-size: 20px;
    font-weight: 600;
}

.ixtirochi-video-instruction > p {
    color: #646970;
    font-size: 15px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
}

