/* Контейнер форми */
.registration-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

/* Прогрес-бар */
.registration-form .progress-container {
    margin-bottom: 2rem;
}

.registration-form .progress-container .progress {
    height: 6px;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.1);
    border: none;
    overflow: hidden;
}

.registration-form .progress-container .progress-bar {
    background: linear-gradient(135deg, var(--sitehub-primary, #667eea) 0%, var(--sitehub-secondary, #764ba2) 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Форма */
.registration-form #seller-form {
    margin: 0;
}

.registration-form #seller-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Групи полів */
.registration-form #seller-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.registration-form #seller-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.registration-form #seller-form .form-group:nth-child(2) { animation-delay: 0.2s; }
.registration-form #seller-form .form-group:nth-child(3) { animation-delay: 0.3s; }
.registration-form #seller-form .form-group:nth-child(4) { animation-delay: 0.4s; }
.registration-form #seller-form .form-group:nth-child(5) { animation-delay: 0.5s; }
.registration-form #seller-form .form-group:nth-child(6) { animation-delay: 0.6s; }
.registration-form #seller-form .form-group:nth-child(7) { animation-delay: 0.7s; }
.registration-form #seller-form .form-group:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Позначка обов'язкового поля */
.registration-form #seller-form .form-group.required .control-label::after {
    content: ' *';
    color: #fc8181;
    font-weight: bold;
}

/* Лейбли */
.registration-form #seller-form .control-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

/* Контейнер з іконкою */
.registration-form #seller-form .input-group-icon {
    position: relative;
}

/* Поля вводу з іконками */
.registration-form #seller-form .input-group-icon .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px 14px 45px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    width: 100%;
}

.registration-form #seller-form .input-group-icon .form-control:focus {
    border-color: var(--sitehub-primary, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
    outline: none;
}

.registration-form #seller-form .input-group-icon .form-control::placeholder {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Іконки полів */
.registration-form #seller-form .input-group-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 20px;
    color: #a0aec0;
    font-size: 1.1rem;
    z-index: 10;
    transition: color 0.3s ease;
    pointer-events: none;
}

.registration-form #seller-form .input-group-icon .form-control:focus + .input-icon {
    color: var(--sitehub-primary, #667eea);
}

/* Валідація полів */
.registration-form #seller-form .form-control.is-invalid {
    border-color: #fc8181;
    background-color: rgba(252, 129, 129, 0.05);
}

.registration-form #seller-form .form-control.is-valid {
    border-color: #68d391;
    background-color: rgba(104, 211, 145, 0.05);
}

.registration-form .invalid-feedback {
    color: #fc8181;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.registration-form .valid-feedback {
    color: #68d391;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Блок з умовами */
.registration-form #seller-form .terms-group {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 0.5rem;
}

.registration-form #seller-form .custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Чекбокс */
.registration-form #seller-form .custom-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    appearance: none;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.registration-form #seller-form .custom-checkbox input[type="checkbox"]:checked {
    background: var(--sitehub-primary, #667eea);
    border-color: var(--sitehub-primary, #667eea);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.registration-form #seller-form .custom-checkbox label {
    color: #4a5568;
	font-size: 16px;
    line-height: 1;
    cursor: pointer;
    margin: 0;
}

/* Посилання в умовах */
.registration-form #seller-form .custom-checkbox a {
    color: var(--sitehub-primary, #667eea);
    text-decoration: none;
    font-weight: 500;
}

.registration-form #seller-form .custom-checkbox a:hover {
    color: var(--sitehub-primary-dark, #5a6fd8);
    text-decoration: underline;
}

/* Блок кнопок */
.registration-form .buttons {
    margin-top: 2rem;
}

/* Кнопка submit */
.registration-form .buttons #ms-submit-button {
    background: linear-gradient(135deg, var(--sitehub-primary, #667eea) 0%, var(--sitehub-secondary, #764ba2) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    color: white;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.registration-form .buttons #ms-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.registration-form .buttons #ms-submit-button i,
.registration-form .buttons #ms-submit-button span {
    position: relative;
    z-index: 2;
}

.registration-form .buttons #ms-submit-button:hover {
    background: linear-gradient(135deg, var(--sitehub-primary-dark, #5a6fd8) 0%, var(--sitehub-primary-active, #4e60c6) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
}

.registration-form .buttons #ms-submit-button:hover::before {
    left: 100%;
}

.registration-form .buttons #ms-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Кнопка в стані завантаження */
.registration-form .buttons #ms-submit-button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}

/* Додаткова інформація */
.registration-form .text-center.mt-4 {
    margin-top: 1.5rem;
}

.registration-form .text-center.mt-4 p {
    margin: 0;
    color: #718096;
}

.registration-form .text-center.mt-4 a {
    color: var(--sitehub-primary, #667eea);
    font-weight: 500;
    text-decoration: none;
}

.registration-form .text-center.mt-4 a:hover {
    color: var(--sitehub-primary-dark, #5a6fd8);
    text-decoration: underline;
}
.registration-form .popup-with-form {
	cursor: pointer;
}

/* Адаптивність */
@media (max-width: 768px) {
    .registration-form {
        padding: 30px 20px;
        border-radius: 16px;
        margin: 20px 15px;
    }

    .registration-form #seller-form .input-group-icon .form-control {
        padding: 12px 14px 12px 40px;
    }

    .registration-form #seller-form .input-group-icon .input-icon {
        left: 14px;
        font-size: 1rem;
    }

    .registration-form .buttons #ms-submit-button {
        width: 100%;
        padding: 16px;
        justify-content: center;
    }

    .registration-form #seller-form .form-group {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 576px) {
    .registration-form {
        padding: 25px 15px;
    }

    .registration-form .progress-container {
        margin-bottom: 1.5rem;
    }

    .registration-form #seller-form .input-group-icon .form-control {
        font-size: 16px; /* Запобігає zoom на iOS */
    }

    .registration-form #seller-form .terms-group {
        padding: 15px;
    }

    .registration-form #seller-form .custom-checkbox {
        gap: 10px;
    }
}