/**
 * RNF Member Portal Styles
 *
 * Premium styling for medlemsregistrering og portal
 */

/* ==========================================================================
   Variabler
   ========================================================================== */
:root {
    --portal-primary: #1B5E3C;
    --portal-primary-light: #2E7D52;
    --portal-primary-dark: #0D3D25;
    --portal-accent: #C9A227;
    --portal-accent-light: #E3C252;
    --portal-success: #10B981;
    --portal-error: #EF4444;
    --portal-warning: #F59E0B;
    --portal-text: #2D2B28;
    --portal-text-light: #5C5852;
    --portal-text-muted: #8A857D;
    --portal-border: #E5E2DB;
    --portal-bg: #FDFBF7;
    --portal-bg-muted: #F5F3EF;
    --portal-radius: 12px;
    --portal-radius-sm: 8px;
    --portal-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --portal-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
.rnf-registration,
.rnf-login,
.rnf-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.rnf-login {
    max-width: 440px;
}

/* ==========================================================================
   Messages
   ========================================================================== */
.rnf-success-message,
.rnf-error-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--portal-radius);
    margin-bottom: 2rem;
}

.rnf-success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.rnf-success-message svg {
    width: 24px;
    height: 24px;
    color: var(--portal-success);
    flex-shrink: 0;
}

.rnf-success-message h2 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--portal-text);
}

.rnf-success-message p {
    margin: 0;
    color: var(--portal-text-light);
}

.rnf-success-message .btn {
    margin-top: 1rem;
}

.rnf-success-message--small {
    padding: 1rem 1.25rem;
    align-items: center;
}

.rnf-success-message--small svg {
    width: 20px;
    height: 20px;
}

.rnf-success-message--small p {
    margin: 0;
}

.rnf-error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.rnf-error-message svg {
    width: 24px;
    height: 24px;
    color: var(--portal-error);
    flex-shrink: 0;
}

.rnf-error-message p {
    margin: 0;
    color: var(--portal-text);
}

/* ==========================================================================
   Registration Intro
   ========================================================================== */
.rnf-reg-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.rnf-reg-intro h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--portal-text);
    margin: 0 0 0.75rem;
}

.rnf-reg-intro p {
    color: var(--portal-text-light);
    font-size: 1.05rem;
    margin: 0;
}

/* ==========================================================================
   Steps
   ========================================================================== */
.rnf-step {
    background: white;
    border-radius: var(--portal-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--portal-shadow);
    border: 1px solid var(--portal-border);
}

.rnf-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rnf-step-number {
    width: 36px;
    height: 36px;
    background: var(--portal-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.rnf-step-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--portal-text);
    margin: 0;
}

/* ==========================================================================
   Membership Type Cards
   ========================================================================== */
.rnf-membership-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .rnf-membership-types {
        grid-template-columns: 1fr;
    }
}

.rnf-type-card {
    cursor: pointer;
    display: block;
}

.rnf-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rnf-type-card-content {
    padding: 1.5rem;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius);
    text-align: center;
    transition: all 0.2s ease;
    background: white;
}

.rnf-type-card:hover .rnf-type-card-content {
    border-color: var(--portal-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--portal-shadow);
}

.rnf-type-card.selected .rnf-type-card-content,
.rnf-type-card input:checked + .rnf-type-card-content {
    border-color: var(--portal-primary);
    background: linear-gradient(135deg, rgba(27, 94, 60, 0.05) 0%, rgba(201, 162, 39, 0.05) 100%);
}

.rnf-type-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--portal-bg-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rnf-type-icon svg {
    width: 28px;
    height: 28px;
    color: var(--portal-text-muted);
    transition: color 0.2s ease;
}

.rnf-type-card:hover .rnf-type-icon,
.rnf-type-card.selected .rnf-type-icon {
    background: var(--portal-primary);
}

.rnf-type-card:hover .rnf-type-icon svg,
.rnf-type-card.selected .rnf-type-icon svg {
    color: white;
}

.rnf-type-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--portal-text);
    margin-bottom: 0.5rem;
}

.rnf-type-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--portal-text-muted);
    line-height: 1.4;
}

/* Back Button */
.rnf-back-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    margin-right: 0.5rem;
    cursor: pointer;
    color: var(--portal-text-muted);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.rnf-back-btn:hover {
    background: var(--portal-bg-muted);
    color: var(--portal-primary);
}

