/* ============================================
   LIGHTHOUSE BONDS COLOUR SYSTEM
   ============================================ */
   
:root {
    /* Primary Brand Colors */
    --lh-gold: #C9A227;
    --lh-gold-dark: #A8881F;
    --lh-gold-light: #DDB84C;
    --lh-black: #0A0A0A;
    --lh-white: #FAFAFA;
    
    /* Corporate Greys */
    --lh-grey-border: #E3E6EA;
    --lh-grey-text: #4B5563;
    --lh-grey-muted: #9CA3AF;
    --lh-grey-light-bg: #F5F6F8;
    
    /* Functional Colors */
    --lh-success: #2E7D32;
    --lh-error: #C62828;
    --lh-warning: #ED6C02;
    
    /* Shadows */
    --lh-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --lh-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --lh-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --lh-shadow-gold: 0 0 0 2px rgba(201,162,39,0.2);
}

/* ============================================
   BASE STYLES
   ============================================ */

.lbhlq-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--lh-white);
    color: var(--lh-black);
}

/* ============================================
   HEADER - Heritage Black + Lighthouse Gold
   ============================================ */

.lbhlq-header {
    text-align: center;
    padding: 32px 24px;
    background: var(--lh-black);
    color: var(--lh-white);
    border-radius: 16px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.lbhlq-header::before {
    content: "⚓";
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 48px;
    opacity: 0.08;
    font-family: monospace;
}

.lbhlq-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.lbhlq-header h1 span {
    color: var(--lh-gold);
}

.lbhlq-header .tagline {
    margin: 8px 0 0;
    opacity: 0.7;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* ============================================
   CARDS - Minimal White + Gold Border Accent
   ============================================ */

.lbhlq-card {
    background: var(--lh-white);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--lh-grey-border);
    box-shadow: var(--lh-shadow-sm);
    transition: box-shadow 0.2s ease;
}

.lbhlq-card:hover {
    box-shadow: var(--lh-shadow-md);
}

.lbhlq-card h3 {
    margin: 0 0 20px 0;
    color: var(--lh-black);
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lh-gold);
    display: inline-block;
}

/* ============================================
   FORM FIELDS
   ============================================ */

.lbhlq-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lbhlq-field {
    flex: 1;
    min-width: 160px;
}

.lbhlq-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--lh-grey-text);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
}

.lbhlq-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--lh-grey-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--lh-black);
    background: var(--lh-white);
    transition: all 0.2s ease;
    font-family: inherit;
}

.lbhlq-input:focus {
    outline: none;
    border-color: var(--lh-gold);
    box-shadow: var(--lh-shadow-gold);
}

.lbhlq-input::placeholder {
    color: var(--lh-grey-muted);
}

/* ============================================
   BUTTONS - Lighthouse Gold Primary
   ============================================ */

.lbhlq-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.lbhlq-btn-primary {
    background: var(--lh-gold);
    color: var(--lh-black);
    box-shadow: var(--lh-shadow-sm);
}

.lbhlq-btn-primary:hover {
    background: var(--lh-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--lh-shadow-md);
}

.lbhlq-btn-secondary {
    background: var(--lh-white);
    color: var(--lh-grey-text);
    border: 1.5px solid var(--lh-grey-border);
}

.lbhlq-btn-secondary:hover {
    border-color: var(--lh-gold);
    color: var(--lh-black);
    background: var(--lh-grey-light-bg);
}

/* ============================================
   PAYWALL GATE - Premium Lock Screen
   ============================================ */

.lbhlq-paywall {
    text-align: center;
    padding: 80px 40px;
    background: var(--lh-grey-light-bg);
    border-radius: 24px;
    border: 1px solid var(--lh-grey-border);
}

.lbhlq-paywall-content h2 {
    color: var(--lh-black);
    font-size: 28px;
    margin-bottom: 16px;
}

.lbhlq-paywall-content h2::before {
    content: "🔒";
    margin-right: 12px;
    font-size: 32px;
}

.lbhlq-paywall-content p {
    color: var(--lh-grey-text);
    font-size: 16px;
    margin-bottom: 24px;
}

.lbhlq-login-btn {
    display: inline-block;
    background: var(--lh-black);
    color: var(--lh-white);
    padding: 14px 36px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lbhlq-login-btn:hover {
    background: var(--lh-gold);
    color: var(--lh-black);
    transform: translateY(-2px);
}

/* ============================================
   RESULTS SECTION - Heritage Black Card
   ============================================ */

.lbhlq-results-card {
    background: var(--lh-white);
    border-radius: 20px;
    padding: 28px;
    margin-top: 32px;
    border: 1px solid var(--lh-grey-border);
    box-shadow: var(--lh-shadow-md);
}

.lbhlq-badge {
    background: var(--lh-black);
    color: var(--lh-white);
    padding: 28px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 28px;
    position: relative;
}

.lbhlq-badge::after {
    content: "⚓";
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 32px;
    opacity: 0.1;
}

.lbhlq-badge h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: var(--lh-gold);
}

