/* Modern Invoice Template - Custom Styles */
/* Template specific styles without affecting global layout */

/* Topbar Styles */
.topbar {
    background: #f0f9ff;
    padding: 12px 0;
    border-bottom: 1px solid #bae6fd;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.back-btn {
    color: #0369a1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-btn:hover {
    color: #0ea5e9;
}

.use-template {
    background: #0ea5e9;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.use-template:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: #0369a1;
}

.breadcrumb a {
    color: #0369a1;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0ea5e9;
}

/* Hero Section */
.hero-section {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 50px;
    align-items: start;
}

.badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #0f172a, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #0284c7;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-desc {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 30px;
}

.download-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 16px;
    color: #1e293b;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
    border: 1px solid #bae6fd;
}

.download-item:hover {
    transform: translateX(5px);
}

.download-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    font-size: 32px;
}

.download-text h4 {
    margin-bottom: 5px;
    font-size: 15px;
}

.download-text p {
    font-size: 12px;
    margin: 0;
}

.download-arrow {
    font-size: 24px;
    font-weight: 700;
}

.download-item.green {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.download-item.green .download-text h4 {
    color: #2e7d32;
}

.download-item.blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.download-item.blue .download-text h4 {
    color: #1565c0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0ea5e9;
    color: white;
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.features-list li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #334155;
}

.features-list li i {
    color: #0ea5e9;
    margin-right: 8px;
}

/* Invoice Preview */
.invoice-preview {
    position: relative;
    background: #f0f9ff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.preview-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #0ea5e9;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.preview-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.preview-overlay {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    white-space: nowrap;
}

/* Section Common */
.section-pad {
    padding: 60px 0;
}

.bg-white {
    background: white;
}

.bg-light {
    background: #f8fafc;
}

.bg-gradient {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.bg-gradient h2,
.bg-gradient p {
    color: #fff;
}

.text-center {
    text-align: center;
}

.text-center h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1e293b;
}

/* Use Cases */
.use-cases-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.use-case-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    border: 1px solid #bae6fd;
    transition: all 0.3s;
}

.use-case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.08);
    border-color: #0ea5e9;
}

.use-case-item i {
    font-size: 40px;
    color: #0ea5e9;
    margin-bottom: 15px;
    display: block;
}

.use-case-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.use-case-item p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* Steps List */
.steps-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.step-item {
    text-align: center;
    padding: 28px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #bae6fd;
    transition: all 0.3s;
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step-item p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* Payment Grid */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.payment-card {
    padding: 25px;
    background: white;
    border-radius: 16px;
    border: 1px solid #bae6fd;
}

.payment-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.payment-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.payment-card ul {
    list-style: none;
    margin-top: 12px;
}

.payment-card li {
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

.payment-card li i {
    color: #0ea5e9;
    font-size: 11px;
}

/* Design Grid for Gradient Section */
.design-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.design-card {
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.design-card i {
    font-size: 38px;
    margin-bottom: 14px;
    display: block;
    color: #fff;
}

.design-card h3 {
    color: #fff;
    font-size: 18px;
}

.design-card ul {
    list-style: none;
    margin-top: 14px;
}

.design-card li {
    margin-bottom: 7px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #e2e8f0;
}

.design-card li i {
    font-size: 11px;
    color: #bae6fd;
    margin: 0;
}

/* FAQ Grid */
.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
}

.faq-question span:first-child {
    font-size: 15px;
}

.faq-question span:last-child {
    font-size: 18px;
    color: #0ea5e9;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 22px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 18px;
}

.faq-answer p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    color: white;
    margin: 40px 0;
}

.cta-banner h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: white;
}

.cta-banner p {
    margin-bottom: 25px;
    opacity: 0.9;
    color: #cbd5e1;
}

.cta-btn {
    display: inline-block;
    background: #0ea5e9;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .use-cases-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-list,
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 32px;
    }

    .text-center h2 {
        font-size: 28px;
    }

    .use-cases-list {
        grid-template-columns: 1fr;
    }

    .steps-list,
    .payment-grid,
    .design-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cta-banner {
        padding: 30px 20px;
    }

    .cta-banner h2 {
        font-size: 24px;
    }

    .preview-overlay {
        white-space: normal;
        font-size: 10px;
        width: 80%;
        text-align: center;
    }

    .flex-between {
        flex-direction: column;
        align-items: stretch;
    }

    .back-btn,
    .use-template {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .download-item {
        flex-direction: column;
        text-align: center;
    }

    .download-left {
        flex-direction: column;
        text-align: center;
        margin-bottom: 10px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}