:root {
    --reg-primary: #af2d1a;
    --reg-primary-dark: #8a2214;
    --reg-primary-light: #fbecea;
    --reg-text: #2b2b2b;
    --reg-muted: #6c757d;
    --reg-border: #e5e7eb;
    --reg-bg: #f4f5f7;
    --reg-radius: 12px;
    --reg-shadow: 0 2px 10px rgba(20, 20, 20, 0.06);
    --reg-shadow-hover: 0 6px 18px rgba(20, 20, 20, 0.1);
}

#content {
    margin-right: 0;
}

/* Bootstrap 4 (loaded on this page for the form) sets a global `a { color }`
   rule that otherwise wins the cascade over the site's own `a { color:inherit }`
   and repaints links inside the shared #banner (e.g. the Log In button). */
#banner a {
    color: inherit;
}

.reg-page {
    background: var(--reg-bg);
    padding: 40px 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--reg-text);
}

.reg-hero {
    max-width: 640px;
    margin: 0 auto 32px;
}
.reg-hero h1 {
    font-weight: 700;
    font-size: 32px;
    color: var(--reg-primary);
    margin-bottom: 10px;
}
.reg-hero p {
    color: var(--reg-muted);
    font-size: 15px;
    margin-bottom: 0;
}

.reg-card {
    background: #fff;
    border: 1px solid black;
    border-radius: var(--reg-radius);
    box-shadow: var(--reg-shadow);
    overflow: hidden;
}
.reg-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 16px;
    background: #fff;
    border-bottom: 1px solid var(--reg-border);
}
.reg-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.reg-card-header-flex > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
.reg-card-body {
    padding: 24px;
}

.reg-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--reg-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.reg-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--reg-text);
    margin-bottom: 6px;
}
.reg-required::after {
    content: " *";
    color: var(--reg-primary);
}

.reg-input {
    border: 1px solid var(--reg-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    height: auto;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.reg-input:focus {
    border-color: var(--reg-primary);
    box-shadow: 0 0 0 3px var(--reg-primary-light);
}
textarea.reg-input {
    resize: vertical;
}

.reg-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 576px) {
    .reg-type-grid {
        grid-template-columns: 1fr;
    }
}
.reg-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid var(--reg-border);
    border-radius: var(--reg-radius);
    padding: 24px 16px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    margin-bottom: 0;
}
.reg-type-card:hover {
    box-shadow: var(--reg-shadow-hover);
}
.reg-type-card.selected {
    border-color: var(--reg-primary);
    background: var(--reg-primary-light);
}
.reg-type-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.reg-type-icon {
    font-size: 30px;
    color: var(--reg-primary);
    margin-bottom: 10px;
}
.reg-type-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}
.reg-type-desc {
    font-size: 13px;
    color: var(--reg-muted);
}

.reg-subcard {
    border: 1px dashed var(--reg-border);
    border-radius: var(--reg-radius);
    background: #fafafa;
    padding: 18px;
    margin-top: 18px;
}
.reg-subcard-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--reg-primary);
}
.reg-remove-btn {
    border: 1px solid var(--reg-border);
    background: #fff;
    color: var(--reg-muted);
    font-size: 12px;
    border-radius: 20px;
    padding: 4px 12px;
}
.reg-remove-btn:hover {
    border-color: var(--reg-primary);
    color: var(--reg-primary);
}

.reg-btn-primary {
    background: linear-gradient(180deg, var(--reg-primary) 0%, var(--reg-primary-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(175, 45, 26, 0.3);
    transition: transform .12s ease, box-shadow .12s ease;
}
.reg-btn-primary:hover, .reg-btn-primary:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(175, 45, 26, 0.38);
}
.reg-btn-primary:disabled {
    opacity: .65;
    transform: none;
}
.reg-btn-submit {
    padding: 12px 48px;
    font-size: 16px;
}
.reg-btn-outline {
    background: #fff;
    border: 1px solid var(--reg-primary);
    color: var(--reg-primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    padding: 6px 16px;
}
.reg-btn-outline:hover {
    background: var(--reg-primary);
    color: #fff;
}

.reg-alert {
    border-radius: 10px;
    font-size: 14px;
}

#Legal.Terms {
    max-height: 320px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 13px;
    font-family: inherit;
    background: none;
    border: none;
    margin: 0;
}

.reg-success {
    background: #fff;
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius);
    box-shadow: var(--reg-shadow);
    padding: 48px 24px;
    max-width: 560px;
    margin: 20px auto;
}
.reg-success h2 {
    font-weight: 700;
    color: var(--reg-primary);
}
.reg-success-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: var(--reg-primary-light);
    color: var(--reg-primary);
    font-size: 26px;
    margin: 0 auto 16px;
}

#loading {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    display: none;
    opacity: 0.85;
    background-color: #fff;
    z-index: 99;
    text-align: center;
}
#loading-image {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 100;
}

.error {
    color: var(--reg-primary);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}
