/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px 10px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: start;
}

/* Header - Futuristisk */
.header {
    text-align: center;
    margin-bottom: 24px;
    color: white;
    text-shadow: 0 2px 20px rgba(255,255,255,0.3);
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
}

/* Calculator Wrapper - Glassmorphism */
.calculator-wrapper {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Progress Bar - Futuristisk */
.progress-bar {
    display: flex;
    background: #f8f9fa;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    position: relative;
    transition: all 0.3s ease;
}

.progress-step:not(:last-child)::after {
    display: none;
}

.progress-step.active:not(:last-child)::after {
    display: none;
}

.progress-step.active {
    background: rgba(63, 176, 172, 0.1);
    color: #1a1a1a;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #03384a 0%, #3fb0ac 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(63, 176, 172, 0.3);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
}

.progress-step.active .step-label {
    color: #1a1a1a;
    font-weight: 600;
}

/* Step Content - Futuristisk */
.step-content {
    display: none;
    padding: 24px;
    background: #ffffff;
}

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

.step-content h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.step-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Products List - Futuristisk */
.products-grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    gap: 8px;
}

.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(63, 176, 172, 0.3);
}

.product-card h3 {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 600;
    flex: 1;
    margin: 0;
}

.product-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card h3 a:hover {
    color: #3fb0ac;
    text-decoration: underline;
}

.product-card .product-price {
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, #03384a 0%, #3fb0ac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 16px;
    white-space: nowrap;
}

.product-card .product-price span {
    -webkit-text-fill-color: rgba(63, 176, 172, 0.8);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(63, 176, 172, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #3fb0ac;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qty-btn:hover {
    background: linear-gradient(135deg, #03384a 0%, #3fb0ac 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(63, 176, 172, 0.4);
}

.qty-btn:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: #ccc;
    border-color: rgba(0, 0, 0, 0.1);
    cursor: not-allowed;
    transform: none;
}

.qty-display {
    font-size: 1rem;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    color: #1a1a1a;
}

/* Packages List - Futuristisk */
.packages-grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    gap: 12px;
}

.package-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.package-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(63, 176, 172, 0.3);
}

.package-card.selected {
    background: linear-gradient(135deg, rgba(3, 56, 74, 0.15) 0%, rgba(63, 176, 172, 0.15) 100%);
    border: 2px solid rgba(63, 176, 172, 0.5);
    box-shadow: 0 8px 24px rgba(63, 176, 172, 0.2);
}

.package-card > div {
    flex: 1;
}

.package-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #1a1a1a;
    font-weight: 600;
}

.package-card .package-price {
    font-size: 1rem;
    background: linear-gradient(135deg, #03384a 0%, #3fb0ac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
}

.package-card p {
    color: #666;
    font-size: 0.85rem;
    margin: 4px 0 0 0;
}

/* Advisory List - Futuristisk */
.advisory-grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    gap: 12px;
}

.advisory-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.advisory-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(63, 176, 172, 0.3);
}

.advisory-card.selected {
    background: linear-gradient(135deg, rgba(3, 56, 74, 0.15) 0%, rgba(63, 176, 172, 0.15) 100%);
    border: 2px solid rgba(63, 176, 172, 0.5);
    box-shadow: 0 8px 24px rgba(63, 176, 172, 0.2);
}

.advisory-card > div {
    flex: 1;
}

.advisory-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #1a1a1a;
    font-weight: 600;
}

.advisory-card p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.advisory-card::before {
    content: '☐';
    margin-right: 16px;
    font-size: 1.5rem;
    color: rgba(63, 176, 172, 0.4);
    transition: all 0.3s ease;
}

.advisory-card.selected::before {
    content: '☑';
    color: #3fb0ac;
    transform: scale(1.2);
}

/* Buttons - Futuristisk */
.next-btn, .back-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.next-btn {
    background: linear-gradient(135deg, #03384a 0%, #3fb0ac 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(63, 176, 172, 0.4);
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(63, 176, 172, 0.5);
}

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

.next-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(63, 176, 172, 0.4);
}

.back-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: #666;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.step-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal - Futuristisk */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 10% auto;
    padding: 32px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

/* Form - Futuristisk */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #3fb0ac;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(63, 176, 172, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #03384a 0%, #3fb0ac 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(63, 176, 172, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(63, 176, 172, 0.5);
}

/* Success Modal - Futuristisk */
.success-modal-content {
    text-align: center;
    padding: 40px 32px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #03384a 0%, #3fb0ac 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(63, 176, 172, 0.4);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal-content h2 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.success-modal-content p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.success-modal-content .submit-btn {
    width: auto;
    min-width: 150px;
    margin: 0 auto;
}

/* Price Estimate - Futuristisk */
.price-estimate {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.price-estimate h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #1a1a1a;
    text-align: center;
    font-weight: 700;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    gap: 20px;
}

.price-item.product-item {
    padding: 6px 0;
    font-size: 0.85rem;
}

.price-item.product-item.empty {
    border-bottom: none;
    padding: 4px 0;
}

.price-item.main-price {
    border-top: 2px solid rgba(63, 176, 172, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 12px;
    padding-top: 16px;
    padding-bottom: 12px;
    font-weight: 700;
    font-size: 1.2rem;
}

.price-item.main-price .price-label {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.price-item.main-price .price-value {
    font-size: 1.3rem;
    white-space: nowrap;
}

.price-item.total {
    border-top: 2px solid rgba(63, 176, 172, 0.3);
    border-bottom: none;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

.price-label {
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.price-label a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.price-label a:hover {
    color: #3fb0ac;
    text-decoration: underline;
}

.price-value {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-item.total .price-value {
    color: #1a1a1a;
    font-size: 1.3rem;
}

/* Responsive Design - Futuristisk */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .price-estimate {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px 8px;
    }
    
    .container {
        padding: 0;
        max-width: 100%;
    }
    
    .main-content {
        gap: 16px;
    }
    
    .header h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-content h2 {
        font-size: 1.2rem;
    }
    
    .product-card {
        padding: 14px 16px;
        flex-wrap: wrap;
    }
    
    .product-card .product-price {
        margin: 0 12px;
        font-size: 0.85rem;
    }
    
    .package-card {
        padding: 16px;
    }
    
    .advisory-card {
        padding: 16px;
    }
    
    .progress-step {
        padding: 12px 6px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 24px;
    }
    
    .price-estimate {
        padding: 20px;
    }
    
    .price-breakdown {
        gap: 6px;
    }
}

/* Animation - Futuristisk */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content.active {
    animation: fadeIn 0.4s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.progress-step.active .step-number {
    animation: pulse 2s ease-in-out infinite;
}
