:root {
    --primary-color: #D18772;
    --dark-color: #2c2c2c;
    --success-color: #28a745;
    --error-color: #dc3545;
}

.inscription-header {
    background: url('../images/inscri1.png') center/cover no-repeat;
    padding: 60px 0 40px;
    color: white;
    text-align: center;
    margin-top: -100px;
    padding: 5rem 0;
}

.inscription-header-content{
    position: relative;
    z-index: 2;
    color: white;
    padding-top: 20px;
}
/* .inscription-header  {
    position: relative;
    background: url('../images/bg_region.jpg') center/cover no-repeat;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-top: -100px;
}

.inscription-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 55%);
    z-index: 1;
}
.inscription-header-content{
    position: relative;
    z-index: 2;
    color: white;
    padding-top: 20px;
} */

.inscription-container {
    max-width: 900px;
    margin: -65px auto 60px;
    padding: 0 20px;
}

.inscription-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.inscription-steps {
    display: flex;
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--primary-color);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--success-color);
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.step.active .step-title {
    color: var(--primary-color);
}

.inscription-form {
    padding: 40px;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

.section-subtitle {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--error-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-control.error {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.phone-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.phone-group input {
    flex: 1;
}

.phone-group .btn-remove {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-add-phone {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-prev {
    background: #e0e0e0;
    color: var(--dark-color);
}

.btn-prev:hover {
    background: #d0d0d0;
}

.btn-next, .btn-submit {
    background: var(--primary-color);
    color: white;
}

.btn-next:hover, .btn-submit:hover {
    background: #c27562;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s;
}

.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.password-requirements li {
    margin: 3px 0;
}

.password-requirements li.valid {
    color: var(--success-color);
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-overlay.show {
    display: flex;
}

.loader-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message, .error-message-global {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message-global {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message.show, .error-message-global.show {
    display: block;
}

@media (max-width: 768px) {
    .inscription-form {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .inscription-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .step::after {
        display: none;
    }

    .inscription-header{
        margin-top: 35px;
    }
}

@media (max-width: 480px) {
    .inscription-header{
        margin-top: 35px;
    }
}

.scroll-select {
    max-height: 120px; 
    overflow-y: auto; 
}
