/**
 * Modular Wizard Styles
 * Mobile-first, responsive, and themeable
 */

/* Wizard Container */
.wizard-container {
    max-width: 672px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 30px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

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

.progress-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #6b7280;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.progress-step.active .progress-dot {
    background: #4f46e5;
    color: white;
}

.progress-step.current .progress-dot {
    background: #4f46e5;
    color: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.progress-label {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
}

.progress-step.active .progress-label,
.progress-step.current .progress-label {
    color: #4f46e5;
    font-weight: 500;
}

/* Step Content */
.wizard-step-content {
    flex: 1;
    margin-bottom: 30px;
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.step-header p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

/* Location Badge */
.location-detected {
    margin-bottom: 20px;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    color: #0c4a6e;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    margin-bottom: 15px;
}

.search-input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.btn-location {
    width: 100%;
    padding: 12px 16px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-location:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Destination Grid */
.destinations-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.destination-group h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.destination-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.destination-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.destination-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.destination-card.selected {
    border-color: #4f46e5;
    background: #f0f9ff;
}

.country-flag {
    font-size: 32px;
    line-height: 1;
}

.country-info {
    flex: 1;
}

.country-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.country-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.distance,
.trending,
.weather {
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.distance {
    background: #f0fdf4;
    color: #166534;
}

.trending {
    background: #fef3c7;
    color: #92400e;
}

.weather {
    background: #f0f9ff;
    color: #0c4a6e;
}

/* Date Options */
.date-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quick-options h3,
.custom-dates h3,
.duration-options h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.option-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option-card {
    padding: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.option-card.selected {
    border-color: #4f46e5;
    background: #f0f9ff;
}

.option-icon {
    width: 24px;
    height: 24px;
    color: #4f46e5;
    margin-bottom: 8px;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.option-desc {
    font-size: 14px;
    color: #6b7280;
}

/* Date Inputs */
.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.date-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Duration Cards */
.duration-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.duration-card {
    padding: 16px 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.duration-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.duration-card.selected {
    border-color: #4f46e5;
    background: #f0f9ff;
}

.duration-days {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.duration-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Usage Options */
.usage-categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.usage-category h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.usage-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.usage-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.usage-option:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.usage-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.usage-option input[type="checkbox"]:checked + .checkmark {
    background: #4f46e5;
    border-color: #4f46e5;
}

.usage-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.option-info {
    flex: 1;
}

.option-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.option-desc {
    font-size: 14px;
    color: #6b7280;
}

/* Usage Recommendation */
.usage-recommendation {
    margin-top: 30px;
}

.recommendation-card {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 20px;
    border-radius: 12px;
}

.recommendation-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.recommendation-text {
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.recommendation-breakdown {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.item-name {
    font-size: 14px;
    opacity: 0.9;
}

.item-data {
    font-size: 14px;
    font-weight: 600;
}

/* Device Options */
.device-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.device-category h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.device-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.device-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.device-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.device-card.selected {
    border-color: #4f46e5;
    background: #f0f9ff;
}

.device-image {
    font-size: 32px;
    line-height: 1;
}

.device-info {
    flex: 1;
}

.device-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.device-status {
    font-size: 12px;
    font-weight: 500;
}

.device-status.compatible {
    color: #059669;
}

.device-status.unknown {
    color: #d97706;
}

/* Compatibility Info */
.compatibility-info {
    margin-top: 30px;
}

.info-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.info-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.info-card ol {
    margin: 0;
    padding-left: 20px;
}

.info-card li {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Budget Options */
.budget-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.budget-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.budget-card {
    padding: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.budget-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.budget-card.selected {
    border-color: #4f46e5;
    background: #f0f9ff;
}

.budget-range {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.budget-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.budget-features {
    font-size: 12px;
    color: #9ca3af;
}

/* Budget Preferences */
.preference-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preference-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preference-option:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.preference-option input[type="checkbox"] {
    display: none;
}

.preference-info {
    flex: 1;
}

.preference-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.preference-desc {
    font-size: 14px;
    color: #6b7280;
}

/* Results */
.recommendation-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.plan-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.plan-card.recommended {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.plan-destination {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-flag {
    font-size: 32px;
    line-height: 1;
}

.country-info {
    flex: 1;
}

.country-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.plan-duration {
    font-size: 14px;
    color: #6b7280;
}

.plan-price {
    text-align: right;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 4px;
}

.price-currency {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.plan-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.detail-item i {
    width: 16px;
    height: 16px;
    color: #4f46e5;
}

.plan-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.feature-item i {
    width: 16px;
    height: 16px;
    color: #059669;
}

.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Navigation Buttons */
.wizard-navigation {
    margin-top: auto;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.select-plan {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
}

.view-details {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

/* Comparison Tools */
.comparison-tools {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.compare-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

/* Responsive Design */
@media (max-width: 640px) {
    .wizard-container {
        padding: 16px;
        border-radius: 16px;
    }
    
    .progress-bar {
        padding: 0 5px;
    }
    
    .progress-dot {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .progress-label {
        font-size: 10px;
        max-width: 60px;
    }
    
    .step-header h2 {
        font-size: 20px;
    }
    
    .step-header p {
        font-size: 14px;
    }
    
    .duration-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .date-inputs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .plan-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .plan-destination {
        width: 100%;
    }
    
    .plan-price {
        text-align: left;
        width: 100%;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-step-content {
    animation: fadeIn 0.3s ease;
}

/* Error States */
.search-input.error,
.date-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
