* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #da1e34;
    --primary-light: #e8485a;
    --accent: #f77f00;
    --background: #faf9f6;
    --surface: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

/* ── Header ── */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

.header h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Form Card ── */
.form-card {
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    padding: clamp(2rem, 5vw, 3rem);
}

/* ── Progress Bar ── */
.progress-wrapper {
    margin-bottom: 3.5rem;
    position: relative;
}

.progress-bar {
    height: 4px;
    background: #fde8eb;
    border-radius: 2px;
    overflow: visible;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    position: relative;
}

.progress-badge {
    position: absolute;
    top: 10px;
    left: 0%;
    transform: translateX(-50%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1.5px solid #f4b8c0;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

/* ── Questions Animation ── */
.questions-wrapper {
    position: relative;
}

.question-group {
    margin-bottom: 2.5rem;
    display: none;
    position: relative;
    opacity: 0;
}

.question-group.show {
    display: block;
}

.question-group.fade-up {
    opacity: 1;
    animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.question-group.fade-down {
    opacity: 1;
    animation: fadeDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-50px); }
    to   { opacity: 1; transform: translateY(0); }
}

#contactSection {
    opacity: 0;
}

#contactSection.fade-up {
    opacity: 1;
    animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#contactSection.fade-down {
    opacity: 1;
    animation: fadeDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Fixed Back Button ── */
.back-btn-fixed {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.back-btn-fixed:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.back-btn-fixed.visible {
    display: flex;
}

/* ── Back Button (inline) ── */
.back-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.back-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* ── Next Button ── */
.next-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Archivo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(26, 77, 46, 0.3);
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.4);
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Multi Next Button ── */
.multi-next-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Archivo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(26, 77, 46, 0.3);
}

.multi-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.4);
}

/* ── Question Labels ── */
.question-label {
    display: block;
    font-family: 'Archivo', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.question-number {
    display: inline-block;
    color: var(--accent);
    margin-right: 0.5rem;
}

.required {
    color: var(--accent);
    margin-left: 0.25rem;
}

.multiple-choice-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

/* ── Options Grid ── */
.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.option-card {
    position: relative;
    flex: 0 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.option-card.option-visible {
    animation: optionFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes optionFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.875rem 1.25rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.option-card label::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: white;
    transition: all 0.25s ease;
}

.option-card input[type="radio"]:checked + label,
.option-card input[type="checkbox"]:checked + label {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(26, 77, 46, 0.3);
}

.option-card input[type="radio"]:checked + label::before,
.option-card input[type="checkbox"]:checked + label::before {
    border-color: white;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23da1e34' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 11px;
    background-repeat: no-repeat;
    background-position: center;
}

.option-card label:hover {
    background: #fde8eb;
    border-color: var(--primary-light);
}

/* ── Postcode Lookup ── */
.postcode-lookup-wrapper {
    margin-top: 1rem;
}

.postcode-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.postcode-input {
    flex: 1;
    max-width: 300px;
}

.postcode-find-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Archivo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(218, 30, 52, 0.3);
    white-space: nowrap;
}

.postcode-find-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 30, 52, 0.4);
}

.selected-address {
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f0fdf4;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    transition: all 0.2s ease;
    background: var(--background);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

textarea.input-field {
    min-height: 120px;
    resize: vertical;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* ── Submit Button ── */
.submit-btn {
    width: 100%;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Archivo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(26, 77, 46, 0.3);
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ── Privacy Notice ── */
.privacy-notice {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(26, 77, 46, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Section Divider ── */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 3rem 0 2.5rem;
}

.contact-section-header {
    font-family: 'Archivo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ── Success Message ── */
.success-message {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeIn 0.6s ease-out;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Keyframe Animations ── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    body { padding: 1rem 0.75rem; }
    .form-card { padding: 1.5rem; }
    .options-grid { gap: 0.5rem; }
    .option-card label { font-size: 0.875rem; padding: 0.75rem 1rem; }
    .contact-grid { grid-template-columns: 1fr; }
}