/**
 * Support Wizard Styles
 * Echolikes Design System
 */

/* Variables */
.sw-container {
    --sw-orange: #FF6B00;
    --sw-orange-light: #FFF7ED;
    --sw-orange-dark: #E55F00;
    --sw-gray-900: #111827;
    --sw-gray-700: #374151;
    --sw-gray-600: #4B5563;
    --sw-gray-500: #6B7280;
    --sw-gray-400: #9CA3AF;
    --sw-gray-200: #E5E7EB;
    --sw-gray-100: #F3F4F6;
    --sw-green: #22C55E;
    --sw-green-light: #F0FDF4;
    --sw-yellow: #F59E0B;
    --sw-yellow-light: #FFFBEB;
    --sw-radius: 16px;
    --sw-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Steps */
.sw-step {
    display: none;
    animation: swFadeIn 0.3s ease;
}

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

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

/* Header */
.sw-header {
    text-align: center;
    margin-bottom: 40px;
}

.sw-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sw-gray-900);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.sw-subtitle {
    font-size: 1.1rem;
    color: var(--sw-gray-500);
    margin: 0;
}

/* Main options (FAQ vs Problems) */
.sw-main-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sw-main-option {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 24px 28px;
    background: white;
    border: 2px solid var(--sw-gray-200);
    border-radius: var(--sw-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.sw-main-option:hover {
    border-color: var(--sw-orange);
    background: var(--sw-orange-light);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.1);
}

.sw-main-option__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.sw-main-option__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sw-main-option__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sw-gray-900);
}

.sw-main-option__desc {
    font-size: 0.9rem;
    color: var(--sw-gray-500);
}

.sw-main-option__arrow {
    color: var(--sw-gray-400);
    transition: transform 0.2s ease;
}

.sw-main-option:hover .sw-main-option__arrow {
    color: var(--sw-orange);
    transform: translateX(4px);
}

/* FAQ List */
.sw-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-faq-item {
    background: white;
    border: 2px solid var(--sw-gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sw-faq-item[open] {
    border-color: var(--sw-orange);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.1);
}

.sw-faq-item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sw-gray-900);
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease;
}

.sw-faq-item summary::-webkit-details-marker {
    display: none;
}

.sw-faq-item summary:hover {
    background: var(--sw-gray-100);
}

.sw-faq-item[open] summary {
    background: var(--sw-orange-light);
}

.sw-faq-item__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sw-faq-item__answer {
    padding: 0 20px 20px 54px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--sw-gray-600);
}

.sw-faq-item__answer p {
    margin: 0 0 12px 0;
}

.sw-faq-item__answer p:last-child {
    margin-bottom: 0;
}

.sw-faq-item__answer ul {
    margin: 8px 0 12px 0;
    padding-left: 20px;
}

.sw-faq-item__answer li {
    margin-bottom: 6px;
}

/* FAQ Footer */
.sw-faq-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--sw-gray-200);
}

.sw-faq-footer p {
    margin: 0 0 16px 0;
    color: var(--sw-gray-500);
}

/* Problem options grid */
.sw-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: white;
    border: 2px solid var(--sw-gray-200);
    border-radius: var(--sw-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.sw-option:hover {
    border-color: var(--sw-orange);
    background: var(--sw-orange-light);
    transform: translateX(4px);
}

.sw-option__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sw-option__text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sw-gray-900);
}

/* Answer section */
.sw-answer {
    display: none;
    background: white;
    border-radius: var(--sw-radius);
    padding: 32px;
    box-shadow: var(--sw-shadow);
    border: 1px solid var(--sw-gray-100);
    margin-bottom: 24px;
}

.sw-answer--active {
    display: block;
    animation: swFadeIn 0.3s ease;
}

.sw-answer__icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 16px;
}

.sw-answer__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sw-gray-900);
    text-align: center;
    margin: 0 0 24px 0;
}

.sw-answer__content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--sw-gray-700);
}

