/* =============================================
   LIGHTHOUSE PROPERTY FINANCE SUITE - MAIN STYLES
   Professional Calculator Styling
   Version: 2.0
   Author: Lighthouse Bonds (Pty) Ltd
   ============================================= */

/* -------------------------------
   MAIN CALCULATOR CONTAINER
   Navy background with reduced width
-------------------------------- */

.lhpf-wrapper {
    max-width: 680px;
    margin: 0 auto 2rem;
    font-family: inherit;
    background: linear-gradient(135deg, #001a2f 0%, #002b45 100%);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.3);
    border: 1px solid rgba(249, 178, 51, 0.2);
}

/* For full-width pages, center the calculator */
.lhpf-wrapper:first-child {
    margin-left: auto;
    margin-right: auto;
}

/* Calculator title - White bold */
.lhpf-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 28px;
    border-left: 4px solid #f9b233;
    padding-left: 20px;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* -------------------------------
   FORM LAYOUT
-------------------------------- */

.lhpf-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lhpf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* -------------------------------
   INPUT FIELD LABELS - White bold
-------------------------------- */

.lhpf-field label {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 12px;
    opacity: 0.9;
}

.lhpf-field label span {
    color: #f9b233;
    margin-left: 4px;
}

/* -------------------------------
   INPUT FIELDS - Clean white background
-------------------------------- */

.lhpf-wrapper input[type="text"],
.lhpf-wrapper input[type="number"],
.lhpf-wrapper input[type="email"],
.lhpf-wrapper input[type="tel"],
.lhpf-wrapper select,
.lhpf-field input:not([type="checkbox"]),
.lhpf-field select {
    background: #ffffff;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 16px;
    width: 100%;
    transition: all 0.2s ease;
    box-sizing: border-box;
    color: #001a2f;
    font-weight: 500;
}

.lhpf-wrapper input:focus,
.lhpf-field input:focus,
.lhpf-field select:focus {
    border-color: #f9b233;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 178, 51, 0.2);
    background: #ffffff;
}

/* Read-only fields (interest rate display) */
.lhpf-wrapper input[readonly],
.lhpf-field input[readonly] {
    background: rgba(255,255,255,0.15);
    font-weight: 700;
    color: #f9b233;
    border-color: rgba(249, 178, 51, 0.3);
    cursor: not-allowed;
}

/* Number input spinners - hide for cleaner look */
.lhpf-wrapper input[type="number"]::-webkit-inner-spin-button,
.lhpf-wrapper input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.5;
}

/* -------------------------------
   BUTTONS - Gold rounded edges
-------------------------------- */

