/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

/* Card Styles */
.intro-card,
.quiz-card,
.form-card,
.result-card,
.success-card,
.error-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideUp 0.6s ease-out;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.main-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.quiz-title,
.form-title,
.result-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-subtitle,
.result-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Forms */
.input-group,
.form-group {
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    text-align: center;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    text-align: center;
    margin: 0 auto;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Quiz Styles */
.question {
    margin-bottom: 30px;
}

.question-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    width: 100%;
    text-align: left;
}

.option:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.option input[type="radio"] {
    margin-right: 15px;
    margin-top: 2px;
    transform: scale(1.2);
}

.option input[type="radio"]:checked + .option-text {
    font-weight: 600;
    color: #667eea;
}

.option-text {
    flex: 1;
    line-height: 1.5;
    color: #333;
}

.quiz-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

/* Result Styles */
.variant-result {
    margin: 30px 0;
}

.variant-card {
    border: 3px solid;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.variant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Combination Result Styles */
.combination-result {
    margin: 40px 0;
    padding: 20px 0;
}

.combination-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.combination-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.combination-subtitle {
    font-size: 1.6rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.3;
}

.combination-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 50px auto;
    padding: 0;
    width: 100%;
    max-width: 1000px;
}

.combination-cards .variant-card {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: auto;
}

.combination-x {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
    flex-shrink: 0;
    align-self: center;
}

.sweet-fruity {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border: 3px solid #ff6b9d;
}

.floral-fresh {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border: 3px solid #4ecdc4;
}

.variant-color {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.variant-name {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.variant-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.variant-characteristics h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.variant-characteristics ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.variant-characteristics li {
    background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
    color: #667eea;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.variant-characteristics li:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.result-actions {
    margin: 40px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.product-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.product-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Success/Error Pages */
.success-card,
.error-card {
    max-width: 500px;
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-icon {
    color: #28a745;
}

.error-icon {
    color: #dc3545;
}

.success-title,
.error-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.success-message,
.error-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-actions,
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Info Sections */
.info-section,
.form-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.info-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px;
    }
    
    .intro-card,
    .quiz-card,
    .form-card,
    .result-card,
    .success-card,
    .error-card {
        padding: 40px 30px;
        margin: 0;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .quiz-title,
    .form-title,
    .result-title {
        font-size: 1.5rem;
    }
    
    .option {
        padding: 15px;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }
    
    .result-actions,
    .success-actions,
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .variant-characteristics ul {
        justify-content: center;
    }
    
    .combination-cards {
        flex-direction: column;
        gap: 30px;
        padding: 0;
        margin: 30px auto;
        max-width: 100%;
    }
    
    .combination-x {
        transform: rotate(90deg);
        margin: 15px 0;
        min-width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .combination-cards .variant-card {
        min-width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .combination-title {
        font-size: 2rem;
    }
    
    .combination-subtitle {
        font-size: 1.3rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    color: #721c24;
    margin: 20px 0;
}
