/* Create-clean.css - Специфичные стили для пошаговой формы */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    background: #2a2d3e;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.clean-header {
    background: #2a2d3e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.clean-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.clean-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.3s ease;
}

.clean-logo:hover {
    opacity: 0.8;
}

.clean-logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.clean-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    margin-left: auto;
}

.clean-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
}

/* Hide mobile elements by default */
.clean-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #2a2d3e;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: none;
}

.clean-mobile-menu.active {
    right: 0;
    display: block;
}

.clean-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
}

.clean-mobile-menu-overlay.active {
    opacity: 1;
    display: block;
}

.clean-mobile-menu-btn {
    display: none;
}

.clean-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.clean-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #478ac9;
}

.clean-nav-link.active {
    background: rgba(71, 138, 201, 0.2);
    color: #478ac9;
}

.clean-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
    margin-left: auto;
}

.clean-mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.clean-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.clean-mobile-menu-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.clean-mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.clean-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.clean-mobile-nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: 15px 25px;
    transition: background 0.3s ease;
}

.clean-mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #478ac9;
}

.clean-mobile-nav-link.active {
    background: rgba(71, 138, 201, 0.2);
    color: #478ac9;
}

/* Footer Styles */
.clean-footer {
    background: #1a1d2e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0 20px;
    margin-top: auto;
}

.clean-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clean-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.clean-footer-section h3 {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.clean-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clean-footer-links li {
    margin-bottom: 10px;
}

.clean-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.clean-footer-links a:hover {
    color: #478ac9;
}

.clean-social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.clean-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.clean-social-link:hover {
    background: #478ac9;
    transform: translateY(-2px);
}

.clean-social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.clean-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.clean-footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
/* Desktop: 768px and above */
@media (min-width: 768px) {
    .clean-nav-list {
        display: flex !important;
    }
    
    .clean-mobile-menu {
        display: none !important;
        right: -100% !important;
    }
    
    .clean-mobile-menu-btn {
        display: none !important;
    }
    
    .clean-mobile-menu-overlay {
        display: none !important;
        opacity: 0 !important;
    }
}

/* Mobile: 767px and below */
@media (max-width: 767px) {
    .clean-nav-list {
        display: none !important;
    }
    
    .clean-mobile-menu-btn {
        display: block !important;
    }
    
    .clean-mobile-menu {
        display: none;
        right: -100%;
    }
    
    .clean-mobile-menu.active {
        display: block;
        right: 0;
    }
    
    .clean-mobile-menu-overlay {
        display: none;
        opacity: 0;
    }
    
    .clean-mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .clean-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .clean-social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .clean-header-container {
        padding: 0 15px;
    }
    
    .clean-logo {
        font-size: 1.3rem;
    }
    
    .clean-logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .clean-footer-container {
        padding: 0 15px;
    }
    
    .clean-footer {
        padding: 30px 0 15px;
    }
}

.u-section-1 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
}

.u-section-1 .u-sheet.u-sheet-1 {
    margin: 0 auto;
    max-width: 1140px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    text-align: center;
}

/* Force centering for form elements */
.u-section-1 .u-sheet.u-sheet-1 > *,
.u-section-1 .u-sheet.u-sheet-1 > form {
    margin-left: auto !important;
    margin-right: auto !important;
}

.u-form.u-form-spacing-38.u-form-vertical.u-inner-form {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 10px auto 30px !important;
    max-width: 800px;
    width: 100%;
    display: block !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.u-text.u-text-1 {
    font-family: Poppins;
    font-weight: 700;
    font-size: 3rem;
    text-align: center;
    margin: 20px auto 10px;
    color: #ffffff;
}

.u-text.u-text-2 {
    font-family: Poppins;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    margin: 0px auto 10px;
    color: #ffffff;
}

@media (max-width: 575px) {
    .u-text.u-text-1 {
        font-size: 1.8rem;
        white-space: nowrap;
    }
}

/* Progress Bar Styles */
.u-form-progress {
    margin: 20px 0 30px;
}

.u-form-progress-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    gap: 40px;
}

.u-form-progress-bar {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e9ecef;
    transform: translateY(-50%);
    z-index: 1;
}

.u-form-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #478ac9;
    transition: width 0.3s ease;
    z-index: 2;
}

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

.u-form-progress-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2a2d3e;
    border: 2px solid #e9ecef;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.u-form-progress-step.active .u-form-progress-icon {
    background: #478ac9;
    border-color: #478ac9;
    color: white;
}

