/* Extracted from views/progressive_registration.xml so the browser can cache
   it. Edit here, not in the template. */

                    /* ========== RESET & BASE ========== */
                    * {
                        margin: 0;
                        padding: 0;
                        box-sizing: border-box;
                    }
                    
                    :root {
                        --primary: #c41e3a;
                        --primary-dark: #8b1428;
                        --primary-light: #c41e3a;
                        --accent: #d32f4f;
                        --dark-bg: #fafbfc;
                        --dark-card: #ffffff;
                        --dark-input: #f1f3f5;
                        --text-light: #1a1a2e;
                        --text-muted: #5c5c70;
                        --border-color: #e0e2e8;
                        --glass-bg: rgba(255, 255, 255, 0.85);
                        --success: #1b7f3c;
                        --warning: #b07300;
                    }

                    body, html {
                        font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
                        background: var(--dark-bg);
                        color: var(--text-light);
                        min-height: 100vh;
                        font-size: 17px;
                        line-height: 1.55;
                    }

                    /* Hide default Odoo header/footer for clean look */
                    #wrapwrap > header, #wrapwrap > footer, .o_header, .o_footer,
.o_main_navbar {
                        display: none !important;
                    }

                    #wrapwrap {
                        background: linear-gradient(180deg, #fafbfc 0%, #f1f3f7 100%);
                        min-height: 100vh;
                    }

                    /* ========== MAIN CONTAINER ========== */
                    .nacopha-registration {
                        min-height: 100vh;
                        padding: 20px;
                        background:
                            radial-gradient(ellipse at top left, rgba(196, 30, 58, 0.06) 0%, transparent 50%),
                            radial-gradient(ellipse at bottom right, rgba(196, 30, 58, 0.04) 0%, transparent 50%),
                            linear-gradient(180deg, #fafbfc 0%, #f1f3f7 100%);
                    }
                    
                    .registration-wrapper {
                        max-width: 800px;
                        margin: 0 auto;
                    }
                    
                    /* ========== HEADER ========== */
                    .reg-header {
                        text-align: center;
                        padding: 30px 0 40px;
                    }
                    
                    .logo-container {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        width: 96px;
                        height: 96px;
                        background: #ffffff;
                        border-radius: 50%;
                        margin-bottom: 20px;
                        padding: 8px;
                        box-shadow:
                            0 10px 40px rgba(230, 57, 70, 0.4),
                            0 0 60px rgba(230, 57, 70, 0.2);
                        animation: pulse 2s ease-in-out infinite;
                    }

                    @keyframes pulse {
                        0%, 100% { box-shadow: 0 10px 40px rgba(230, 57, 70, 0.4), 0 0 60px rgba(230, 57, 70, 0.2); }
                        50% { box-shadow: 0 10px 50px rgba(230, 57, 70, 0.6), 0 0 80px rgba(230, 57, 70, 0.3); }
                    }

                    .logo-container img {
                        width: 100%;
                        height: 100%;
                        object-fit: contain;
                        border-radius: 50%;
                    }
                    
                    .brand-name {
                        font-size: 32px;
                        font-weight: 700;
                        color: var(--text-light);
                        letter-spacing: 3px;
                        margin-bottom: 5px;
                    }
                    
                    .brand-tagline {
                        font-size: 13px;
                        color: var(--text-muted);
                        letter-spacing: 1px;
                    }
                    
                    /* ========== PROGRESS STEPS ========== */
                    .progress-container {
                        margin-bottom: 40px;
                    }
                    
                    .steps-wrapper {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        gap: 0;
                        position: relative;
                    }
                    
                    .step-item {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        position: relative;
                        z-index: 2;
                        padding: 0 20px;
                    }
                    
                    .step-circle {
                        width: 45px;
                        height: 45px;
                        border-radius: 50%;
                        background: var(--dark-input);
                        border: 3px solid var(--border-color);
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        font-weight: 600;
                        font-size: 16px;
                        color: var(--text-muted);
                        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                        position: relative;
                    }
                    
                    .step-item.active .step-circle {
                        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
                        border-color: var(--primary);
                        color: white;
                        transform: scale(1.15);
                        box-shadow: 0 0 30px rgba(230, 57, 70, 0.5);
                    }
                    
                    .step-item.completed .step-circle {
                        background: linear-gradient(135deg, var(--success) 0%, #00a844 100%);
                        border-color: var(--success);
                        color: white;
                    }
                    
                    .step-item.completed .step-circle::after {
                        content: '✓';
                        font-size: 18px;
                    }
                    
                    .step-item.completed .step-number {
                        display: none;
                    }
                    
                    .step-label {
                        margin-top: 10px;
                        font-size: 11px;
                        color: var(--text-muted);
                        text-transform: uppercase;
                        letter-spacing: 1px;
                        font-weight: 500;
                        transition: all 0.3s ease;
                    }
                    
                    .step-item.active .step-label {
                        color: var(--primary-light);
                    }
                    
                    .step-item.completed .step-label {
                        color: var(--success);
                    }
                    
                    .step-connector {
                        width: 60px;
                        height: 3px;
                        background: var(--border-color);
                        position: relative;
                        top: -15px;
                    }
                    
                    .step-connector.completed {
                        background: linear-gradient(90deg, var(--success) 0%, var(--success) 100%);
                    }
                    
                    .step-connector.active {
                        background: linear-gradient(90deg, var(--success) 0%, var(--primary) 100%);
                    }
                    
                    /* ========== FORM CARD ========== */
                    .form-card {
                        background: var(--glass-bg);
                        backdrop-filter: blur(20px);
                        border-radius: 24px;
                        border: 1px solid var(--border-color);
                        overflow: hidden;
                        box-shadow: 
                            0 25px 50px rgba(0, 0, 0, 0.5),
                            inset 0 1px 0 #e0e2e8;
                    }
                    
                    .form-header {
                        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
                        padding: 30px 40px;
                        position: relative;
                        overflow: hidden;
                    }
                    
                    .form-header::before {
                        content: '';
                        position: absolute;
                        top: -50%;
                        right: -50%;
                        width: 100%;
                        height: 200%;
                        background: radial-gradient(circle, #e0e2e8 0%, transparent 70%);
                    }
                    
                    .form-header h2 {
                        font-size: 24px;
                        font-weight: 600;
                        margin-bottom: 5px;
                        position: relative;
                        display: flex;
                        align-items: center;
                        gap: 12px;
                    }
                    
                    .form-header h2 i {
                        font-size: 20px;
                        opacity: 0.9;
                    }
                    
                    .form-header p {
                        font-size: 14px;
                        opacity: 0.85;
                        position: relative;
                    }
                    
                    .form-body {
                        padding: 40px;
                    }
                    
                    /* ========== FORM STEPS ========== */
                    .form-step {
                        display: none;
                        animation: slideIn 0.5s ease;
                    }
                    
                    .form-step.active {
                        display: block;
                    }
                    
                    @keyframes slideIn {
                        from { 
                            opacity: 0; 
                            transform: translateX(30px); 
                        }
                        to { 
                            opacity: 1; 
                            transform: translateX(0); 
                        }
                    }
                    
                    /* ========== FORM INPUTS ========== */
                    .form-row {
                        display: grid;
                        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                        gap: 20px;
                        margin-bottom: 5px;
                    }
                    
                    .form-group {
                        margin-bottom: 24px;
                    }
                    
                    .form-group label {
                        display: block;
                        margin-bottom: 10px;
                        font-size: 14px;
                        font-weight: 500;
                        color: var(--text-light);
                    }
                    
                    .form-group label .required {
                        color: var(--primary-light);
                        margin-left: 3px;
                    }
                    
                    .form-group label .swahili {
                        /* Same size as the English half. Kiswahili is what
                           most members read first; it is not the footnote. */
                        color: var(--text-muted);
                        font-weight: 400;
                        margin-left: 5px;
                    }
                    
                    .form-control {
                        width: 100%;
                        padding: 16px 20px;
                        background: var(--dark-input);
                        border: 2px solid var(--border-color);
                        border-radius: 12px;
                        color: var(--text-light);
                        /* 16px: below it, iOS Safari zooms on focus. */
                        font-size: 16px;
                        transition: all 0.3s ease;
                        outline: none;
                    }
                    
                    .form-control::placeholder {
                        color: rgba(0, 0, 0, 0.4);
                        opacity: 1;
                    }
                    
                    .form-control:focus {
                        border-color: var(--primary);
                        background: rgba(230, 57, 70, 0.05);
                        box-shadow: 0 0 20px rgba(230, 57, 70, 0.15);
                    }
                    
                    select.form-control {
                        appearance: none;
                        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235c5c70' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
                        background-repeat: no-repeat;
                        background-position: right 16px center;
                        padding-right: 45px;
                        cursor: pointer;
                    }
                    
                    select.form-control option {
                        background: var(--dark-card);
                        color: var(--text-light);
                    }
                    
                    /* ========== OPTION CARDS (Gender, ART, etc.) ========== */
                    .option-cards {
                        display: grid;
                        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                        gap: 15px;
                    }
                    
                    .option-card {
                        background: var(--dark-input);
                        border: 2px solid var(--border-color);
                        border-radius: 16px;
                        padding: 20px 15px;
                        text-align: center;
                        cursor: pointer;
                        transition: all 0.3s ease;
                        position: relative;
                    }
                    
                    .option-card:hover {
                        border-color: rgba(230, 57, 70, 0.5);
                        transform: translateY(-3px);
                    }
                    
                    .option-card.selected {
                        border-color: var(--primary);
                        background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(230, 57, 70, 0.05) 100%);
                        box-shadow: 0 0 30px rgba(230, 57, 70, 0.2);
                    }
                    
                    .option-card input {
                        position: absolute;
                        opacity: 0;
                        pointer-events: none;
                    }
                    
                    .option-card .card-icon {
                        font-size: 32px;
                        margin-bottom: 10px;
                        display: block;
                    }
                    
                    .option-card .card-title {
                        font-weight: 600;
                        color: var(--text-light);
                        font-size: 14px;
                        margin-bottom: 3px;
                    }
                    
                    .option-card .card-subtitle {
                        font-size: 12px;
                        color: var(--text-muted);
                    }
                    
                    .option-card .check-indicator {
                        position: absolute;
                        top: 10px;
                        right: 10px;
                        width: 22px;
                        height: 22px;
                        border-radius: 50%;
                        background: var(--success);
                        display: none;
                        align-items: center;
                        justify-content: center;
                        font-size: 12px;
                        color: white;
                    }
                    
                    .option-card.selected .check-indicator {
                        display: flex;
                    }
                    
                    /* ========== MEMBERSHIP CARDS ========== */
                    .membership-cards {
                        display: grid;
                        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
                        gap: 20px;
                    }
                    
                    .membership-card {
                        background: var(--dark-input);
                        border: 2px solid var(--border-color);
                        border-radius: 20px;
                        padding: 25px;
                        cursor: pointer;
                        transition: all 0.3s ease;
                        position: relative;
                        overflow: hidden;
                    }
                    
                    .membership-card::before {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: 0;
                        right: 0;
                        height: 4px;
                        background: var(--border-color);
                        transition: all 0.3s ease;
                    }
                    
                    .membership-card:hover {
                        border-color: rgba(230, 57, 70, 0.5);
                        transform: translateY(-5px);
                    }
                    
                    .membership-card.selected {
                        border-color: var(--primary);
                        background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, transparent 100%);
                    }
                    
                    .membership-card.selected::before {
                        background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
                    }
                    
                    .membership-card input {
                        position: absolute;
                        opacity: 0;
                    }
                    
                    .membership-card .card-badge {
                        display: inline-block;
                        padding: 4px 12px;
                        background: #e0e2e8;
                        border-radius: 20px;
                        font-size: 11px;
                        text-transform: uppercase;
                        letter-spacing: 1px;
                        color: var(--text-muted);
                        margin-bottom: 12px;
                    }
                    
                    .membership-card .card-name {
                        font-size: 18px;
                        font-weight: 600;
                        color: var(--text-light);
                        margin-bottom: 15px;
                    }
                    
                    .membership-card .card-price {
                        font-size: 28px;
                        font-weight: 700;
                        color: var(--primary-light);
                        margin-bottom: 5px;
                    }
                    
                    .membership-card .card-price span {
                        font-size: 14px;
                        font-weight: 400;
                        color: var(--text-muted);
                    }
                    
                    .membership-card .card-desc {
                        font-size: 13px;
                        color: var(--text-muted);
                        line-height: 1.5;
                        margin-top: 15px;
                    }
                    
                    /* ========== PAYMENT METHODS ========== */
                    .payment-methods {
                        display: grid;
                        grid-template-columns: repeat(3, 1fr);
                        gap: 15px;
                    }
                    
                    @media (max-width: 600px) {
                        .payment-methods {
                            grid-template-columns: repeat(2, 1fr);
                        }
                    }
                    
                    .payment-method {
                        background: var(--dark-input);
                        border: 2px solid var(--border-color);
                        border-radius: 16px;
                        padding: 20px 15px;
                        text-align: center;
                        cursor: pointer;
                        transition: all 0.3s ease;
                    }
                    
                    .payment-method:hover {
                        border-color: rgba(230, 57, 70, 0.5);
                        transform: translateY(-3px);
                    }
                    
                    .payment-method.selected {
                        border-color: var(--primary);
                        background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, transparent 100%);
                    }
                    
                    .payment-method input {
                        display: none;
                    }
                    
                    .payment-method .method-icon {
                        font-size: 32px;
                        margin-bottom: 10px;
                        display: block;
                    }
                    
                    .payment-method .method-name {
                        font-weight: 600;
                        font-size: 13px;
                        color: var(--text-light);
                    }
                    
                    /* ========== INFO BOXES ========== */
                    .info-box {
                        background: linear-gradient(135deg, rgba(0, 200, 83, 0.1) 0%, rgba(0, 200, 83, 0.05) 100%);
                        border: 1px solid rgba(0, 200, 83, 0.3);
                        border-radius: 16px;
                        padding: 20px;
                        margin-bottom: 25px;
                        display: flex;
                        gap: 15px;
                        align-items: flex-start;
                    }
                    
                    .info-box.privacy {
                        background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(230, 57, 70, 0.05) 100%);
                        border-color: rgba(230, 57, 70, 0.3);
                    }
                    
                    .info-box .info-icon {
                        font-size: 24px;
                        color: var(--success);
                    }
                    
                    .info-box.privacy .info-icon {
                        color: var(--primary-light);
                    }
                    
                    .info-box .info-content {
                        flex: 1;
                    }
                    
                    .info-box .info-title {
                        font-weight: 600;
                        margin-bottom: 5px;
                        color: var(--text-light);
                    }
                    
                    .info-box .info-text {
                        font-size: 13px;
                        color: var(--text-muted);
                        line-height: 1.5;
                    }
                    
                    /* ========== SUMMARY SECTION ========== */
                    .summary-box {
                        background: var(--dark-input);
                        border-radius: 16px;
                        padding: 25px;
                        margin-bottom: 25px;
                        border: 1px solid var(--border-color);
                    }
                    
                    .summary-box h4 {
                        font-size: 16px;
                        color: var(--primary-light);
                        margin-bottom: 20px;
                        padding-bottom: 15px;
                        border-bottom: 1px solid var(--border-color);
                        display: flex;
                        align-items: center;
                        gap: 10px;
                    }
                    
                    .summary-row {
                        display: flex;
                        justify-content: space-between;
                        padding: 10px 0;
                        border-bottom: 1px dashed var(--border-color);
                    }
                    
                    .summary-row:last-child {
                        border-bottom: none;
                        padding-top: 15px;
                        margin-top: 10px;
                        border-top: 2px solid var(--border-color);
                    }
                    
                    .summary-row .label {
                        color: var(--text-muted);
                        font-size: 14px;
                    }
                    
                    .summary-row .value {
                        color: var(--text-light);
                        font-weight: 600;
                        font-size: 14px;
                    }
                    
                    .summary-row:last-child .value {
                        color: var(--primary-light);
                        font-size: 20px;
                    }
                    
                    /* ========== CONSENT SECTION ========== */
                    .consent-section {
                        background: var(--dark-input);
                        border-radius: 16px;
                        padding: 25px;
                        margin-top: 25px;
                        border: 1px solid var(--border-color);
                    }
                    
                    .consent-item {
                        display: flex;
                        align-items: flex-start;
                        gap: 12px;
                        margin-bottom: 15px;
                        cursor: pointer;
                    }
                    
                    .consent-item:last-child {
                        margin-bottom: 0;
                    }
                    
                    .consent-item input[type="checkbox"] {
                        width: 20px;
                        height: 20px;
                        margin-top: 2px;
                        accent-color: var(--primary);
                        cursor: pointer;
                    }
                    
                    .consent-item .consent-text {
                        font-size: 14px;
                        color: var(--text-muted);
                        line-height: 1.5;
                    }
                    
                    .consent-item .consent-text strong {
                        color: var(--text-light);
                    }
                    
                    /* ========== NAVIGATION BUTTONS ========== */
                    .btn-navigation {
                        display: flex;
                        justify-content: space-between;
                        margin-top: 35px;
                        padding-top: 30px;
                        border-top: 1px solid var(--border-color);
                    }
                    
                    .btn {
                        padding: 16px 32px;
                        border-radius: 12px;
                        font-size: 15px;
                        font-weight: 600;
                        cursor: pointer;
                        transition: all 0.3s ease;
                        border: none;
                        display: inline-flex;
                        align-items: center;
                        gap: 10px;
                    }
                    
                    .btn-back {
                        background: var(--dark-input);
                        color: var(--text-muted);
                        border: 2px solid var(--border-color);
                    }
                    
                    .btn-back:hover {
                        border-color: var(--text-muted);
                        color: var(--text-light);
                    }
                    
                    .btn-next {
                        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
                        color: white;
                        box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
                    }
                    
                    .btn-next:hover {
                        transform: translateY(-2px);
                        box-shadow: 0 15px 40px rgba(230, 57, 70, 0.4);
                    }
                    
                    .btn-submit {
                        background: linear-gradient(135deg, var(--success) 0%, #00a844 100%);
                        color: white;
                        box-shadow: 0 10px 30px rgba(0, 200, 83, 0.3);
                    }
                    
                    .btn-submit:hover {
                        transform: translateY(-2px);
                        box-shadow: 0 15px 40px rgba(0, 200, 83, 0.4);
                    }
                    
                    /* ========== FOOTER ========== */
                    .reg-footer {
                        text-align: center;
                        padding: 30px;
                        color: var(--text-muted);
                        font-size: 13px;
                    }
                    
                    .reg-footer a {
                        color: var(--primary-light);
                        text-decoration: none;
                    }
                    
                    /* ========== VALIDATION FEEDBACK ========== */
                    .form-control.is-invalid,
                    .form-input.is-invalid,
                    select.is-invalid {
                        border-color: #c41e3a !important;
                        box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12) !important;
                    }

                    .step-error {
                        display: none;
                        margin: 0 0 18px;
                        padding: 12px 16px;
                        border-radius: 8px;
                        background: #fdecef;
                        border: 1px solid rgba(196, 30, 58, 0.25);
                        color: #8b1428;
                        font-size: 14px;
                        font-weight: 500;
                    }

                    /* ========== RESPONSIVE ========== */
                    /* ========== SMALL PHONES ==========
                       Five 38px circles plus four 30px connectors is 310px
                       of step indicator, which does not fit a 360px screen
                       once the card padding is counted. Everything here is
                       about making the flow usable on the handsets members
                       actually register on. */
                    @media (max-width: 480px) {
                        .form-body,
                        .form-header {
                            padding: 18px 16px;
                        }

                        .step-circle {
                            width: 30px;
                            height: 30px;
                            font-size: 12px;
                        }

                        .step-connector {
                            width: 14px;
                        }

                        .step-label {
                            display: none;
                        }

                        .payment-method {
                            padding: 14px 8px;
                        }

                        .payment-method .method-icon {
                            font-size: 26px;
                            margin-bottom: 6px;
                        }

                        .info-box,
                        .summary-card {
                            padding: 16px;
                        }

                        .btn {
                            padding: 14px 20px;
                            font-size: 15px;
                        }
                    }

                    @media (max-width: 768px) {
                        .form-body {
                            padding: 25px;
                        }
                        
                        .form-header {
                            padding: 25px;
                        }
                        
                        .step-connector {
                            width: 30px;
                        }
                        
                        .step-label {
                            font-size: 11px;
                        }
                        
                        .step-circle {
                            width: 38px;
                            height: 38px;
                            font-size: 14px;
                        }
                        
                        .btn-navigation {
                            flex-direction: column;
                            gap: 15px;
                        }
                        
                        .btn {
                            width: 100%;
                            justify-content: center;
                        }
                        
                        .membership-cards {
                            grid-template-columns: 1fr;
                        }
                    }
                

/* One site: never leave a visitor with no way back to it. */
.site-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    opacity: .72;
}
.site-back:hover { opacity: 1; text-decoration: underline; }
