/* ===== Smart Cosmetic Advisor Styles ===== */

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

.cosmetic-advisor-container {
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Prompt', sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 100%);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
    overflow: hidden;
}

/* ===== Header ===== */
.advisor-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    padding: 50px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.advisor-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.advisor-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.tagline {
    font-size: 17px;
    opacity: 0.95;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* ===== Progress Bar ===== */
.progress-container {
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    background: white;
    position: relative;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #ffd4e0;
    transform: translateY(-50%);
    z-index: 0;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffd4e0;
    color: #999;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.step-label {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

.progress-step.active .step-label {
    color: #c44569;
}

/* ===== Form ===== */
.advisor-form {
    padding: 40px;
    background: white;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

.form-step h2 {
    font-size: 28px;
    color: #c44569;
    margin: 0 0 30px 0;
    text-align: center;
}

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.advisor-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-family: 'Prompt', sans-serif;
    border: 2px solid #ffd4e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.advisor-input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
}

.help-text {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

/* ===== Radio & Checkbox Groups ===== */
.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.radio-option,
.checkbox-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.radio-option input,
.checkbox-option input {
    position: absolute;
    opacity: 0;
}

.radio-label,
.checkbox-label {
    display: block;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #ffd4e0;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.radio-option input:checked + .radio-label,
.checkbox-option input:checked + .checkbox-label {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    border-color: #c44569;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: #ff6b9d;
    transform: translateY(-2px);
}

/* ===== Buttons ===== */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-next,
.btn-back,
.btn-submit,
.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next,
.btn-submit,
.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

.btn-next:hover,
.btn-submit:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4);
}

.btn-back {
    flex: 0.5;
    background: #f5f5f5;
    color: #666;
}

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

.btn-secondary {
    background: white;
    color: #ff6b9d;
    border: 2px solid #ff6b9d;
}

.btn-secondary:hover {
    background: #ff6b9d;
    color: white;
    transform: translateY(-2px);
}

/* ===== Results Section ===== */
.results-section {
    padding: 40px;
    background: white;
    animation: slideIn 0.5s ease;
}

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

.results-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 100%);
    border-radius: 20px;
}

.results-header h2 {
    font-size: 32px;
    color: #c44569;
    margin: 0 0 10px 0;
}

.results-subtitle {
    font-size: 16px;
    color: #666;
}

.result-category {
    margin-bottom: 50px;
}

.result-category h3 {
    font-size: 24px;
    color: #ff6b9d;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #ffd4e0;
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    padding: 25px;
    background: white;
    border: 2px solid #ffd4e0;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b9d 0%, #c44569 100%);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.2);
    border-color: #ff6b9d;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-step {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-type {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

.product-name {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
    font-weight: 600;
    line-height: 1.4;
}

.product-price {
    font-size: 22px;
    color: #ff6b9d;
    font-weight: 700;
    margin: 10px 0;
}

.product-reason {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.product-reason strong {
    color: #c44569;
}

/* ===== Tips Section ===== */
.tips-container {
    display: grid;
    gap: 20px;
}

.tip-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #fff9fa 0%, #fff0f3 100%);
    border-radius: 15px;
    border-left: 5px solid #ff6b9d;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.1);
}

.tip-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 18px;
    color: #c44569;
    margin: 0 0 10px 0;
}

.tip-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===== Action Buttons ===== */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.action-buttons button {
    flex: 1;
    min-width: 200px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .cosmetic-advisor-container {
        margin: 20px 10px;
        border-radius: 20px;
    }

    .advisor-header {
        padding: 35px 25px;
    }

    .advisor-header h1 {
        font-size: 32px;
    }

    .tagline {
        font-size: 15px;
    }

    .progress-container {
        padding: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        font-size: 11px;
    }

    .advisor-form,
    .results-section {
        padding: 25px 20px;
    }

    .form-step h2 {
        font-size: 24px;
    }

    .radio-group,
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-back {
        flex: 1;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .advisor-header h1 {
        font-size: 26px;
    }

    .results-header h2 {
        font-size: 26px;
    }

    .product-price {
        font-size: 20px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .advisor-header,
    .progress-container,
    .button-group,
    .action-buttons {
        display: none !important;
    }

    .cosmetic-advisor-container {
        box-shadow: none;
        background: white;
    }

    .product-card,
    .tip-card {
        page-break-inside: avoid;
    }
}

/* ===== Loading Animation ===== */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Tooltips ===== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: white;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

[data-tooltip]:hover::after {
    opacity: 1;
}
