/* Shared styles for the public registration flow (event/p1, event/p2) */

:root {
    --reg-brand: #0A3D62;
    --reg-brand-dark: #072c47;
    --reg-bg: #E4E4E4;
}

body {
    background-color: var(--reg-bg);
    -webkit-text-size-adjust: 100%;
}

/* Card wrapper */
.reg-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 20px auto;
}

/* Step navigation */
.form-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.form-steps a,
.form-steps a:hover {
    text-decoration: none;
}

.form-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--reg-brand);
    color: var(--reg-brand);
    background: #fff;
}

.form-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    background: var(--reg-brand);
    color: #fff;
}

.form-step.active {
    background-color: var(--reg-brand);
    color: #fff;
}

.form-step.active .step-num {
    background: #fff;
    color: var(--reg-brand);
}

.step-connector {
    flex: 0 1 60px;
    min-width: 16px;
    height: 3px;
    background-color: var(--reg-brand);
}

/* Section title with underline */
.section-title {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    padding-bottom: 12px;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--reg-brand);
}

/* Notice page content */
.reg-notice h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--reg-brand);
    margin-bottom: 0.75rem;
}

.reg-notice ul,
.reg-notice ol {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.reg-notice li ul {
    margin: 0.4rem 0 0;
}

.reg-notice li {
    margin-bottom: 0.4rem;
    line-height: 1.55;
}

.reg-notice .email {
    word-break: break-all;
}

.reg-important {
    background: #f1f6fa;
    border-left: 4px solid var(--reg-brand);
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 0;
}

.login-link:hover {
    text-decoration: none;
    color: red;
}

/* Form */
.reg-card label {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.reg-card .form-control:focus {
    border-color: var(--reg-brand);
    box-shadow: 0 0 0 0.2rem rgba(10, 61, 98, 0.2);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--reg-brand);
}

/* Actions */
.reg-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.reg-actions.end {
    justify-content: flex-end;
}

.continue-btn,
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 28px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.continue-btn {
    background-color: var(--reg-brand);
    color: #fff;
    border: none;
}

.continue-btn:hover,
.continue-btn:focus {
    background-color: var(--reg-brand-dark);
    color: #fff;
    text-decoration: none;
}

.back-btn {
    background: #fff;
    color: #555;
    border: 1px solid #ccc;
}

.back-btn:hover,
.back-btn:focus {
    background: #f4f4f4;
    color: #333;
    text-decoration: none;
}

/* Tablet */
@media (max-width: 767.98px) {
    .reg-card {
        padding: 1.5rem;
        margin: 12px;
    }
}

/* Phone */
@media (max-width: 575.98px) {
    .reg-card {
        margin: 0;
        padding: 20px 16px 28px;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .form-step {
        padding: 6px 10px;
        font-size: 13px;
        gap: 6px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 1.25rem;
    }

    .reg-notice h4 {
        font-size: 1.1rem;
    }

    /* Stack buttons full-width, primary action on top */
    .reg-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .continue-btn,
    .back-btn {
        width: 100%;
    }
}

/* Very narrow phones: hide step labels' numbers to save room */
@media (max-width: 359.98px) {
    .form-step .step-num {
        display: none;
    }
}
