.reg-page-wrapper {
    background-color: #f3f4f6;
    padding-bottom: 3rem;
}

/* ===== Benefits Section ===== */
.reg-benefits-section {
    padding: 48px 0 40px;
}

.reg-benefits-container {
    max-width: 56rem;
    margin: 0 auto;
}

.reg-benefits-header {
    text-align: center;
    margin-bottom: 32px;
}

.reg-benefits-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.reg-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.reg-benefit-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 14px;
}

.reg-benefit-icon {
    width: 24px;
    height: 24px;
    color: #1e40af;
    flex-shrink: 0;
    margin-top: 3px;
}

.reg-benefit-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
}

.reg-benefit-content p {
    font-size: 0.8rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* ===== Form Section ===== */
.reg-form-section {
    padding: 0;
}

.reg-form-container {
    max-width: 48rem;
    margin: 0 auto;
}

.reg-form-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.reg-form-content {
    padding: 24px;
}

@media (min-width: 640px) {
    .reg-form-content {
        padding: 32px;
    }
}

.reg-form-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 18px;
    margin-bottom: 24px;
    text-align: center;
}

.reg-form-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 4px 0;
}

.reg-form-header p {
    font-size: 0.88rem;
    color: #4b5563;
    margin: 0;
}

.reg-form-group-section {
    margin-bottom: 22px;
}

.reg-form-group-title {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 7px;
    margin-bottom: 14px;
}

.reg-form-group-title h3 {
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.reg-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.reg-form-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.reg-form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reg-form-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.reg-form-container input.form-control {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #f9fafb;
    font-size: 0.875rem;
    color: #111827;
    transition: border-color 0.2s, background-color 0.2s;
}

.reg-form-container input.form-control:focus {
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.reg-form-field .text-danger {
    font-size: 0.75rem;
    min-height: 1rem;
}

/* Terms */
.reg-terms-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 6px;
}

.reg-terms-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #1e40af;
    cursor: pointer;
}

.reg-terms-label {
    font-size: 0.78rem;
    color: #374151;
    line-height: 1.5;
    cursor: pointer;
}

.reg-terms-label a {
    color: #dc2626;
    text-decoration: underline;
    font-weight: 600;
}

.reg-terms-label a:hover {
    color: #991b1b;
}

.reg-login-link {
    text-align: center;
}

.reg-login-link p {
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
}

.reg-login-link a {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.reg-login-link a:hover {
    color: #1d4ed8;
}

/* ===== Phone Picker ===== */

.phone-picker-wrapper {
    display: flex;
    align-items: stretch;
}

.phone-picker {
    position: relative;
    flex-shrink: 0;
}

.phone-picker-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    height: 100%;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 6px 0 0 6px;
    background: #f9fafb;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, background-color 0.2s;
    font-family: inherit;
}

.phone-picker-trigger:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.phone-picker-trigger:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    position: relative;
    z-index: 2;
}

.phone-picker-wrapper .phone-picker-input {
    border-radius: 0 6px 6px 0 !important;
    border-left: none !important;
    flex: 1;
    min-width: 0;
}

/* Flag container — scales 32×32 sprite tile to 20×14 via CSS transform */
.pp-flag {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.pp-flag .f32 {
    position: absolute;
    top: 0;
    left: 0;
    line-height: 0;
}

.pp-flag .f32 .flag {
    display: block;
    width: 32px;
    height: 32px;
    padding-left: 0;
    transform: scale(0.625);
    transform-origin: top left;
}

.phone-picker-dial {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    min-width: 24px;
    text-align: left;
}

.phone-picker-caret {
    width: 12px;
    height: 12px;
    color: #6b7280;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.phone-picker-trigger[aria-expanded="true"] .phone-picker-caret {
    transform: rotate(180deg);
}

/* Dropdown panel */
.phone-picker-dropdown {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    z-index: 500;
    width: 260px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.phone-picker-search {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.82rem;
    color: #374151;
    background: #f9fafb;
    outline: none;
    box-sizing: border-box;
}

.phone-picker-list {
    list-style: none;
    margin: 0;
    padding: 3px 0;
    max-height: 210px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.phone-picker-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    cursor: pointer;
    user-select: none;
}

.phone-picker-list li:hover,
.phone-picker-list li:focus {
    background: #eff6ff;
    outline: none;
}

.phone-picker-list .f32 {
    flex-shrink: 0;
    line-height: 0;
}

.phone-picker-list .f32 .flag {
    display: block;
    width: 32px;
    height: 22px;
    padding-left: 0;
}

.pcl-name {
    flex: 1;
    font-size: 0.8rem;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pcl-dial {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .reg-benefits-header h2 {
        font-size: 1.25rem;
    }

    .reg-benefits-grid {
        grid-template-columns: 1fr;
    }

    .reg-form-grid.two-col {
        grid-template-columns: 1fr;
    }
}
