:root {
    --warmth-primary: #C94A2A;
    --warmth-secondary: #E8B48F;
    --warmth-accent: #2A5C4E;
    --warmth-cream: #FBF7F2;
    --warmth-charcoal: #2C2625;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--warmth-cream);
    color: var(--warmth-charcoal);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 24px;
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.badge {
    display: inline-block;
    background: var(--warmth-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1rem;
    color: #666;
}

/* Progress bar - labeled steps */
.progress {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 80px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4cdc6;
    transition: all 0.3s;
    position: relative;
}

.progress-step.active .progress-dot {
    background: var(--warmth-primary);
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 3px rgba(201, 74, 42, 0.12);
}

.progress-step.done .progress-dot {
    background: var(--warmth-accent);
}

.progress-label {
    font-size: 0.7rem;
    color: #bbb;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s;
}

.progress-step.active .progress-label {
    color: var(--warmth-primary);
    font-weight: 600;
}

.progress-step.done .progress-label {
    color: var(--warmth-accent);
}

/* Social proof banner */
.social-proof {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(42, 92, 78, 0.06);
    border-radius: 50px;
}

.social-proof strong {
    color: var(--warmth-accent);
}

/* Steps */
.wizard-step {
    display: none;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--warmth-charcoal);
}

/* Rotating placeholder animation */
.placeholder-fade::placeholder {
    animation: placeholderFade 0.4s ease;
}

@keyframes placeholderFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.step-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Form elements */
label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--warmth-charcoal);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0d8d2;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: var(--warmth-charcoal);
    background: white;
    transition: border-color 0.2s;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--warmth-primary);
}

input.error,
textarea.error {
    border-color: #e74c3c;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

.field-error {
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 4px;
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--warmth-primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #B54025;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--warmth-charcoal);
    border: 2px solid #e0d8d2;
}

.btn-secondary:hover {
    border-color: var(--warmth-charcoal);
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-row .btn-secondary {
    flex: 0 0 auto;
}

.btn-row .btn-primary {
    flex: 1;
}

/* Tag chips */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid #e0d8d2;
    background: white;
    color: var(--warmth-charcoal);
    transition: all 0.2s;
    user-select: none;
}

.tag-chip:hover {
    border-color: var(--warmth-primary);
}

.tag-chip.selected {
    background: var(--warmth-primary);
    color: white;
    border-color: var(--warmth-primary);
}

.tag-custom-input {
    display: flex;
    gap: 8px;
}

.tag-custom-input input {
    flex: 1;
}

.tag-custom-input button {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--warmth-accent);
    color: white;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Step 2 - waiting */
.waiting-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
}

.waiting-text {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e0d8d2;
    border-top-color: var(--warmth-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Preview (step 5) */
.preview-section {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--warmth-cream);
    border-radius: 10px;
}

.preview-section h4 {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.preview-section p {
    font-size: 0.95rem;
    color: var(--warmth-charcoal);
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preview-tag {
    display: inline-block;
    padding: 4px 12px;
    background: white;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid #e0d8d2;
}

/* Messages */
.message {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
}

.message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    display: block;
}

.message.info {
    background: rgba(42, 92, 78, 0.1);
    color: var(--warmth-accent);
    border: 1px solid rgba(42, 92, 78, 0.2);
    display: block;
}

/* Already registered */
.already-registered {
    text-align: center;
    padding: 40px 20px;
}

.already-registered h2 {
    font-family: 'Playfair Display', serif;
    color: var(--warmth-accent);
    margin-bottom: 12px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 32px;
    color: #999;
    font-size: 0.85rem;
}

.footer a {
    color: var(--warmth-primary);
    text-decoration: none;
}

/* Mobile */
@media (max-width: 600px) {
    .container {
        padding: 24px 16px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .wizard-step {
        padding: 24px 18px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .btn-row {
        flex-direction: column-reverse;
    }

    .btn-row .btn-secondary,
    .btn-row .btn-primary {
        width: 100%;
    }
}

/* Success celebration */
@keyframes checkmark-circle {
    0% { stroke-dashoffset: 166; }
    100% { stroke-dashoffset: 0; }
}

@keyframes checkmark-check {
    0% { stroke-dashoffset: 48; }
    100% { stroke-dashoffset: 0; }
}

@keyframes scale-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    animation: scale-bounce 0.5s ease forwards;
}

.success-checkmark .circle {
    stroke: var(--warmth-accent);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    fill: none;
    animation: checkmark-circle 0.6s 0.3s ease forwards;
}

.success-checkmark .check {
    stroke: var(--warmth-accent);
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    animation: checkmark-check 0.3s 0.9s ease forwards;
}

.success-counter {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 8px;
}

.success-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-top: 28px;
}

.success-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--warmth-cream);
    border-radius: 12px;
    opacity: 0;
    animation: fade-up 0.4s ease forwards;
}

.success-step:nth-child(1) { animation-delay: 1.1s; }
.success-step:nth-child(2) { animation-delay: 1.3s; }
.success-step:nth-child(3) { animation-delay: 1.5s; }

.success-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--warmth-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.success-step-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--warmth-charcoal);
    margin-bottom: 4px;
}

.success-step-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Match Preview */
.match-searching {
    padding: 40px 0;
}

.match-search-icon {
    animation: pulse-search 1.5s ease infinite;
}

@keyframes pulse-search {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

.match-search-text {
    color: var(--warmth-accent);
    font-weight: 500;
    margin-top: 16px;
}

.match-preview-card {
    background: var(--warmth-cream);
    border-radius: 14px;
    padding: 20px;
    text-align: left;
    border: 2px solid rgba(42, 92, 78, 0.15);
}

.match-preview-card .match-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--warmth-charcoal);
    margin-bottom: 4px;
}

.match-preview-card .match-location {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.match-preview-card .match-bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

.match-preview-card .match-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.match-preview-card .match-tag {
    display: inline-block;
    padding: 3px 10px;
    background: white;
    border-radius: 50px;
    font-size: 0.75rem;
    border: 1px solid #e0d8d2;
}

.match-preview-card .match-tag.shared {
    background: rgba(42, 92, 78, 0.1);
    border-color: rgba(42, 92, 78, 0.3);
    color: var(--warmth-accent);
    font-weight: 500;
}

/* GDPR Consent Checkboxes */
.gdpr-consents {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
    padding: 16px 18px;
    background: rgba(44, 38, 37, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(201, 74, 42, 0.06);
}

.gdpr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    color: #9A9080;
    font-size: 0.78rem;
    line-height: 1.45;
    font-weight: 400;
    margin-bottom: 0;
}

.gdpr-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: #2A5C4E;
    cursor: pointer;
}

.gdpr-checkbox a {
    color: var(--warmth-primary);
    text-decoration: underline;
    text-decoration-color: rgba(201, 74, 42, 0.3);
}

.gdpr-checkbox a:hover {
    text-decoration-color: var(--warmth-primary);
}

.gdpr-note {
    font-size: 0.7rem;
    color: #b5aa9e;
    margin-top: 4px;
    line-height: 1.4;
}
