/* ==========================================
   HBH Candidature 2026 — Design Tokens
   ========================================== */
:root {
    --hbh-orange: #EA6D49;
    --hbh-orange-hover: #D4593B;
    --hbh-cafe: #563C3A;
    --hbh-beige: #FDF8F0;
    --hbh-beige-border: #E8E0D5;
    --hbh-white: #FFFFFF;
    --hbh-error: #DC3545;
    --hbh-success: #28A745;
    --hbh-radius-input: 8px;
    --hbh-radius-card: 16px;
    --hbh-radius-cta: 12px;
    --hbh-shadow: 0 8px 32px rgba(86, 60, 58, 0.1);
}

/* ==========================================
   Hero Section
   ========================================== */
.hbh-hero {
    background: linear-gradient(135deg, var(--hbh-cafe) 0%, var(--hbh-orange) 100%);
    padding: 60px 20px 50px;
    text-align: center;
    color: var(--hbh-white);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hbh-hero-logo {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
}

.hbh-hero h1 {
    font-family: 'Saira Extra Condensed', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hbh-hero p {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.hbh-hero-city-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hbh-hero-city-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--hbh-white);
    padding: 8px 24px;
    border-radius: 30px;
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 200ms ease;
}

.hbh-hero-city-btn:hover,
.hbh-hero-city-btn.active {
    background: var(--hbh-white);
    color: var(--hbh-cafe);
    border-color: var(--hbh-white);
}

/* ==========================================
   Form Card Container
   ========================================== */
.hbh-form-wrapper {
    max-width: 800px;
    margin: -30px auto 60px;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.hbh-form-card {
    background: var(--hbh-white);
    border-radius: var(--hbh-radius-card);
    box-shadow: var(--hbh-shadow);
    padding: 40px;
    overflow: hidden;
}

/* ==========================================
   Progress Bar
   ========================================== */
.hbh-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.hbh-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hbh-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 300ms ease;
}

/* Future step */
.hbh-progress-step .hbh-progress-circle {
    background: var(--hbh-beige-border);
    color: var(--hbh-cafe);
}

/* Active step */
.hbh-progress-step.active .hbh-progress-circle {
    background: var(--hbh-cafe);
    color: var(--hbh-white);
    box-shadow: 0 0 0 4px rgba(234, 109, 73, 0.2);
}

/* Completed step */
.hbh-progress-step.completed .hbh-progress-circle {
    background: var(--hbh-orange);
    color: var(--hbh-white);
}

.hbh-progress-label {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 0.75rem;
    color: #999;
    margin-top: 6px;
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
}

.hbh-progress-step.active .hbh-progress-label {
    color: var(--hbh-cafe);
    font-weight: 700;
}

.hbh-progress-step.completed .hbh-progress-label {
    color: var(--hbh-cafe);
}

.hbh-progress-line {
    flex: 1;
    height: 3px;
    background: var(--hbh-beige-border);
    margin: 0 -2px;
    position: relative;
    top: -10px;
    transition: background 300ms ease;
}

.hbh-progress-line.completed {
    background: var(--hbh-orange);
}

/* Mobile progress */
.hbh-progress-mobile {
    display: none;
    text-align: center;
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    color: var(--hbh-cafe);
    font-size: 1rem;
    margin-bottom: 24px;
}

.hbh-progress-mobile-bar {
    height: 4px;
    background: var(--hbh-beige-border);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.hbh-progress-mobile-fill {
    height: 100%;
    background: var(--hbh-orange);
    border-radius: 2px;
    transition: width 300ms ease;
}

/* ==========================================
   Form Steps
   ========================================== */
.hbh-step {
    display: none;
}

.hbh-step.active {
    display: block;
    animation: hbhFadeSlide 300ms ease-out;
}

@keyframes hbhFadeSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hbh-step.active {
        animation: none;
    }
}

.hbh-step-title {
    font-family: 'Saira Extra Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--hbh-cafe);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hbh-beige-border);
}

/* ==========================================
   Info Box (presentation text)
   ========================================== */
.hbh-info-box {
    background: var(--hbh-beige);
    border-left: 4px solid var(--hbh-orange);
    padding: 20px 24px;
    border-radius: 0 var(--hbh-radius-input) var(--hbh-radius-input) 0;
    margin-bottom: 24px;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--hbh-cafe);
}

.hbh-info-box p {
    margin-bottom: 10px;
}

.hbh-info-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   Form Elements
   ========================================== */
.hbh-form-group {
    margin-bottom: 20px;
}

.hbh-label {
    display: block;
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 600;
    color: var(--hbh-cafe);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.hbh-label .required {
    color: var(--hbh-error);
    margin-left: 2px;
}

.hbh-input,
.hbh-select,
.hbh-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--hbh-beige-border);
    border-radius: var(--hbh-radius-input);
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 1rem;
    color: var(--hbh-cafe);
    background: var(--hbh-white);
    transition: border-color 200ms ease, box-shadow 200ms ease;
    outline: none;
}

.hbh-input:focus,
.hbh-select:focus,
.hbh-textarea:focus {
    border-color: var(--hbh-orange);
    box-shadow: 0 0 0 3px rgba(234, 109, 73, 0.1);
}

.hbh-input.is-invalid,
.hbh-select.is-invalid,
.hbh-textarea.is-invalid {
    border-color: var(--hbh-error);
    animation: hbhShake 300ms ease;
}

@keyframes hbhShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.hbh-invalid-feedback {
    display: block;
    color: var(--hbh-error);
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 0.85rem;
    margin-top: 4px;
}