.lbhlq-badge h2 small {
    font-size: 16px;
    color: var(--lh-grey-muted);
}

.lbhlq-badge p {
    margin: 8px 0 0;
    opacity: 0.7;
    font-size: 14px;
}

/* ============================================
   TABLES - Clean Corporate Style
   ============================================ */

.lbhlq-result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.lbhlq-result-table th {
    background: var(--lh-black);
    color: var(--lh-white);
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.lbhlq-result-table td {
    border: 1px solid var(--lh-grey-border);
    padding: 12px;
    text-align: right;
    color: var(--lh-grey-text);
}

.lbhlq-result-table td:first-child,
.lbhlq-result-table th:first-child {
    text-align: left;
    font-weight: 500;
}

.lbhlq-result-table tr:hover td {
    background: var(--lh-grey-light-bg);
}

/* Gold highlight for important numbers */
.lbhlq-gold-number {
    color: var(--lh-gold);
    font-weight: 700;
    font-size: 18px;
}

/* ============================================
   SECTIONS (Deposit, Extra Payments, Legal)
   ============================================ */

.lbhlq-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--lh-black);
    margin: 32px 0 20px 0;
    padding-left: 14px;
    border-left: 4px solid var(--lh-gold);
}

.lbhlq-legal-summary {
    background: var(--lh-grey-light-bg);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--lh-grey-border);
}

.lbhlq-legal-summary p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--lh-grey-border);
    padding: 8px 0;
}

.lbhlq-legal-summary p strong {
    color: var(--lh-black);
}

/* ============================================
   CREDIT LINE (MultiNET attribution)
   ============================================ */

.lbhlq-credit {
    text-align: center;
    font-size: 12px;
    color: var(--lh-grey-muted);
    padding: 24px;
    border-top: 1px solid var(--lh-grey-border);
    margin-top: 48px;
}

.lbhlq-credit strong {
    color: var(--lh-gold);
    font-weight: 600;
}

/* ============================================
   LOADING SPINNER - Gold Accent
   ============================================ */

.lbhlq-spinner {
    border: 3px solid var(--lh-grey-border);
    border-top: 3px solid var(--lh-gold);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .lbhlq-container {
        padding: 16px;
    }
    
    .lbhlq-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .lbhlq-btn {
        width: 100%;
        margin: 8px 0;
    }
    
    .lbhlq-result-table {
        font-size: 12px;
        overflow-x: auto;
        display: block;
    }
    
    .lbhlq-badge h2 {
        font-size: 24px;
    }
    
    .lbhlq-header h1 {
        font-size: 24px;
    }
}

/* ============================================
   PRINT STYLES (for PDF export)
   ============================================ */

@media print {
    .lbhlq-container {
        padding: 0;
        background: white;
    }
    
    .lbhlq-btn,
    .lbhlq-actions,
    .lbhlq-header::before,
    .lbhlq-badge::after {
        display: none;
    }
    
    .lbhlq-card,
    .lbhlq-results-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .lbhlq-badge {
        background: #0A0A0A;
        print-color-adjust: exact;
    }
    
    .lbhlq-credit {
        position: fixed;
        bottom: 0;
        width: 100%;
    }
}
/* Certificate Result Styles */
.lbhlq-results-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    margin-top: 32px;
    border: 1px solid #E3E6EA;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lbhlq-badge {
    background: #0A0A0A;
    padding: 28px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 28px;
}

.lbhlq-badge h2 {
    color: #C9A227;
    font-size: 36px;
    margin: 0;
}

.lbhlq-section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 20px 0;
    padding-left: 14px;
    border-left: 4px solid #C9A227;
}

.lbhlq-result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.lbhlq-result-table th {
    background: #0A0A0A;
    color: white;
    padding: 12px;
    text-align: center;
}

.lbhlq-result-table td {
    border: 1px solid #E3E6EA;
    padding: 10px;
    text-align: right;
}

.lbhlq-result-table td:first-child,
.lbhlq-result-table th:first-child {
    text-align: left;
}

.lbhlq-legal-summary {
    background: #F5F6F8;
    padding: 16px;
    border-radius: 12px;
}

.lbhlq-legal-summary h4 {
    margin: 0 0 12px 0;
    color: #0A0A0A;
}

.lbhlq-legal-summary p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.lbhlq-error {
    background: #FEE2E2;
    color: #991B1B;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}
/* Stable Applicant 2 state, the joint toggle remains independently clickable. */
.lbhlq-applicant2-column.lbhlq-applicant2-disabled {
    opacity: .58;
}
.lbhlq-applicant2-column.lbhlq-applicant2-disabled select,
.lbhlq-applicant2-column.lbhlq-applicant2-disabled input {
    cursor: not-allowed;
}
.lbhlq-applicant2-column select.lbhlq-input {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}
