﻿/* Clean, minimal design with subtle interactions */
.package-card {
    transition: all 0.3s ease;
}

.package-item {
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.package-card:hover .package-item {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.stats-item {
    transition: all 0.2s ease;
}

    .stats-item:hover {
        transform: translateY(-1px);
    }

.feature-item {
    transition: all 0.2s ease;
    border-radius: 8px;
}

    .feature-item:hover {
        background-color: #f8f9fa;
    }

.purchase-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    border: none;
    letter-spacing: 0.02em;
}

    .purchase-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        background-color: #212529 !important;
    }

    .purchase-btn:active {
        transform: translateY(0);
    }

.details-toggle {
    transition: all 0.2s ease;
    font-weight: 400;
}

    .details-toggle:hover {
        color: #333 !important;
    }

.details-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

/* Subtle borders and spacing */
.card-header {
    border-bottom: 1px solid #f8f9fa;
}

.border-light {
    border-color: #f1f3f4 !important;
}

/* Typography refinements */
.fw-light {
    font-weight: 300;
}

.fw-medium {
    font-weight: 500;
}

/* Button group styling */
.btn-group .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

    .btn-group .btn:hover {
        background-color: #e9ecef !important;
        border-color: #e9ecef !important;
    }

/* Responsive adjustments */
@@media (max-width: 768px) {
    .display-6 {
        font-size: 1.5rem;
    }

    .package-card:hover .package-item {
        transform: translateY(-2px);
    }

    .btn-group {
        width: 100%;
    }

        .btn-group .btn {
            flex: 1;
            font-size: 0.8rem;
            padding: 0.4rem 0.8rem;
        }
}

