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

:root {
    /* Hotsound CI Colors */
    --primary: #A33327;
    --primary-hover: #7D271E;
    --black: #1A1A1E;
    --gray-50: #F5F5F7;
    --gray-100: #E8E8EC;
    --gray-300: #B0B0B8;
    --gray-500: #4A4A52;
    --gray-700: #2E2E34;
    --gray-900: #1A1A1E;
    --gold: #D4933B;
    --green: #2C6E5A;
    --white: #FFFFFF;

    /* Semantic Mappings */
    --bg-body: var(--gray-50);
    --bg-card: var(--white);
    --text-primary: var(--black);
    --text-secondary: var(--gray-500);
    --text-tertiary: var(--gray-300);
    --border-color: var(--gray-100);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    
    /* Radii */
    --radius-btn: 6px;
    --radius-card: 8px;
    --radius-badge: 4px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container-wide {
    max-width: 1800px;
    width: 98%;
}

.container-narrow {
    max-width: 800px;
}

/* For pages that need vertical centering (like the funnel) */
.funnel-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Typography */
h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    h1 { font-size: 36px; }
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    h2 { font-size: 26px; }
}

h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    h3 { font-size: 18px; }
}

p {
    font-size: 14px;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    p { font-size: 16px; }
}

.subtitle {
    color: var(--text-secondary);
}

/* Funnel Card */
.funnel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

@media (min-width: 768px) {
    .funnel-card { padding: 3rem; }
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 100%);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.step-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.input-field, .select-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    transition: all var(--transition-fast);
}

.input-field:focus, .select-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(163, 51, 39, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 44px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 51, 39, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--text-secondary);
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Option Cards */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .options-grid { grid-template-columns: repeat(2, 1fr); }
}

.option-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.option-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.option-card.selected {
    border-color: var(--primary);
    background-color: rgba(163, 51, 39, 0.03);
    box-shadow: 0 0 0 1px var(--primary);
}

.option-card h3 {
    margin-bottom: 0.25rem;
}

.option-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Animations */
.fade-in {
    animation: fadeIn var(--transition-normal);
}

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

.fade-out {
    animation: fadeOut var(--transition-normal);
}

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

/* Success State */
.success-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 40px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Error States */
.error-box {
    background-color: #FEF2F2;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin-top: 1rem;
    color: var(--primary-hover);
    font-size: 14px;
}
