/* Multi-Step Registration Styles */

.register-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    margin-top: 60px;
    background: linear-gradient(135deg, #050510 0%, #0a0a1e 100%);
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    max-width: 900px;
    margin-bottom: 2rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.progress-bar {
    height: 2px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    width: 100%;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #7C3AED);
    width: 16.67%;
    transition: width 0.3s ease;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    flex: 1;
}

.step-indicator.active {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #A78BFA;
    transition: all 0.3s ease;
    position: relative;
}

.step-indicator.active .step-circle {
    background: linear-gradient(135deg, #3B82F6, #7C3AED);
    border-color: #7C3AED;
    color: #fff;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.step-indicator.completed .step-circle {
    background: #34D399;
    border-color: #10B981;
    color: transparent;
    font-size: 0;
}

.step-indicator.completed .step-circle::after {
    content: "✓";
    font-size: 18px;
    color: #fff;
    position: absolute;
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B6889;
    text-align: center;
}

.step-indicator.active .step-label {
    color: #B8B5D0;
}

/* Register Card */
.register-card {
    width: 100%;
    max-width: 600px;
    background: var(--s, #0A0A1E);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    padding: 2.5rem;
    margin: 0 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
    .register-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
}

/* Mobile Responsive - Medium Mobile (480px to 640px) */
@media (max-width: 640px) and (min-width: 481px) {
    .register-container {
        padding: 0.85rem;
    }

    .progress-bar-container {
        padding: 0 0.6rem;
        margin-bottom: 1.8rem;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
    }

    .register-card {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }

    .form-actions {
        gap: 0.75rem;
    }
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

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

.register-header {
    margin-bottom: 2rem;
    text-align: center;
}

.register-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #F0EEFF;
    margin-bottom: 0.5rem;
}

.register-header p {
    font-size: 14px;
    color: #6B6889;
}

.register-body {
    margin-top: 2rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #F0EEFF;
    margin-bottom: 1rem;
}

.register-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #B8B5D0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"],
.register-form input[type="tel"],
.register-form input[type="number"],
.register-form input[type="file"],
.register-form select,
.register-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(13, 13, 40, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: #F0EEFF;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.register-form input::placeholder,
.register-form textarea::placeholder {
    color: #6B6889;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
    outline: none;
    border-color: #7C3AED;
    background: rgba(13, 13, 40, 0.7);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

.register-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #B8B5D0;
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: #7C3AED;
    cursor: pointer;
    min-width: 18px;
    min-height: 18px;
}

.checkbox-option:hover {
    color: #F0EEFF;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(13, 13, 40, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: #7C3AED;
    cursor: pointer;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
}

.radio-option span {
    font-size: 14px;
    color: #B8B5D0;
}

.radio-option:hover {
    border-color: #7C3AED;
    background: rgba(124, 58, 237, 0.05);
}

.radio-option input[type="radio"]:checked + span {
    color: #F0EEFF;
    font-weight: 600;
}

/* Card Option (for import methods) */
.card-option {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    min-height: 120px;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.option-header span {
    font-weight: 600;
    color: #F0EEFF;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #34D399;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.payant {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #FBBF24;
}

.option-desc {
    font-size: 12px;
    color: #6B6889;
    display: block;
    margin-top: auto;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(52, 211, 153, 0.05);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 8px;
    margin-top: 1.5rem;
}

.info-box i {
    color: #34D399;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-box p {
    font-size: 13px;
    color: #B8B5D0;
    margin: 0;
}

/* Help Text */
.help-text {
    display: block;
    font-size: 12px;
    color: #6B6889;
    margin-top: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.prev-btn,
.next-btn,
.submit-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn {
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #B8B5D0;
}

.prev-btn:hover {
    border-color: #7C3AED;
    color: #F0EEFF;
}

.next-btn {
    background: linear-gradient(135deg, #3B82F6, #7C3AED);
    color: #fff;
}

.next-btn:hover {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, #34D399, #10B981);
    color: #fff;
    padding: 0.875rem 2rem;
}

.submit-btn:hover {
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
    transform: translateY(-2px);
}

/* Pricing Container */
.pricing-container {
    max-width: 100%;
    padding: 1.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-layer-header {
    font-size: 18px;
    font-weight: 700;
    color: #F0EEFF;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pricing-layer-label {
    color: #A78BFA;
    font-weight: 600;
}

.feature-card {
    background: rgba(13, 13, 40, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: #7C3AED;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
    transform: translateY(-5px);
}

.pricing-tier-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #60A5FA;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.pricing-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #F0EEFF;
    margin-bottom: 0.5rem;
}

.pricing-card-description {
    font-size: 13px;
    color: #6B6889;
    margin-bottom: 1rem;
}

.pricing-card-price {
    font-size: 28px;
    font-weight: 800;
    color: #F0EEFF;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.pricing-card-interval {
    font-size: 12px;
    font-weight: 500;
    color: #6B6889;
}

.pricing-card-billing {
    font-size: 12px;
    color: #6B6889;
    margin-bottom: 1.5rem;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.pricing-features-list li {
    font-size: 13px;
    color: #B8B5D0;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.pricing-features-list li::before {
    content: "✓";
    color: #34D399;
    font-weight: 700;
    margin-right: 0.5rem;
}

.pricing-card-cta {
    display: flex;
    gap: 0.5rem;
}

.select-plan {
    flex: 1;
    padding: 0.625rem;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-plan.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #7C3AED);
    color: #fff;
}

.select-plan.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.select-plan.btn-secondary {
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #B8B5D0;
}

.select-plan.btn-secondary:hover {
    border-color: #7C3AED;
    color: #F0EEFF;
    background: rgba(124, 58, 237, 0.05);
}

.select-plan.selected {
    background: #34D399;
    color: #fff;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    flex: 1;
    padding: 0.875rem;
    background: rgba(13, 13, 40, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: #B8B5D0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    border-color: #7C3AED;
    color: #F0EEFF;
}

/* Divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(99, 102, 241, 0.1);
}

.divider span {
    position: relative;
    background: var(--s, #0A0A1E);
    padding: 0 1rem;
    color: #6B6889;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
}

.login-link p {
    font-size: 13px;
    color: #6B6889;
}

.login-link a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #A78BFA;
}

/* Info Footer */
.info {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    margin-top: auto;
}

.info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), rgba(157, 78, 221, 0.3), transparent);
}

.info a {
    color: #00d4ff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.info a:hover {
    color: #9d4edd;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* Mobile Responsive - Info Footer */
@media (max-width: 768px) {
    .info {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.5rem 0.5rem;
    }

    .info a {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .info {
        gap: 0.5rem;
        padding: 1rem 0.5rem;
    }

    .info a {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Messages */
.messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.alert {
    padding: 1rem 1.5rem;
    background: rgba(13, 13, 40, 0.9);
    border: 1px solid;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.alert-error {
    border-color: rgba(251, 113, 133, 0.3);
    color: #FB7185;
}

.alert-success {
    border-color: rgba(52, 211, 153, 0.3);
    color: #34D399;
}

/* Mobile Overflow Prevention - Extra Small Devices */
@media (max-width: 480px) {
    * {
        box-sizing: border-box;
    }

    body {
        overflow-x: hidden;
        width: 100vw;
    }

    .register-container {
        padding: 0.75rem;
        margin-top: 60px;
        width: 100%;
        overflow-x: hidden;
    }

    .progress-bar-container {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .step-indicators {
        gap: 0.25rem;
    }

    .step-indicator {
        gap: 0.25rem;
        min-width: 0;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .step-label {
        font-size: 9px;
        word-break: break-word;
        line-height: 1.1;
    }

    .register-card {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        margin: 0;
        border-radius: 10px;
    }

    .register-header h1 {
        font-size: 20px;
        margin-bottom: 0.3rem;
    }

    .register-header p {
        font-size: 12px;
    }

    .register-body {
        margin-top: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .form-section h3 {
        font-size: 14px;
        margin-bottom: 0.75rem;
    }

    .register-form label {
        font-size: 12px;
        margin-bottom: 0.4rem;
    }

    .register-form input[type="text"],
    .register-form input[type="email"],
    .register-form input[type="password"],
    .register-form input[type="tel"],
    .register-form input[type="number"],
    .register-form input[type="file"],
    .register-form select,
    .register-form textarea {
        padding: 0.6rem;
        font-size: 13px;
    }

    .register-form textarea {
        min-height: 70px;
    }

    .checkbox-grid {
        gap: 0.75rem;
    }

    .checkbox-option {
        font-size: 13px;
    }

    .checkbox-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 0.5rem;
        min-width: 16px;
        min-height: 16px;
    }

    .radio-option {
        padding: 0.6rem;
        gap: 0.5rem;
    }

    .radio-option input[type="radio"] {
        width: 16px;
        height: 16px;
        margin-right: 0.5rem;
        flex-shrink: 0;
        min-width: 16px;
        min-height: 16px;
        flex-basis: 16px;
    }

    .radio-option span {
        font-size: 13px;
    }

    .card-option {
        padding: 0.75rem;
        min-height: auto;
    }

    .option-header {
        margin-bottom: 0.4rem;
    }

    .option-header span {
        font-size: 13px;
    }

    .badge {
        font-size: 9px;
        padding: 0.2rem 0.5rem;
    }

    .option-desc {
        font-size: 11px;
        margin-top: 0.5rem;
    }

    .info-box {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .info-box i {
        margin-top: 0.1rem;
    }

    .info-box p {
        font-size: 12px;
    }

    .help-text {
        font-size: 11px;
    }

    .form-actions {
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
        flex-wrap: wrap;
    }

    .prev-btn,
    .next-btn,
    .submit-btn {
        padding: 0.65rem 1rem;
        font-size: 12px;
        flex: 1;
        min-width: 100px;
    }

    .pricing-container {
        padding: 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    .pricing-grid {
        gap: 1rem;
    }

    .pricing-layer-header {
        font-size: 16px;
        margin-bottom: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .pricing-tier-label {
        font-size: 9px;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .pricing-card-title {
        font-size: 16px;
        margin-bottom: 0.3rem;
    }

    .pricing-card-description {
        font-size: 12px;
        margin-bottom: 0.75rem;
    }

    .pricing-card-price {
        font-size: 24px;
        margin-bottom: 0.2rem;
    }

    .pricing-card-interval {
        font-size: 11px;
    }

    .pricing-card-billing {
        font-size: 11px;
        margin-bottom: 1rem;
    }

    .pricing-features-list {
        margin: 0 0 1rem;
    }

    .pricing-features-list li {
        font-size: 12px;
        padding: 0.4rem 0;
    }

    .select-plan {
        padding: 0.55rem;
        font-size: 11px;
    }

    .social-login {
        gap: 0.5rem;
    }

    .social-btn {
        padding: 0.75rem;
        font-size: 12px;
        gap: 0.3rem;
    }

    .divider span {
        padding: 0 0.5rem;
        font-size: 11px;
    }

    .login-link {
        margin-top: 1rem;
    }

    .login-link p {
        font-size: 12px;
    }

    .login-link a {
        font-size: 12px;
    }

    .messages {
        width: calc(100% - 2rem);
        max-width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    .alert {
        padding: 0.75rem 1rem;
        font-size: 12px;
        gap: 0.5rem;
    }
}
