/* Premium Quiz Design - White + Gold */
/* Zachowuje całą funkcjonalność ze starej strony, zmienia tylko kolory */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Premium White Theme */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F5F5F5;
    
    /* Gold Accent */
    --primary: #D4AF37;
    --primary-dark: #B8941F;
    --primary-light: #F5E6B3;
    
    /* Gradient (matching navbar) */
    --gradient-start: #1a1a2e;
    --gradient-end: #4a1942;
    --accent: #C41E56;
    
    /* Text */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    
    /* Borders */
    --border: #E5E5E5;
    --border-hover: #D4AF37;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Radius */
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* Quiz Container */
.quiz-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quiz-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 3rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Quiz Content */
.quiz-content {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
}

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

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

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Answers Grid */
.answers-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.2s;
}

.answer-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.answer-option input[type="radio"]:checked ~ .answer-label,
.answer-option input[type="checkbox"]:checked ~ .answer-label {
    font-weight: 600;
    color: var(--primary);
}

.answer-option:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
}

.answer-label {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
}

.answer-price {
    font-weight: 600;
    color: var(--primary);
    margin-left: 1rem;
}

/* Navigation */
.quiz-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-prev,
.btn-next,
.btn-finish {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prev {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-prev:hover {
    background: var(--border);
}

.btn-next,
.btn-finish {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    margin-left: auto;
}

.btn-next:hover,
.btn-finish:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Summary */
.quiz-summary {
    text-align: center;
}

.price-summary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    margin: 2rem 0;
}

.price-label {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
}

.summary-info {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin: 2rem 0;
    text-align: left;
}

.summary-info p {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.summary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border);
}

/* Contact Form */
.contact-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-info {
    background: #f8f9fa;
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
}

.form-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-message h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.success-message strong {
    color: var(--primary);
}

.success-actions {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-container {
        padding: 1rem;
    }
    
    .quiz-content {
        padding: 2rem 1.5rem;
    }
    
    .quiz-header h1 {
        font-size: 2rem;
    }
    
    .question-title {
        font-size: 1.25rem;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .btn-next,
    .btn-finish {
        margin-left: 0;
    }
    
    .summary-actions {
        flex-direction: column;
    }
}

/* Phone Panel Section */
.phone-panel-section {
    padding: var(--space-4) 0;
    min-height: calc(100vh - 170px);
    background: var(--bg-secondary);
}

@media (max-width: 968px) {
    .phone-panel-section {
        min-height: calc(100vh - 80px);
        padding: var(--space-3) 0;
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: var(--space-6);
    transition: all 0.2s;
}

.back-link:hover {
    gap: var(--space-3);
    color: var(--primary-dark);
}

/* Main Panel - Split View */
.phone-panel {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Left Side - Phone Image */
.phone-panel-left {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.phone-image-display {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    margin-bottom: var(--space-3);
    backdrop-filter: blur(10px);
}

.phone-details-info {
    text-align: center;
    color: white;
}

.phone-brand-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.phone-model-title {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.base-price-box {
    margin-top: var(--space-2);
    padding: var(--space-2);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.base-price-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: var(--space-1);
}

.base-price-amount {
    font-size: 1.5rem;
    font-weight: 900;
}

/* Right Side - Quiz */
.phone-panel-right {
    padding: var(--space-6);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.panel-header {
    margin-bottom: var(--space-4);
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.panel-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Wizard Progress */
.wizard-progress {
    margin-bottom: var(--space-6);
}

.wizard-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.wizard-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: width 0.3s ease;
    border-radius: 999px;
}

.wizard-steps {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

.wizard-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.wizard-step.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.wizard-step:hover {
    transform: scale(1.1);
}

/* Wizard Card */
.wizard-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
}

.wizard-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.wizard-options {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.wizard-option {
    padding: var(--space-4);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
}

.wizard-option:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.wizard-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.wizard-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: space-between;
}

.wizard-back,
.wizard-next {
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.wizard-back {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.wizard-back:hover:not(:disabled) {
    background: var(--bg-card-hover);
}

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

.wizard-next {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.wizard-next:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

/* Summary Panel */
.summary-panel {
    margin-top: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

.final-summary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    border: 2px solid var(--primary);
}

.final-summary .summary-label {
    font-size: 1rem;
    color: var(--text-primary);
}

.final-summary .summary-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: var(--space-4);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-glow);
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

/* Contract Banner */
.contract-banner {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Quiz Sidebar - Panel podsumowania */
.quiz-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.quiz-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-content {
    min-height: 100px;
    margin-bottom: 1rem;
}

.sidebar-empty {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem 0;
}

.sidebar-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    background: transparent;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    animation: slideIn 0.4s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

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

.sidebar-item.new {
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateX(-10px);
    }
    50% {
        transform: scale(1.02) translateX(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
        background: transparent;
    }
}

.sidebar-question {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.sidebar-answer {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
}

.sidebar-price {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-price.pulse {
    animation: pricePulse 0.6s ease-out;
}

@keyframes pricePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.sidebar-price-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.sidebar-price-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.sidebar-price-value.updated {
    animation: priceUpdate 0.4s ease-out;
}

@keyframes priceUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        color: #fff;
    }
    100% {
        transform: scale(1);
    }
}

.quiz-main {
    min-width: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .quiz-with-sidebar {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .quiz-sidebar {
        position: relative;
        top: 0;
        order: 2;
        margin-top: 1rem;
    }
    
    .quiz-main {
        order: 1;
    }
    
    .phone-panel {
        grid-template-columns: 1fr;
    }

    .phone-panel-left {
        padding: var(--space-6);
    }

    .wizard-actions {
        flex-direction: column;
    }

    .wizard-back,
    .wizard-next {
        width: 100%;
    }
}