.hbh-invalid-feedback i {
    margin-right: 4px;
}

.hbh-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Two-column grid */
.hbh-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ==========================================
   Radio Buttons (styled as large buttons)
   ========================================== */
.hbh-radio-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.hbh-radio-btn {
    flex: 1;
    position: relative;
}

.hbh-radio-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hbh-radio-btn label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: 2px solid var(--hbh-beige-border);
    border-radius: var(--hbh-radius-input);
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--hbh-cafe);
    cursor: pointer;
    transition: all 200ms ease;
    min-height: 48px;
}

.hbh-radio-btn label:hover {
    border-color: var(--hbh-orange);
    background: rgba(234, 109, 73, 0.05);
}

.hbh-radio-btn input[type="radio"]:checked + label {
    background: var(--hbh-orange);
    border-color: var(--hbh-orange);
    color: var(--hbh-white);
}

.hbh-radio-btn input[type="radio"]:focus-visible + label {
    outline: 3px solid var(--hbh-orange);
    outline-offset: 2px;
}

/* ==========================================
   Chips / Tags (sociability step)
   ========================================== */
.hbh-chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.hbh-chip {
    position: relative;
}

.hbh-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hbh-chip label {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--hbh-beige);
    border: 1.5px solid var(--hbh-beige-border);
    border-radius: 30px;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 0.9rem;
    color: var(--hbh-cafe);
    cursor: pointer;
    transition: all 200ms ease;
    min-height: 44px;
    user-select: none;
}

.hbh-chip label:hover {
    border-color: var(--hbh-orange);
    background: rgba(234, 109, 73, 0.08);
}

.hbh-chip input[type="checkbox"]:checked + label {
    background: var(--hbh-orange);
    border-color: var(--hbh-orange);
    color: var(--hbh-white);
}

.hbh-chip input[type="checkbox"]:focus-visible + label {
    outline: 3px solid var(--hbh-orange);
    outline-offset: 2px;
}

/* ==========================================
   Navigation Buttons
   ========================================== */
.hbh-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--hbh-beige-border);
}

.hbh-btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--hbh-cafe);
    border-radius: var(--hbh-radius-cta);
    background: transparent;
    color: var(--hbh-cafe);
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 200ms ease;
    min-height: 48px;
}

.hbh-btn-prev:hover {
    background: var(--hbh-cafe);
    color: var(--hbh-white);
}

.hbh-btn-next,
.hbh-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    border: none;
    border-radius: var(--hbh-radius-cta);
    background: var(--hbh-orange);
    color: var(--hbh-white);
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 200ms ease;
    min-height: 48px;
}

.hbh-btn-next:hover,
.hbh-btn-submit:hover {
    background: var(--hbh-orange-hover);
}

.hbh-btn-submit {
    padding: 16px 48px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hbh-btn-next:disabled,
.hbh-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hbh-btn-submit-not-interested {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--hbh-radius-cta);
    background: var(--hbh-cafe);
    color: var(--hbh-white);
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 200ms ease;
    min-height: 48px;
}

.hbh-btn-submit-not-interested:hover {
    opacity: 0.85;
}

/* ==========================================
   Summary Box (step 5)
   ========================================== */
.hbh-summary-box {
    background: var(--hbh-beige);
    border-radius: var(--hbh-radius-input);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.hbh-summary-box h4 {
    font-family: 'Saira Extra Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--hbh-cafe);
    margin-bottom: 12px;
}

.hbh-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--hbh-beige-border);
}

.hbh-summary-row:last-child {
    border-bottom: none;
}

.hbh-summary-label {
    color: #888;
    font-weight: 600;
}

.hbh-summary-value {
    color: var(--hbh-cafe);
    font-weight: 700;
}

/* ==========================================
   Success Message
   ========================================== */
.hbh-success-message {
    text-align: center;
    padding: 60px 20px;
    animation: hbhFadeIn 500ms ease;
}

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

.hbh-success-icon {
    font-size: 4rem;
    color: var(--hbh-success);
    margin-bottom: 20px;
}

.hbh-success-message h2 {
    font-family: 'Saira Extra Condensed', sans-serif;
    font-weight: 700;
    color: var(--hbh-cafe);
    margin-bottom: 12px;
}

.hbh-success-message p {
    font-family: 'Open Sans Condensed', sans-serif;
    color: var(--hbh-cafe);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================
   Consent switch override
   ========================================== */
.hbh-form-card .form-check-input:checked {
    background-color: var(--hbh-orange) !important;
    border-color: var(--hbh-orange) !important;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
    .hbh-hero h1 {
        font-size: 1.6rem;
    }

    .hbh-hero p {
        font-size: 0.95rem;
    }

    .hbh-form-card {
        padding: 20px;
    }

    .hbh-grid-2 {
        grid-template-columns: 1fr;
    }

    .hbh-progress {
        display: none;
    }

    .hbh-progress-mobile {
        display: block;
    }

    .hbh-step-title {
        font-size: 1.25rem;
    }

    .hbh-nav-buttons {
        gap: 12px;
    }

    .hbh-btn-prev,
    .hbh-btn-next {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hbh-btn-submit {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .hbh-radio-group {
        flex-direction: column;
    }

    .hbh-summary-row {
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .hbh-hero {
        padding: 50px 16px 40px;
    }

    .hbh-hero-city-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }

    .hbh-form-wrapper {
        margin-top: -20px;
    }
}
