/* Core Layout & Typography */
main.container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: #1e293b !important;
    background-color: #f8fafc;
    padding: 40px 15px !important;
    border-radius: 16px;
}

.invoice-hero {
    text-align: center;
    margin-bottom: 35px;
}
.invoice-title-main {
    font-size: 2.2rem !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    letter-spacing: -1px !important;
    margin-bottom: 10px !important;
}
.invoice-subtitle-main {
    font-size: 16px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.invoice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .invoice-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.invoice-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.control-label {
    font-weight: 700 !important;
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    outline: none;
    box-sizing: border-box;
}
.pro-input:focus {
    border-color: #4f46e5;
}

.cc-flex-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.cc-flex-col { flex: 1; }

.invoice-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700 !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s;
}
.invoice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}
.invoice-secondary-btn {
    background: #f1f5f9;
    border: 1px dashed #cbd5e0;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    font-weight: 700;
    cursor: pointer;
    color: #475569;
}
.invoice-btn.download-btn {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    margin-top: 20px;
}

/* Results Card & Virtual Invoice Sheet */
.result-card {
    background: #ffffff;
    border: 2px dashed #cbd5e0;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 16px;
}
.empty-state-text {
    text-align: center;
    color: #64748b;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.6;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: #e0e7ff;
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* A4 Look Paper Sheet Container */
.invoice-paper-sheet {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}
.paper-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.paper-biz-name {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}
.paper-inv-meta {
    text-align: right;
    font-size: 14px;
    color: #475569;
}
.paper-bill-to {
    margin-bottom: 25px;
}
.paper-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}
.paper-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    padding: 8px 12px;
    font-weight: 800;
    text-align: left;
}
.paper-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}
.paper-total-box {
    text-align: right;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    border-top: 2px solid #f1f5f9;
    padding-top: 15px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FAQ Styles */
.faq-section { max-width: 850px; margin: 60px auto 30px auto; }
.faq-main-title { font-size: 24px !important; font-weight: 850 !important; color: #0f172a; margin-bottom: 30px; text-align: center; }
.faq-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.faq-question { font-size: 16.5px !important; font-weight: 750 !important; color: #0f172a; margin-top: 0; margin-bottom: 10px; }
.faq-answer { font-size: 14.5px; color: #475569; line-height: 1.6; margin: 0; }