/* ==========================================================================
   Wellbeing Healthathon 2026 — Single-page Registration Form
   Reuses hp-notice, hp-checkbox, hp-check-group, hp-payment-info from
   health-parliament.css. This file styles the healthathon-specific layout.
   ========================================================================== */

/* --- Form card --- */
.hp-form-wrapper .wpcf7-form {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
}

/* --- Sections --- */
.ha-section {
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.ha-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--space-md);
    padding-bottom: 0;
}

.ha-section__title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.ha-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    flex-shrink: 0;
}

.ha-section__opt {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-text-muted);
}

.ha-section__desc {
    color: var(--color-text-light);
    font-size: var(--fs-sm);
    margin-top: calc(-1 * var(--space-sm));
    margin-bottom: var(--space-lg);
}

/* --- Race category cards --- */
.ha-race-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.ha-race-card {
    position: relative;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: var(--fw-regular);
}

.ha-race-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ha-race-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: var(--space-lg) var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), background var(--transition-fast),
                box-shadow var(--transition-fast);
}

.ha-race-card__inner strong {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    color: var(--color-primary);
}

.ha-race-card__inner span {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

.ha-race-card:hover .ha-race-card__inner {
    border-color: var(--color-primary-light);
    background: rgba(31,78,121,0.02);
}

.ha-race-card input:checked + .ha-race-card__inner {
    border-color: var(--color-secondary);
    background: rgba(46,139,87,0.05);
    box-shadow: 0 0 0 3px rgba(46,139,87,0.15);
}

.ha-race-card input:checked + .ha-race-card__inner strong {
    color: var(--color-secondary);
}

.ha-race-card input:focus-visible + .ha-race-card__inner {
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.3);
}

/* --- Health declaration box --- */
.ha-declaration {
    background: linear-gradient(135deg, rgba(46,139,87,0.06) 0%, rgba(31,78,121,0.06) 100%);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-lg);
}

.ha-declaration p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: var(--lh-relaxed);
}

/* --- Footer message --- */
.ha-footer-msg {
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(46,139,87,0.06) 0%, rgba(31,78,121,0.06) 100%);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--color-border-light);
}

.ha-footer-msg p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

.ha-footer-msg p:first-child {
    font-size: var(--fs-md);
    color: var(--color-primary);
}

/* --- Submit --- */
.ha-submit {
    padding-top: var(--space-md);
}

.ha-submit .wpcf7-submit {
    width: 100%;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .hp-form-wrapper .wpcf7-form {
        padding: var(--space-lg);
    }

    .ha-race-options {
        grid-template-columns: 1fr;
    }
}
