/* Register page specific styles - Variables moved to base.css */

/* Step styling */
.step-title {
    color: var(--text-accent);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.step-subtitle {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.error-text {
    color: #ff6b6b;
    font-size: 0.875rem;
}

/* Cosmic note styling */
.cosmic-note {
    background: rgba(255, 204, 102, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 204, 102, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.note-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.note-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.note-content strong {
    color: var(--text-primary);
}

/* Progress Indicator */
.progress-container {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-wrapper {
    position: relative;
    flex: 1;
}

.progress-percentage {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 35px;
    text-align: right;
}

.progress {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.progress-bar {
    background: linear-gradient(90deg, #FF6B35 0%, #F7931E 50%, #FBB03B 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border-radius: 100px;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

/* Removed step-dot styles - no longer needed with percentage-based progress bar */

/* Form Steps - Use visibility instead of display to keep fields in DOM for submission */
.form-step {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-step.active {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    overflow: visible;
}

/* Input group styling */
.input-group-text {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-secondary) !important;
    font-weight: 500;
}

/* Small label styling */
.form-label.small {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

.nav-left {
    flex: 0 0 auto;
}

.nav-right {
    flex: 0 0 auto;
    margin-left: auto;
}

.nav-btn {
    padding: 12px 42px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    white-space: nowrap;
}

/* Figma Glass Button Style */
.btn-figma-glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.06) 100%), 
                linear-gradient(0deg, #C21 0%, #F41 48.43%, #F72 95.39%), 
                rgba(255, 255, 255, 0.01);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    padding: 12px 48px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 9px 0 rgba(255, 255, 255, 0.08) inset;
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.btn-figma-glass:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.08) 100%), 
                linear-gradient(0deg, #A01 0%, #E30 48.43%, #F61 95.39%), 
                rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 5px 9px 0 rgba(255, 255, 255, 0.12) inset,
                0 8px 16px rgba(255, 68, 17, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-figma-glass:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px 0 rgba(255, 255, 255, 0.08) inset;
}

.btn-figma-glass:focus {
    outline: none;
    box-shadow: 0 5px 9px 0 rgba(255, 255, 255, 0.08) inset,
                0 0 0 3px rgba(17, 181, 240, 0.3);
}

.btn-figma-glass:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 5px 9px 0 rgba(255, 255, 255, 0.04) inset;
}

/* Secondary Button Style for Previous */
.btn-figma-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 42px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.btn-figma-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-figma-secondary:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.03);
}

.btn-figma-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.btn-figma-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Alert styling */
.alert {
    background: rgba(255, 107, 107, 0.1) !important;
    border: 1px solid rgba(255, 107, 107, 0.3) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 1rem;
}

.alert-danger {
    background: rgba(255, 107, 107, 0.15) !important;
    border: 1px solid rgba(255, 107, 107, 0.4) !important;
}

/* Error container */
.error-container {
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.error-container .alert {
    border-radius: 12px;
    margin-bottom: 0;
    padding: 1rem 1.25rem;
}

/* Enhanced button transitions */
.nav-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive - Tablet and smaller */
@media (max-width: 768px) {
    .form-navigation {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        margin-left: 0;
        display: flex;
        justify-content: center;
    }

    .nav-btn {
        width: 100%;
        max-width: 100%;
    }

    .step-indicators {
        gap: 1rem;
    }

    .step-dot {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
    }

    .cosmic-note {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .note-icon {
        font-size: 1.25rem;
    }
}

/* Mobile Optimizations - Phones */
@media (max-width: 576px) {
    /* Minimal container padding on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Optimize card for mobile with nice rounded corners */
    .card.mobile-optimized {
        border-radius: 16px;
        border: 1px solid var(--glass-border);
        margin: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    /* Reset Bootstrap gutters for better width usage */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    /* Minimal column padding */
    .col-12 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Comfortable padding for mobile readability */
    .card-body {
        padding: 1.5rem !important;
    }

    /* Optimize step header for mobile */
    .step-header {
        margin-bottom: 1.5rem !important;
    }

    .step-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .step-subtitle {
        font-size: 0.875rem;
    }

    /* Optimize progress container */
    .progress-container {
        margin-bottom: 1.5rem;
    }

    /* Reduce form spacing */
    .mb-4 {
        margin-bottom: 1rem !important;
    }

    /* Optimize cosmic note for mobile */
    .cosmic-note {
        padding: 0.75rem;
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }

    .note-icon {
        font-size: 1.125rem;
    }

    .note-content {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    /* Optimize form labels and text */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }

    .form-text {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }

    /* Optimize input fields for mobile */
    .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.625rem 0.75rem;
    }

    /* Optimize SMS consent section */
    .sms-consent-section .card {
        margin-bottom: 0.75rem;
    }

    .sms-consent-section .card-body {
        padding: 0.75rem !important;
    }

    .sms-consent-section h5 {
        font-size: 1rem;
    }

    .sms-consent-section .small {
        font-size: 0.8rem;
    }

    .sms-consent-section ul li {
        margin-bottom: 0.5rem !important;
        font-size: 0.8rem;
    }

    /* Optimize navigation buttons */
    .form-navigation {
        margin-top: 1.5rem;
        padding-top: 1rem;
        gap: 0.75rem;
    }

    .nav-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-width: unset;
    }

    .btn-figma-glass,
    .btn-figma-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Reduce minimum height for form steps container */
    .form-steps-container {
        min-height: 300px !important;
    }

    /* Optimize phone input group */
    .input-group-text {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 400px) {
    /* Slightly less padding on very small phones */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    .step-title {
        font-size: 1.125rem;
    }

    .nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Focus states for accessibility */
.step-dot:focus,
.nav-btn:focus {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
}

/* Animation for step transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step.active .step-header {
    animation: fadeInUp 0.6s ease-out;
}

.form-step.active .mb-4 {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}