.rnf-back-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Step completed state - kun visuell markering, ikke deaktivering */
.rnf-step--completed .rnf-step-number {
    background: var(--portal-success);
}

.rnf-step--completed .rnf-step-number::after {
    content: '✓';
    position: absolute;
}

/* ==========================================================================
   Brreg Search
   ========================================================================== */
.rnf-brreg-search {
    position: relative;
}

.rnf-search-field {
    position: relative;
}

.rnf-search-field input {
    width: 100%;
    padding: 1rem 3rem 1rem 3.5rem;
    font-size: 1rem;
    border: 2px solid var(--portal-border);
    border-radius: 50px;
    background: white;
    transition: all 0.2s ease;
}

.rnf-search-field input:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 3px rgba(27, 94, 60, 0.1);
}

.rnf-search-icon,
.rnf-search-spinner {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--portal-text-muted);
}

.rnf-search-spinner {
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.rnf-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow-lg);
    border: 1px solid var(--portal-border);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
}

.rnf-search-result {
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--portal-border);
}

.rnf-search-result:last-child {
    border-bottom: none;
}

.rnf-search-result:hover {
    background: var(--portal-bg-muted);
}

.rnf-search-result-name {
    font-weight: 600;
    color: var(--portal-text);
    margin-bottom: 0.25rem;
}

.rnf-search-result-info {
    font-size: 0.875rem;
    color: var(--portal-text-muted);
}

.rnf-search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--portal-text-muted);
}

.rnf-help-text {
    font-size: 0.875rem;
    color: var(--portal-text-muted);
    margin-top: 1rem;
    text-align: center;
}

/* ==========================================================================
   Selected Company
   ========================================================================== */
.rnf-selected-company {
    background: linear-gradient(135deg, rgba(27, 94, 60, 0.05) 0%, rgba(201, 162, 39, 0.05) 100%);
    border: 1px solid rgba(27, 94, 60, 0.2);
    border-radius: var(--portal-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.rnf-company-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--portal-primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.rnf-company-badge svg {
    width: 16px;
    height: 16px;
}

.rnf-selected-company h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--portal-text);
    margin: 0 0 0.25rem;
}

.rnf-selected-company p {
    color: var(--portal-text-light);
    margin: 0;
}

.rnf-change-company {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--portal-primary);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
}

.rnf-change-company:hover {
    color: var(--portal-accent-light);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.rnf-form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--portal-border);
}

.rnf-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rnf-form-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--portal-text);
    margin: 0 0 0.5rem;
}

.rnf-section-desc {
    font-size: 0.9rem;
    color: var(--portal-text-muted);
    margin: 0 0 1.25rem;
}

.rnf-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .rnf-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.rnf-form-group {
    margin-bottom: 1rem;
}

.rnf-form-group:last-child {
    margin-bottom: 0;
}

.rnf-form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--portal-text);
    margin-bottom: 0.5rem;
}

.rnf-form-group label .required {
    color: var(--portal-error);
}

.rnf-form-group input[type="text"],
.rnf-form-group input[type="email"],
.rnf-form-group input[type="tel"],
.rnf-form-group input[type="url"],
.rnf-form-group input[type="password"],
.rnf-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    background: white;
    transition: all 0.2s ease;
}

.rnf-form-group input:focus,
.rnf-form-group textarea:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 3px rgba(27, 94, 60, 0.1);
}

