:root {
    --gold: #c5a059;
    --gold-dark: #b8862e;
    --dark: #1c1c1c;
    --card-bg: #ffffff;
    --text: #333333;
    --text-muted: #666666;
    --bg-page: #f4f1ea;
    /* Creamy paper */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-page);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle luxury texture */
    background-image: radial-gradient(#d4d4d4 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: -1;
}

.app-container {
    width: 100%;
    max-width: 550px;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.app-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.app-header p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Card */
.calculator-card {
    background: var(--card-bg);
    padding: 40px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
    border-top: 5px solid var(--gold);
    border-radius: 4px;
    /* Sharp corners for professional look */
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold-dark);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Inputs */
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.radio-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.toggle-switch {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toggle-option {
    display: block;
    cursor: pointer;
}

.toggle-option input {
    display: none;
}

.toggle-option span {
    display: block;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: 0.2s;
}

.toggle-option input:checked+span {
    background: var(--dark);
    color: var(--gold);
    border-color: var(--dark);
}

/* Money Inputs */
.input-row {
    margin-bottom: 20px;
}

.input-row label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.currency-input {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ddd;
    background: #fafafa;
    padding: 5px 10px;
    transition: 0.3s;
}

.currency-input:focus-within {
    border-color: var(--gold);
    background: #fff;
}

.currency-input .symbol {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-right: 10px;
}

.currency-input input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    padding: 10px 0;
    font-family: 'Lato', sans-serif;
    color: var(--dark);
}

.currency-input input:focus {
    outline: none;
}

.sub-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: italic;
}

/* Result */
.result-box {
    background: var(--dark);
    color: white;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    position: relative;
    /* Fancy border inside */
    outline: 1px solid rgba(197, 160, 89, 0.3);
    outline-offset: -10px;
}

.allowance-info {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.allowance-info strong {
    color: var(--gold);
}

.bill-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #ccc;
    margin-bottom: 5px;
}

.bill-amount {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.bill-sub {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 25px;
}

/* CTA */
.cta-text {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #eee;
    line-height: 1.4;
}

.cta-btn {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.cta-btn:hover {
    background: var(--gold-dark);
    color: white;
}

/* FAQ */
.faq-section {
    margin-top: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faq-card {
    background: #fff;
    border-left: 4px solid var(--gold);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.faq-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.faq-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Overlay */
.hidden {
    display: none !important;
}

.lead-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 28, 28, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
}

.overlay-card {
    background: white;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    border-top: 4px solid var(--gold);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.overlay-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.overlay-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

#submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--dark);
    color: var(--gold);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

#submit-btn:hover {
    background: black;
    color: white;
}

/* Responsive */
@media(max-width: 500px) {

    .status-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .bill-amount {
        font-size: 2.5rem;
    }
}