.sw-answer__content p {
    margin: 0 0 16px 0;
}

.sw-answer__content p:last-child {
    margin-bottom: 0;
}

.sw-answer__list {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.sw-answer__list li {
    margin-bottom: 8px;
}

.sw-answer__note {
    background: var(--sw-gray-100);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--sw-gray-600);
}

/* Checklist */
.sw-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.sw-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--sw-gray-100);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sw-check:hover {
    background: var(--sw-gray-200);
}

.sw-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--sw-orange);
    cursor: pointer;
    flex-shrink: 0;
}

.sw-check span {
    font-size: 0.95rem;
    color: var(--sw-gray-700);
    line-height: 1.4;
}

/* Highlight box */
.sw-highlight {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--sw-green-light);
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid var(--sw-green);
}

.sw-highlight--warning {
    background: var(--sw-yellow-light);
    border-left-color: var(--sw-yellow);
}

.sw-highlight__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sw-highlight__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--sw-gray-700);
}

.sw-highlight__text strong {
    color: var(--sw-gray-900);
}

/* FAQ accordion */
.sw-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.sw-faq__item {
    background: var(--sw-gray-100);
    border-radius: 8px;
    overflow: hidden;
}

.sw-faq__item summary {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--sw-gray-900);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sw-faq__item summary::-webkit-details-marker {
    display: none;
}

.sw-faq__item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--sw-gray-400);
    transition: transform 0.2s ease;
}

.sw-faq__item[open] summary::after {
    content: '−';
}

.sw-faq__item p {
    padding: 0 20px 16px;
    margin: 0;
    color: var(--sw-gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Action buttons */
.sw-actions {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.sw-actions--visible {
    display: flex;
}

.sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.sw-btn--success {
    background: var(--sw-green);
    color: white;
}

.sw-btn--success:hover {
    background: #1CAE54;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.sw-btn--outline {
    background: white;
    color: var(--sw-gray-600);
    border: 2px solid var(--sw-gray-200);
}

.sw-btn--outline:hover {
    border-color: var(--sw-gray-400);
    color: var(--sw-gray-900);
}

/* Contact section - hidden by default */
.sw-contact {
    display: none;
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, var(--sw-orange-light) 0%, #FFF 100%);
    border-radius: var(--sw-radius);
    border: 2px solid var(--sw-orange);
    margin-top: 24px;
}

.sw-contact--visible {
    display: block;
    animation: swFadeIn 0.3s ease;
}

.sw-contact__label {
    font-size: 1rem;
    color: var(--sw-gray-600);
    margin: 0 0 16px 0;
}

.sw-contact__email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sw-orange);
    text-decoration: none;
    padding: 14px 28px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
    transition: all 0.2s ease;
}

.sw-contact__email:hover {
    background: var(--sw-orange);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
}

.sw-contact__email svg {
    flex-shrink: 0;
}

.sw-contact__note {
    font-size: 0.85rem;
    color: var(--sw-gray-500);
    margin: 16px 0 0 0;
}

/* Back button */
.sw-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid var(--sw-gray-200);
    border-radius: 8px;
    color: var(--sw-gray-600);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.sw-back:hover {
    border-color: var(--sw-gray-400);
    color: var(--sw-gray-900);
}

/* Mobile responsive */
@media (max-width: 576px) {
    .sw-container {
        padding: 24px 16px 40px;
    }

    .sw-title {
        font-size: 1.5rem;
    }

    .sw-subtitle {
        font-size: 1rem;
    }

    .sw-option {
        padding: 16px 20px;
    }

    .sw-option__text {
        font-size: 1rem;
    }

    .sw-answer {
        padding: 24px 20px;
    }

    .sw-answer__title {
        font-size: 1.25rem;
    }

    .sw-highlight {
        flex-direction: column;
        gap: 12px;
    }

    .sw-contact__email {
        font-size: 1rem;
        padding: 12px 24px;
    }
}