.rnf-form-group input.is-invalid,
.rnf-form-group textarea.is-invalid {
    border-color: var(--portal-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.rnf-form-group input.is-invalid:focus,
.rnf-form-group textarea.is-invalid:focus {
    border-color: var(--portal-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.rnf-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.rnf-field-help {
    font-size: 0.8rem;
    color: var(--portal-text-muted);
    margin-top: 0.5rem;
}

/* ==========================================================================
   Logo Upload
   ========================================================================== */
.rnf-logo-upload {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rnf-logo-preview {
    width: 100px;
    height: 100px;
    background: var(--portal-bg-muted);
    border-radius: var(--portal-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.rnf-logo-preview svg {
    width: 40px;
    height: 40px;
    color: var(--portal-text-muted);
}

.rnf-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rnf-logo-info {
    flex: 1;
}

/* ==========================================================================
   Radio Cards
   ========================================================================== */
.rnf-radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rnf-radio-card {
    cursor: pointer;
}

.rnf-radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rnf-radio-card-content {
    padding: 1.25rem;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius);
    text-align: center;
    transition: all 0.2s ease;
}

.rnf-radio-card input:checked + .rnf-radio-card-content {
    border-color: var(--portal-primary);
    background: rgba(27, 94, 60, 0.05);
}

.rnf-radio-card-content svg {
    width: 32px;
    height: 32px;
    color: var(--portal-text-muted);
    margin-bottom: 0.75rem;
}

.rnf-radio-card input:checked + .rnf-radio-card-content svg {
    color: var(--portal-primary);
}

.rnf-radio-title {
    display: block;
    font-weight: 600;
    color: var(--portal-text);
    margin-bottom: 0.25rem;
}

.rnf-radio-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--portal-text-muted);
}

/* ==========================================================================
   Checkbox
   ========================================================================== */
.rnf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--portal-text-light);
}

.rnf-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rnf-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--portal-border);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.rnf-checkbox input:checked + .rnf-checkmark {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
}

.rnf-checkbox.has-error .rnf-checkmark {
    border-color: var(--portal-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.rnf-checkbox input:checked + .rnf-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rnf-checkbox a {
    color: var(--portal-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Form Actions
   ========================================================================== */
.rnf-form-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--portal-border);
}

.rnf-form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rnf-form-actions .btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Login Link
   ========================================================================== */
.rnf-login-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--portal-text-light);
}

.rnf-login-link a {
    color: var(--portal-primary);
    font-weight: 500;
}

/* ==========================================================================
   Login Box
   ========================================================================== */
.rnf-login-box {
    background: white;
    border-radius: var(--portal-radius);
    padding: 2.5rem;
    box-shadow: var(--portal-shadow);
    border: 1px solid var(--portal-border);
}

.rnf-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rnf-login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--portal-text);
    margin: 0 0 0.5rem;
}

.rnf-login-header p {
    color: var(--portal-text-muted);
    margin: 0;
}

.rnf-forgot-password {
    font-size: 0.8rem;
    color: var(--portal-primary);
    text-decoration: none;
}

.rnf-forgot-password:hover {
    text-decoration: underline;
}

.rnf-login-form .rnf-form-group {
    margin-bottom: 1.25rem;
}

.rnf-login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--portal-border);
}

.rnf-login-footer p {
    margin: 0;
    color: var(--portal-text-light);
}

.rnf-login-footer a {
    color: var(--portal-primary);
    font-weight: 500;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.rnf-dashboard {
    max-width: 1000px;
}

.rnf-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--portal-border);
}

.rnf-dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--portal-text);
    margin: 0;
}

.rnf-dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rnf-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rnf-status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #B45309;
}

.rnf-status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

/* Dashboard Navigation */
.rnf-dashboard-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.rnf-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid var(--portal-border);
    border-radius: 50px;
    color: var(--portal-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.rnf-nav-item svg {
    width: 18px;
    height: 18px;
}

.rnf-nav-item:hover {
    border-color: var(--portal-primary);
    color: var(--portal-primary);
}

.rnf-nav-item.active {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
    color: white;
}

/* Dashboard Cards */
.rnf-card {
    background: white;
    border-radius: var(--portal-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--portal-shadow);
    border: 1px solid var(--portal-border);
}

.rnf-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--portal-text);
    margin: 0 0 1rem;
}

.rnf-card-subtitle {
    font-size: 0.875rem;
    color: var(--portal-text-muted);
    margin: -0.5rem 0 1.25rem;
}

.rnf-card--muted {
    background: var(--portal-bg-muted);
}

/* Cards Grid */
.rnf-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rnf-cards-grid .rnf-card {
    margin-bottom: 0;
}

.rnf-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(27, 94, 60, 0.1) 0%, rgba(201, 162, 39, 0.1) 100%);
    border-radius: var(--portal-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.rnf-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--portal-primary);
}

.rnf-card p {
    margin: 0 0 0.5rem;
    color: var(--portal-text);
}

.rnf-card p:last-of-type {
    margin-bottom: 0;
}

.rnf-text-muted {
    color: var(--portal-text-muted) !important;
    font-size: 0.9rem;
}

.rnf-card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--portal-primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.rnf-card-link:hover {
    text-decoration: underline;
}

/* Welcome Card */
.rnf-welcome-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
    color: white;
    margin-bottom: 2rem;
}

.rnf-welcome-content h2 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: white;
}

