* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.keypad-screen {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.code-display {
    margin-bottom: 40px;
}

.code-input {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #e0e0e0;
    transition: all 0.3s ease;
}

.dot.filled {
    background-color: #f97316;
    transform: scale(1.2);
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.key {
    aspect-ratio: 1;
    border: none;
    border-radius: 15px;
    background: #f8f9fa;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.key:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.key:active {
    transform: translateY(0);
    background: #dee2e6;
}

.key.clear, .key.delete {
    background: #ff6b6b;
    color: white;
}

.key.clear:hover, .key.delete:hover {
    background: #ff5252;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* Wizard Styles */
.wizard-screen {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.wizard-screen.active {
    display: block;
}

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

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #f97316;
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.step-description {
    color: #666;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.slider-container {
    position: relative;
    margin: 20px 0;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-value {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f97316;
    margin-top: 10px;
}

.input-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #f97316;
    background: white;
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #ea580c);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Results Page */
.results-screen {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.results-screen.active {
    display: block;
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.card.winner {
    border-color: #28a745;
    background: #f8fff9;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.card-price {
    font-size: 2rem;
    font-weight: 800;
    color: #f97316;
    margin-bottom: 10px;
}

.card-period {
    color: #666;
    font-size: 0.9rem;
}

.winner-badge {
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.details-btn {
    width: 100%;
    margin-top: 20px;
}

.details-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    display: none;
}

.details-section.show {
    display: block;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
    font-weight: 600;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #f97316;
}

/* Results screen specific adjustments */
@media (max-width: 900px) {
    .results-screen {
        max-width: 90%;
    }
    
    .comparison-cards {
        gap: 15px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 90%;
        width: 90%;
    }
    
    .keypad-screen, .wizard-screen, .results-screen {
        padding: 20px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .comparison-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }
    
    .card {
        padding: 15px;
    }
    
    .card-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
        max-width: 95%;
        width: 95%;
    }
    
    .keypad-screen, .wizard-screen, .results-screen {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .btn {
        padding: 12px 20px;
    }
    
    .step-header {
        margin-bottom: 20px;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
}

/* Package Selection Styles */
.package-option {
    transition: all 0.3s ease !important;
}

.package-option:hover {
    border-color: #f97316 !important;
    background: #fff8f0 !important;
}

.package-option.selected {
    border-color: #f97316 !important;
    background: #fff8f0 !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2) !important;
}