.u-form-progress-step.completed .u-form-progress-icon {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.u-form-progress-text {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
}

.u-form-progress-step.active .u-form-progress-text {
    color: #478ac9;
    font-weight: 600;
}

/* Form Steps */
.form-step {
    transition: opacity 0.3s ease;
    padding-bottom: 20px;
    margin-bottom: 15px;
}

 /* Navigation Buttons - всегда видны */
 .form-navigation {
     display: flex !important;
     justify-content: center !important;
     align-items: center !important;
     gap: 15px !important;
     width: 100% !important;
     max-width: 100% !important;
     margin: 10px auto 0 !important;
     padding: 5px 0 !important;
     flex-wrap: wrap !important;
     height: auto !important;
     position: relative !important;
     z-index: 10 !important;
     visibility: visible !important;
     opacity: 1 !important;
 }

.u-btn-prev, .u-btn-next {
    padding: 15px 30px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.u-btn-next {
    background: #478ac9;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-decoration: none;
}

.u-btn-prev:hover, .u-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.u-btn-next:hover {
    background: #2c5aa0;
}

.u-btn-prev:hover {
    background: #545b62;
}

.u-btn.u-btn-submit {
    width: 100%;
    padding: 18px 40px;
    background: #478ac9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    text-decoration: none;
}

.u-btn.u-btn-submit:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(71, 138, 201, 0.3);
}

 /* Form Styles */
 .u-form .u-form-group {
     margin-bottom: 18px;
 }

 /* Step 2: чуть больше воздуха между пунктами */
 #step2 .u-form-group {
     margin-bottom: 28px;
 }
 
 #step2 .u-label {
     margin-bottom: 12px;
 }

.u-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: 1.1rem;
}

.u-input, .u-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.u-input:focus, .u-textarea:focus {
    outline: none;
    border-color: #478ac9;
    box-shadow: 0 0 0 3px rgba(71, 138, 201, 0.1);
}

.u-textarea {
    resize: vertical;
    min-height: 120px;
}

.u-form-radio-button-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.u-radio-button {
    position: relative;
}

.u-radio-button input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.u-radio-button .u-label {
    display: block;
    padding: 15px 12px;
    background: #2a2d3e;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.u-radio-button input[type="radio"]:checked + .u-label {
    background: #478ac9;
    border-color: #478ac9;
    color: white;
}

.u-radio-button .u-label:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}


.success-message, .error-message {
    display: none;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.step-indicator {
    text-align: left;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    color: #478ac9;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 0 10px;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    line-height: 1.2;
}

/* For small screens */
@media (max-width: 768px) {
    .step-indicator {
        width: 95%;
        padding: 0 30px;
    }
    
    .u-form-radio-button-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 500px;
    }
    
    .u-radio-button .u-label {
        padding: 8px 6px;
        font-size: 0.85rem;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .step-indicator {
        font-size: 1rem;
        padding: 0 25px;
        white-space: normal;
        line-height: 1.4;
        width: 100%;
    }
    
    .u-form-progress-inner {
        max-width: 250px;
        gap: 30px;
    }
    
    .u-form-progress-icon {
        width: 25px;
        height: 25px;
        font-size: 0.65rem;
    }
    
    .u-form-progress-text {
        font-size: 0.65rem;
    }
    
    .u-section-1 .u-sheet.u-sheet-1 {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .u-form.u-form-spacing-38.u-form-vertical.u-inner-form {
        padding: 20px;
        margin: 10px auto;
    }
    
    .u-form-radio-button-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        max-width: 100%;
    }
    
    .u-radio-button .u-label {
        padding: 6px 4px;
        font-size: 0.8rem;
    }
}

/* Auth Block Styles */
.clean-auth-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clean-user-email {
    color: #ffffff;
    font-size: 0.9rem;
    margin-right: 10px;
}

.clean-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.clean-btn-primary {
    background: #478ac9;
    color: white;
}

.clean-btn-primary:hover {
    background: #357abd;
    transform: translateY(-1px);
}

.clean-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.clean-btn-secondary:hover {
    background: #ffffff;
    color: #2a2d3e;
}

.auth-login-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #9d0af8;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(157, 10, 248, 0.18);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-login-btn:hover {
    background: #9d0af8;
}

.auth-login-btn:active {
    background: #8e06e2;
    border-color: #8e06e2;
}

@media (max-width: 767px) {
    .clean-auth-block {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: 10px;
    }

    .clean-mobile-menu-btn {
        order: 2;
        margin-left: 10px;
    }

    #auth-block {
        order: 1;
    }

    #auth-block a.auth-login-btn {
        padding: 7px 12px;
        font-size: 13px;
    }

    #auth-block #logout-btn {
        display: none !important;
    }
}


