/* Mobile Responsive Styles for Multi-Step Registration */

/* Base responsive adjustments */
@media (max-width: 767.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card, .p-4 {
        border-radius: 10px;
        margin-bottom: 20px;
    }
    
    .card-header {
        font-size: 1.2rem;
        padding: 15px;
        text-align: center;
    }
    
    .card-body, .p-4 {
        padding: 20px 15px !important;
    }
    
    /* Form controls */
    .form-control, .form-select {
        font-size: 16px; /* Prevents iOS zoom on focus */
        height: 45px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px;
        font-size: 16px;
    }
    
    /* Fix button layout on mobile */
    .d-flex.gap-2.justify-content-between {
        flex-direction: column;
    }
    
    /* Progress bar adjustments */
    .progress-container {
        margin-bottom: 25px;
    }
    
    .step-indicator {
        font-size: 0.8rem;
    }
    
    /* Improve spacing for form groups */
    .mb-3, .mb-4 {
        margin-bottom: 20px !important;
    }
    
    /* Adjust column layouts */
    .row > [class*="col-"] {
        margin-bottom: 15px;
    }
    
    /* Make sure images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Adjust alert messages */
    .alert {
        padding: 12px;
        margin-bottom: 20px;
        font-size: 0.9rem;
    }
    
    /* Country selector improvements */
    .country-phone-container {
        width: 100%;
    }
    
    .country-selector-btn, .phone-prefix-btn {
        height: 45px;
    }
    
    .country-dropdown, .phone-dropdown {
        max-height: 250px;
        width: 100%;
    }
    
    .phone-input-wrapper {
        flex-wrap: wrap;
    }
    
    .phone-prefix-btn {
        min-width: 90px;
        padding: 0.5rem;
    }
    
    .country-option {
        padding: 12px;
    }
    
    /* Headings */
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Small phone adjustments */
@media (max-width: 575.98px) {
    /* Further reduce padding */
    .card-body, .p-4 {
        padding: 15px 12px !important;
    }
    
    /* Smaller text for labels */
    .form-label {
        font-size: 0.85rem;
    }
    
    /* Adjust plan selection cards */
    .plan-card {
        padding: 12px;
    }
    
    .plan-card .plan-title {
        font-size: 1rem;
    }
    
    /* Adjust payment method selection */
    .payment-method-option {
        padding: 10px;
    }
    
    /* Smaller headings */
    h2 {
        font-size: 1.3rem;
    }
    
    h4, .h4 {
        font-size: 1.2rem;
    }
    
    h5, .h5 {
        font-size: 1rem;
    }
    
    /* Country selector improvements */
    .country-name, .phone-dial-code {
        font-size: 0.8rem;
    }
    
    .country-option-name, .country-option-dial {
        font-size: 0.8rem;
    }
    
    .phone-prefix-btn {
        min-width: 80px;
        padding: 0.5rem 0.25rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    /* Larger touch targets */
    .form-check-label,
    .form-check-input,
    .btn,
    .country-option {
        min-height: 44px; /* Apple's recommended minimum touch target size */
    }
    
    /* Add more space between clickable elements */
    .form-check {
        margin-bottom: 15px;
    }
    
    /* Make radio buttons and checkboxes easier to tap */
    .form-check-input {
        width: 22px;
        height: 22px;
        margin-top: 2px;
    }
}

/* Step-specific improvements */
/* Step 1 - Personal Information */
@media (max-width: 767.98px) {
    .country-search-input {
        height: 40px;
    }
    
    .country-search-wrapper {
        padding: 8px;
    }
}

/* Step 2 - Company Information */
.company-info-form .industry-select {
    margin-bottom: 20px;
}

/* Step 3 - Plan Selection */
.plan-selection .plan-card {
    transition: transform 0.2s;
}

.plan-selection .plan-card.selected {
    transform: scale(1.02);
}

/* Step 4 - Payment Information */
.payment-info-form .payment-method-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Step 5 - Review */
.review-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.review-section:last-child {
    border-bottom: none;
}

/* Fix for navigation buttons on mobile */
@media (max-width: 767.98px) {
    .step-navigation {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .step-navigation .btn {
        margin-bottom: 10px;
        width: 100%;
    }
}