/* Loading animation */
.package-card {
    opacity: 0;
    transform: translateY(20px);
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-header {
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.form-control {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

    .form-control:focus {
        border-color: #495057;
        box-shadow: 0 0 0 0.2rem rgba(73, 80, 87, 0.1);
    }

.form-check-input:checked {
    background-color: #495057;
    border-color: #495057;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* RTL improvements */
[dir="rtl"] .details-icon {
    margin-right: 0.5rem;
    margin-left: 0;
}

[dir="rtl"] .btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

[dir="rtl"] .btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

* {
    box-sizing: border-box;
}

.esim-journey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.progress-fill {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transform: translateY(-50%);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

    .step.active {
        opacity: 1;
    }

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.step span {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
}

/* Journey Content */
.journey-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 40px;
    min-height: 400px;
}

.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .step-content.active {
        display: block;
    }

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

    .step-header h2 {
        font-size: 28px;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 8px;
    }

    .step-header p {
        font-size: 16px;
        color: #6c757d;
    }

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

    .form-group label {
        display: block;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
    }

.custom-select {
    position: relative;
}

    .custom-select select {
        width: 100%;
        padding: 16px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        background: white;
        cursor: pointer;
        transition: border-color 0.3s ease;
    }

        .custom-select select:focus {
            outline: none;
            border-color: #667eea;
        }

.autocomplete-container {
    position: relative;
}

    .autocomplete-container input {
        width: 100%;
        padding: 16px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        transition: border-color 0.3s ease;
    }

        .autocomplete-container input:focus {
            outline: none;
            border-color: #667eea;
        }

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .suggestion-item:hover {
        background-color: #f8f9fa;
    }

.compatibility-status {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

    .compatibility-status.compatible {
        background: #d1f2eb;
        color: #0d7258;
        border: 1px solid #a7f3d0;
    }

    .compatibility-status.incompatible {
        background: #fdf2f2;
        color: #dc3545;
        border: 1px solid #f5c6cb;
    }

/* Duration Cards */
.duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.duration-card {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .duration-card:hover {
        border-color: #667eea;
        transform: translateY(-2px);
    }

    .duration-card.selected {
        border-color: #667eea;
        background: linear-gradient(135deg, #667eea10, #764ba210);
    }

.duration-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.duration-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.duration-card p {
    color: #6c757d;
    font-size: 14px;
}

/* Data Slider */
.data-slider-container {
    margin-bottom: 32px;
}

.usage-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.usage-type {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

    .usage-type.light {
        background: #e6f3ff;
        color: #0066cc;
    }

    .usage-type.heavy {
        background: #ffe6f3;
        color: #cc0066;
    }

.slider-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.data-slider, .travel-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

    .data-slider::-webkit-slider-thumb, .travel-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

.slider-value {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.usage-description p {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
}

/* Travel Frequency */
.frequency-slider-container {
    margin-bottom: 32px;
}

    .frequency-slider-container label {
        display: block;
        font-weight: 600;
        color: #374151;
        margin-bottom: 16px;
        text-align: center;
    }

.slider-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}

.frequency-value {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin: 16px 0;
}

.frequency-description p {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
}

.selected-destination {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .selected-destination.selected {
        background: linear-gradient(135deg, #667eea10, #764ba210);
        border-color: #667eea;
    }

.country-flag {
    font-size: 24px;
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.country-name {
    font-weight: 600;
    color: #1a202c;
    font-size: 16px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .suggestion-item:hover {
        background-color: #f8f9fa;
    }

    .suggestion-item.selected {
        background-color: #667eea;
        color: white;
    }

/* Service Cards */
.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.service-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .service-card:hover {
        border-color: #667eea;
        transform: translateY(-2px);
    }

    .service-card.selected {
        border-color: #667eea;
        background: linear-gradient(135deg, #667eea10, #764ba210);
    }

    .service-card.featured {
        border-color: #667eea;
        background: linear-gradient(135deg, #667eea05, #764ba205);
    }

.service-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.service-header {
    text-align: center;
    margin-bottom: 20px;
}

    .service-header h3 {
        font-size: 20px;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 8px;
    }

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
}

/* Buttons */
.btn-next {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-next:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    }

    .btn-next:disabled {
        background: #e5e7eb;
        color: #9ca3af;
        cursor: not-allowed;
    }

/* Responsive */
@@media (max-width: 768px) {
    .esim-journey-container {
        padding: 16px;
    }

    .journey-content {
        padding: 24px;
    }

    .progress-steps {
        gap: 8px;
    }

    .step span {
        font-size: 12px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .service-options {
        grid-template-columns: 1fr;
    }

    .duration-options {
        grid-template-columns: 1fr;
    }
}

.mobile-view .progress-steps {
    flex-wrap: wrap;
    gap: 0px;
}

.mobile-view .step {
    flex: 1;
    min-width: 0px;
}

    .mobile-view .step span {
        display: none;
    }

.mobile-view .step-circle {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.compatibility-status {
    animation: fadeIn 0.3s ease;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
}

    .loading-dots::after {
        content: '';
        position: absolute;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: currentColor;
        animation: loading-dots 1.2s linear infinite;
    }

@@keyframes loading-dots {
    0%, 80%, 100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

.suggestion-item.selected {
    background-color: #667eea;
    color: white;
}

.suggestion-item strong {
    font-weight: 600;
}

.step-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-message h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.success-message p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 32px;
}

.recommended-plan {
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

    .recommended-plan h3 {
        font-size: 24px;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 20px;
    }

.plan-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #374151;
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
}

@@media (max-width: 768px) {
    .plan-details {
        align-items: center;
    }

    .plan-price {
        font-size: 28px;
    }
}



.package-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .package-card:hover {
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
    }

    .package-card.selected {
        border-color: #667eea;
        background: linear-gradient(135deg, #667eea05, #764ba205);
    }

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.operator-logo {
    width: 100%;
    height: 60px;
    display: flex;
    padding: 10px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    gap: 20px;
    overflow: hidden;
}

    .operator-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.package-badge {
    display: flex;
    gap: 8px;
}

.cashback-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.package-content {
    margin-bottom: 24px;
}

.package-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.3;
}

.package-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.package-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature-icon {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.feature-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-value {
    font-size: 13px;
    color: #1a202c;
    font-weight: 600;
}

.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.package-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-main {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.price-per-unit {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.btn-select-package {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

    .btn-select-package:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    }

    .btn-select-package:active {
        transform: translateY(0);
    }

/* Mobile responsive */
@@media (max-width: 768px) {
    .package-card {
        padding: 20px;
        margin-bottom: 16px;
    }

    .package-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .package-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        text-align: center;
    }

    .btn-select-package {
        width: 100%;
    }

    .price-main {
        font-size: 20px;
    }
}

/* Animation for selection */
.package-card.selecting {
    animation: pulse 0.6s ease;
}

@@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}