.lhpf-wrapper button,
.lhpf-field button,
.lhpf-lead-actions button,
.lhpf-wrapper input[type="submit"],
.lhpf-wrapper .button {
    background: linear-gradient(135deg, #f9b233 0%, #e5a020 100%);
    color: #001a2f;
    font-weight: 800;
    font-size: 14px;
    padding: 14px 28px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
    width: auto;
    min-width: 160px;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.lhpf-wrapper button:hover,
.lhpf-field button:hover {
    background: linear-gradient(135deg, #e5a020 0%, #d49018 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 178, 51, 0.3);
}

.lhpf-wrapper button:active {
    transform: translateY(0px);
}

/* WhatsApp button specific */
.lhpf-lead-actions button:first-child {
    background: linear-gradient(135deg, #25D366 0%, #1da15a 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.lhpf-lead-actions button:first-child:hover {
    background: linear-gradient(135deg, #1da15a 0%, #188a4c 100%);
}

/* Secondary/outline buttons */
.lhpf-wrapper .button-secondary {
    background: transparent;
    border: 2px solid #f9b233;
    color: #f9b233;
    box-shadow: none;
}

.lhpf-wrapper .button-secondary:hover {
    background: rgba(249, 178, 51, 0.1);
    color: #f9b233;
    transform: translateY(-2px);
}

/* -------------------------------
   RESULTS & OUTPUTS - Gold accent
-------------------------------- */

.lhpf-result {
    background: rgba(255,255,255,0.08);
    border-left: 4px solid #f9b233;
    padding: 20px 24px;
    border-radius: 20px;
    margin-top: 28px;
    backdrop-filter: blur(4px);
}

.lhpf-result h4 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lhpf-result p,
.lhpf-result span,
.lhpf-result .result-value {
    font-size: 28px;
    font-weight: 800;
    color: #f9b233;
    margin: 0;
    line-height: 1.2;
}

/* -------------------------------
   LEAD CAPTURE SECTION
-------------------------------- */

.lhpf-lead-wrapper {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 28px;
    margin-top: 30px;
    border: 1px solid rgba(249, 178, 51, 0.2);
    backdrop-filter: blur(4px);
}

.lhpf-lead-wrapper h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.lhpf-lead-wrapper label {
    color: rgba(255,255,255,0.8) !important;
}

.lhpf-lead-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Lead form inputs */
.lhpf-lead-wrapper input[type="text"],
.lhpf-lead-wrapper input[type="email"],
.lhpf-lead-wrapper input[type="tel"] {
    background: rgba(255,255,255,0.9);
    border: 1px solid transparent;
}

.lhpf-lead-wrapper input:focus {
    border-color: #f9b233;
}

/* -------------------------------
   CHECKBOX STYLES
-------------------------------- */

.lhpf-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #f9b233;
    border-radius: 4px;
}

.lhpf-field label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    text-transform: none;
    font-size: 13px;
    opacity: 0.85;
}

/* -------------------------------
   TABLES (Bank Profiles) - Dark theme
-------------------------------- */

.lhpf-bank-table,
.lhpf-master-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.lhpf-bank-table th,
.lhpf-master-table th {
    background: rgba(0,0,0,0.3);
    color: #f9b233;
    padding: 14px 16px;
    font-weight: 700;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lhpf-bank-table td,
.lhpf-master-table td {
    background: transparent;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.lhpf-bank-table tr:last-child td,
.lhpf-master-table tr:last-child td {
    border-bottom: none;
}

.lhpf-bank-table tr:hover td,
.lhpf-master-table tr:hover td {
    background: rgba(255,255,255,0.05);
}

/* -------------------------------
   GRID LAYOUT FOR MULTI-COLUMN FORMS
-------------------------------- */

.lhpf-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lhpf-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* -------------------------------
   RESPONSIVE DESIGN
-------------------------------- */

@media (max-width: 768px) {
    .lhpf-wrapper {
        max-width: 100%;
        padding: 24px;
        margin: 0 16px 2rem;
        border-radius: 24px;
    }
    
    .lhpf-title {
        font-size: 22px;
        padding-left: 14px;
    }
    
    .lhpf-lead-actions {
        flex-direction: column;
    }
    
    .lhpf-lead-actions button,
    .lhpf-wrapper button,
    .lhpf-wrapper .button {
        width: 100%;
        text-align: center;
        white-space: normal;
        min-width: auto;
    }
    
    .lhpf-bank-table,
    .lhpf-master-table {
        display: block;
        overflow-x: auto;
        font-size: 13px;
    }
    
    .lhpf-grid-2,
    .lhpf-grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .lhpf-result p,
    .lhpf-result span {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .lhpf-wrapper {
        padding: 20px;
        margin: 0 12px 2rem;
    }
    
    .lhpf-title {
        font-size: 20px;
    }
    
    .lhpf-wrapper input[type="text"],
    .lhpf-wrapper input[type="number"],
    .lhpf-field input:not([type="checkbox"]) {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* -------------------------------
   UTILITY CLASSES
-------------------------------- */

.lhpf-text-center {
    text-align: center;
}

.lhpf-mt-20 {
    margin-top: 20px;
}

.lhpf-mb-20 {
    margin-bottom: 20px;
}

.lhpf-error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    border-left: 3px solid #ff6b6b;
}

.lhpf-success {
    color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 3px solid #51cf66;
}

/* -------------------------------
   DISCLAIMER TEXT
-------------------------------- */

.lhpf-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

/* -------------------------------
   ADDITIONAL ENHANCEMENTS
-------------------------------- */

/* Gold rounded corners on hover for inputs */
.lhpf-wrapper input:hover,
.lhpf-field input:hover {
    border-color: rgba(249, 178, 51, 0.5);
}

/* Calculator container inner glow */
.lhpf-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f9b233, #002b45, #f9b233);
    border-radius: 28px 28px 0 0;
    pointer-events: none;
}

.lhpf-wrapper {
    position: relative;
}

/* Grouped fields styling */
.lhpf-field-group {
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 10px;
}

.lhpf-field-group-title {
    font-size: 13px;
    font-weight: 700;
    color: #f9b233;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(249, 178, 51, 0.3);
}

/* Force all disclaimer text to be white */
.lhpf-disclaimer,
[class*="disclaimer"],
[class*="Disclaimer"],
p:contains("disclaimer"),
p:contains("Disclaimer") {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Target any small text at the bottom of calculators */
.lhpf-wrapper p,
.lhpf-wrapper small,
.lhpf-wrapper .small-text {
    color: #ffffff !important;
}