.rnf-welcome-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.rnf-welcome-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--portal-radius);
    padding: 0.5rem;
    flex-shrink: 0;
}

.rnf-welcome-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Employees Card - Special layout */
.rnf-employees-card {
    background: linear-gradient(135deg, var(--portal-bg) 0%, var(--portal-bg-muted) 100%);
    border: 1px solid var(--portal-border);
}

.rnf-employees-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.rnf-employees-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.rnf-employees-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rnf-employees-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.rnf-employees-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--portal-text);
}

.rnf-employees-text p {
    font-size: 0.85rem;
    color: var(--portal-text-muted);
    margin: 0;
    line-height: 1.4;
}

.rnf-employees-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.rnf-employees-input input {
    width: 80px;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--portal-border);
    border-radius: var(--portal-radius-sm);
    background: white;
    color: var(--portal-primary);
    transition: all 0.2s ease;
}

.rnf-employees-input input:focus {
    outline: none;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 3px rgba(27, 94, 60, 0.1);
}

.rnf-employees-label {
    font-size: 0.9rem;
    color: var(--portal-text-muted);
    font-weight: 500;
}

@media (max-width: 600px) {
    .rnf-employees-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .rnf-employees-input {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Readonly Fields */
.rnf-readonly-fields {
    display: grid;
    gap: 0.75rem;
}

.rnf-readonly-field {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--portal-border);
}

.rnf-readonly-field:last-child {
    border-bottom: none;
}

.rnf-readonly-field .rnf-label {
    color: var(--portal-text-muted);
    font-size: 0.875rem;
}

.rnf-readonly-field .rnf-value {
    color: var(--portal-text);
    font-weight: 500;
}

/* Empty State */
.rnf-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.rnf-empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--portal-text-muted);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.rnf-empty-state h3 {
    font-size: 1.25rem;
    color: var(--portal-text);
    margin: 0 0 0.5rem;
}

.rnf-empty-state p {
    color: var(--portal-text-muted);
    margin: 0;
}

/* ==========================================================================
   Button Variants
   ========================================================================== */
.btn--full {
    width: 100%;
    justify-content: center;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet (768px) */
@media (max-width: 768px) {
    .rnf-registration,
    .rnf-dashboard {
        padding: 1.5rem 1rem 3rem;
    }

    .rnf-membership-types {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rnf-type-card {
        padding: 1.25rem;
    }

    .rnf-cards-grid {
        grid-template-columns: 1fr;
    }

    .rnf-dashboard-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .rnf-nav-item {
        flex: 1 1 auto;
        min-width: 100px;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Small Tablet / Large Phone (640px) */
@media (max-width: 640px) {
    .rnf-step {
        padding: 1.5rem;
    }

    .rnf-login-box {
        padding: 1.5rem;
    }

    .rnf-radio-cards {
        grid-template-columns: 1fr;
    }

    .rnf-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .rnf-dashboard-header .btn {
        width: 100%;
        text-align: center;
    }

    .rnf-welcome-card {
        flex-direction: column;
        text-align: center;
    }

    .rnf-welcome-logo {
        margin-top: 1rem;
    }

    /* Form rows stack */
    .rnf-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Logo upload stack */
    .rnf-logo-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .rnf-logo-preview {
        width: 100%;
        max-width: 150px;
    }

    /* Search results smaller */
    .rnf-search-results {
        max-height: 250px;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .rnf-registration,
    .rnf-login,
    .rnf-dashboard {
        padding: 1rem 0.75rem 2rem;
    }

    .rnf-step {
        padding: 1.25rem;
    }

    .rnf-card {
        padding: 1.25rem;
    }

    /* Ensure touch targets */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    .btn--sm {
        min-height: 44px;
        padding: 0.625rem 1rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="url"],
    select,
    textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Dashboard nav full width */
    .rnf-dashboard-nav {
        flex-direction: column;
    }

    .rnf-nav-item {
        width: 100%;
    }

    /* Type cards smaller */
    .rnf-type-icon {
        width: 48px;
        height: 48px;
    }

    .rnf-type-icon svg {
        width: 24px;
        height: 24px;
    }

    .rnf-type-card h3 {
        font-size: 1rem;
    }

    /* Readonly fields stack */
    .rnf-readonly-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* Success message */
    .rnf-success-message {
        flex-direction: column;
        text-align: center;
    }

    .rnf-success-message svg {
        margin: 0 auto;
    }
}
