/* Member registration form — hero sizing from pages.css */

.registration-header {
    background-image:
        linear-gradient(180deg, rgba(10, 18, 36, 0.32) 0%, rgba(10, 18, 36, 0.78) 100%),
        url('../totem.jpeg');
    background-size: cover;
    background-position: center;
}

.registration-container {
    width: var(--site-content, min(1520px, calc(100% - 16px)));
    margin: 0 auto;
    padding: 0 0 48px;
}

.registration-container .alert-success,
.registration-container .alert-danger {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.registration-container .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.registration-container .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-section {
    background: #fff;
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 22px;
    box-shadow: 0 2px 12px rgba(20, 35, 63, 0.06);
    border: 1px solid #e4ebf5;
    border-left: 5px solid var(--clan-blue);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.form-section:hover {
    border-color: #c5d3ea;
    box-shadow: 0 6px 20px rgba(20, 35, 63, 0.1);
}

.form-section .section-title {
    color: var(--clan-navy);
    font-size: 1.2rem;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--clan-gold);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
}

.form-group {
    margin-bottom: 4px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--clan-navy);
    font-size: 0.92rem;
}

.form-group label.required::after {
    content: " *";
    color: #c62828;
}

.form-control {
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    border: 2px solid #e0e6f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--clan-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5298' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1em;
    padding-right: 36px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--clan-blue);
}

.form-check-label {
    font-weight: 500;
    color: #334155;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 6px;
}

.status-alive {
    background: #d4edda;
    color: #155724;
}

.status-deceased {
    background: #f8d7da;
    color: #721c24;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clan-blue), var(--clan-navy));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: #eef2f8;
    color: #334155;
}

@media (max-width: 720px) {
    .registration-container {
        width: calc(100% - 12px);
    }

    .form-section {
        padding: 18px 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}
