:root {
    --bg-body: #FDFCFB;
    --bg-card: #FFFFFF;
    --text-main: #2C2C2C;
    --text-muted: #6B6B6B;
    --accent-gold: #C5A880;
    --accent-gold-hover: #B09268;
    --border-light: #EAEAEA;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.05);
    --error-red: #e74c3c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--bg-card);
    padding: clamp(32px, 6vw, 60px);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.progress-bar {
    height: 2px;
    background: var(--border-light);
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gold);
    width: 0%;
    transition: width 0.4s ease;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 30px;
    height: 30px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.step-circle.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.step-circle.completed {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
}

/* Typography */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group { margin-bottom: 25px; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
    width: 100%;
    padding: 14px;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.3s;
    background: #FAFAFA;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: #fff;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.1);
}

textarea { min-height: 100px; resize: vertical; }

/* Checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-label:hover { background: #F9F9F9; }

input[type="checkbox"]:checked + .checkbox-label {
    border-color: var(--accent-gold);
    background: #fff;
    box-shadow: 0 2px 10px rgba(197, 168, 128, 0.1);
}

input[type="checkbox"] { display: none; }

/* Buttons */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    min-height: 48px;
}

.btn-prev {
    background: #f0f0f0;
    color: #666;
}

.btn-next, .btn-submit {
    background: var(--text-main);
    color: #fff;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-submit { background: var(--accent-gold); }

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.loading-text {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    font-size: 1.2rem;
}

.hidden { display: none; }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    body {
        padding: 32px 16px;
    }

    .container {
        padding: clamp(28px, 5vw, 48px);
    }

    h1 {
        font-size: 1.85rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 24px 14px;
        align-items: flex-start;
    }

    .progress-container {
        margin-bottom: 28px;
    }

    .steps-indicator {
        gap: 12px;
    }

    .step-circle {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    h1 {
        font-size: 1.65rem;
    }

    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 28px;
    }

    .checkbox-group {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .btn-group {
        gap: 16px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 20px 10px;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    textarea, input[type="text"], input[type="email"], input[type="tel"] {
        padding: 12px;
    }

    .spinner {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 18px 8px;
    }

    .container {
        padding: 18px;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.8px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .progress-container {
        padding: 0 6px;
    }

    .progress-bar {
        left: 6px;
        right: 6px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 16px 6px;
    }

    .container {
        padding: 14px;
    }

    .progress-container {
        padding: 0 4px;
    }

    .progress-bar {
        left: 4px;
        right: 4px;
    }
}
