/**
 * Syncle RFQ Funnel Styles
 * Toss Design System Inspired
 */

:root {
    --toss-blue: #0064FF;
    --toss-blue-dark: #0052D4;
    --toss-bg: #FFFFFF;
    --toss-bg-gray: #F2F4F6;
    --toss-text: #191F28;
    --toss-text-gray: #8B95A1;
    --toss-border: #E5E8EB;
    --toss-radius: 16px;
    --safe-area-bottom: env(safe-area-inset-bottom);
}

/* Base Layout */
.app-container {
    background-color: var(--toss-bg);
    min-height: 100vh;
}

.main-content {
    /* Desktop: no extra padding needed */
}

/* Mobile padding removed */

/* Funnel Wrapper */
.funnel-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

/* Header & Progress */
.funnel-header {
    padding: 16px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.progress-container {
    flex: 1;
    height: 6px;
    background: #F2F4F6;
    border-radius: 10px;
    margin-right: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--toss-blue);
    width: 25%;
    transition: width 0.4s cubic-bezier(0.2, 0, 0, 1);
    border-radius: 10px;
}

.step-indicator {
    font-size: 14px;
    font-weight: 600;
    color: var(--toss-text-gray);
    font-family: var(--font-pretendard);
}

.step-indicator span:first-child {
    color: var(--toss-blue);
}

/* Steps Animation */
.funnel-step {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.2, 0, 0, 1);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--toss-text);
    margin-bottom: 8px;
    line-height: 1.35;
}

.step-subtitle {
    font-size: 16px;
    color: var(--toss-text-gray);
    margin-bottom: 32px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4E5968;
    margin-bottom: 8px;
}

.toss-input,
.toss-select,
.toss-textarea {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border: none;
    border-radius: 12px;
    background: var(--toss-bg-gray);
    color: var(--toss-text);
    transition: all 0.2s ease;
    font-family: var(--font-pretendard);
    -webkit-appearance: none;
    /* iOS Reset */
}

.toss-input:focus,
.toss-select:focus,
.toss-textarea:focus {
    outline: none;
    background: #E8F3FF;
    /* Very light blue */
    box-shadow: 0 0 0 2px var(--toss-blue) inset;
    color: var(--toss-blue-dark);
}

.toss-input::placeholder,
.toss-textarea::placeholder {
    color: #B0B8C1;
}

.toss-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B0B8C1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* Selection Cards (Step 1) */
.selection-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selection-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1.5px solid var(--toss-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selection-card input {
    position: absolute;
    opacity: 0;
}

.selection-card:hover {
    background: #FAFAFA;
}

.selection-card:has(input:checked) {
    border-color: var(--toss-blue);
    background: #E8F3FF;
}

.card-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background: var(--toss-bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #4E5968;
    margin-right: 16px;
    transition: all 0.2s;
}

.selection-card:has(input:checked) .icon-circle {
    background: #fff;
    color: var(--toss-blue);
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--toss-text);
    display: block;
    margin-right: auto;
}

.card-desc {
    font-size: 13px;
    color: var(--toss-text-gray);
    font-weight: 500;
}

/* Bottom Actions */
.bottom-actions {
    position: relative;
    background: transparent;
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    gap: 12px;
    z-index: 1;
}

/* Mobile fixed positioning removed as per user request */

.btn-next,
.btn-back {
    height: 52px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-pretendard);
    cursor: pointer;
    border: none;
    transition: transform 0.1s;
}

.btn-next {
    flex: 1;
    background: var(--toss-blue);
    color: white;
}

.btn-next:active {
    transform: scale(0.96);
    background: var(--toss-blue-dark);
}

.btn-next:disabled {
    background: #D1D6DB;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    width: 52px;
    background: var(--toss-bg-gray);
    color: var(--toss-text);
}

.btn-back:active {
    transform: scale(0.96);
}

.btn-home {
    background: var(--toss-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
    display: inline-block;
}

/* Sub Category Section */
.sub-category-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--toss-border);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Privacy Notice */
.privacy-notice {
    font-size: 13px;
    color: var(--toss-text-gray);
    background: var(--toss-bg-gray);
    padding: 12px;
    border-radius: 8px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.success-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #E8F3FF;
    border-radius: 50%;
    color: var(--toss-blue);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.success-content p {
    color: var(--toss-text-gray);
    line-height: 1.5;
    margin-bottom: 32px;
}