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

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

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

.back-btn {
    color: #5b21b6;
    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: #8b5cf6;
}

.use-template {
    background: #8b5cf6;
    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: #7c3aed;
    transform: translateY(-2px);
}

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

.breadcrumb a {
    color: #6d28d9;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #8b5cf6;
}

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

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

.badge {
    display: inline-block;
    background: #ede9fe;
    color: #6d28d9;
    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, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #6d28d9;
    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;
}

/* Template Cards */
.template-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.template-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    transform: translateX(3px);
}

.template-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-card-header h3 {
    margin: 0;
    font-size: 15px;
    color: #1e293b;
}

.template-badge {
    background: #1e293b;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 6px;
}

.template-badge.popular {
    background: #217346;
}

.template-badge.pro {
    background: #8b5cf6;
}

.template-badge.new {
    background: #d97706;
}

.template-badge.free {
    background: #059669;
}

.download-buttons {
    display: flex;
    gap: 8px;
}

.btn-download {
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-download.excel {
    background: #217346;
    color: #fff;
}

.btn-download.excel:hover {
    background: #1a5c3a;
    transform: scale(1.02);
}

.btn-download.word {
    background: #2b5797;
    color: #fff;
}

.btn-download.word:hover {
    background: #1e3f6f;
    transform: scale(1.02);
}

.btn-download i {
    font-size: 14px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #8b5cf6;
    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: #7c3aed;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #1e293b;
    color: #fff;
    padding: 10px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* Invoice Preview */
.invoice-preview {
    position: relative;
    background: #f5f3ff;
    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: #8b5cf6;
    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);
}

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

.bg-white {
    background: white;
}

.bg-light {
    background: #f8fafc;
}

.bg-gradient {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.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(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.use-case-item {
    text-align: center;
    padding: 30px 25px;
    background: white;
    border-radius: 16px;
    border: 1px solid #ddd6fe;
    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: #8b5cf6;
}

.use-case-item i {
    font-size: 40px;
    color: #8b5cf6;
    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(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.step-item {
    text-align: center;
    padding: 28px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #ddd6fe;
    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, #8b5cf6, #a78bfa);
    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;
}

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

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

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

.faq-questionn:hover {
    background: #f5f3ff;
}

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

.faq-questionn span:last-child {
    font-size: 18px;
    color: #8b5cf6;
}

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

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

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

/* Info Box */
.info-box {
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
}

.info-box p {
    color: #475569;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box i {
    margin-right: 6px;
}

/* Dark CTA Box */
.dark-cta {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    margin-top: 16px;
}

.dark-cta p {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.dark-cta .btn-light {
    background: #fff;
    color: #1e293b;
    padding: 10px 32px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s;
}

.dark-cta .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Featured In */
.featured-in {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.featured-item {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.featured-item:hover {
    opacity: 1;
}

/* 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: #8b5cf6;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: #7c3aed;
    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 {
        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 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

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

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

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

    .template-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .template-card-header {
        justify-content: center;
        flex-wrap: wrap;
    }

    .download-buttons {
        justify-content: center;
    }

    .featured-in {
        gap: 20px;
    }

    .featured-item {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
    }

    .template-card {
        padding: 14px 16px;
    }

    .template-card-header h3 {
        font-size: 13px;
    }

    .dark-cta {
        padding: 16px;
    }

    .dark-cta p {
        font-size: 13px;
    }

    .cta-banner {
        padding: 24px 16px;
    }

    .cta-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}