/**
 * product-pages.css
 * GoodHope Insure — Shared Insurance Product Page Design System
 *
 * Scoped exclusively to .ghi-* prefixed classes.
 * Safe to load globally — will NOT affect blog, homepage,
 * checkout, payment, auth, admin, or any unrelated page.
 *
 * Loaded via: layouts/app.blade.php
 * Used by: Travel, Health, Life, Bike, Car, Three-Wheeler, Truck pages
 */

/* ─────────────────────────────────────────────────────────
   1. TWO-COLUMN CONTENT + SIDEBAR LAYOUT
   ───────────────────────────────────────────────────────── */
.ghi-content-sidebar-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .ghi-content-sidebar-layout {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────────
   2. MAIN CONTENT CARD (left column)
   ───────────────────────────────────────────────────────── */
.ghi-content-card {
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
    color: #334155;
}

.ghi-content-card h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.ghi-content-card h3 {
    color: var(--primary);
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.ghi-content-card h2:first-child,
.ghi-content-card h3:first-child {
    margin-top: 0;
}

.ghi-content-card p {
    margin-bottom: 15px;
}

.ghi-content-card ul,
.ghi-content-card ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.ghi-content-card li {
    margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────────────
   3. SIDEBAR BASE CARD
   ───────────────────────────────────────────────────────── */
.ghi-sidebar-card {
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
}

/* ─────────────────────────────────────────────────────────
   4. FEATURED IMAGE CARD
   ───────────────────────────────────────────────────────── */
.ghi-featured-image-card {
    padding: 0;
    text-align: center;
}

.ghi-featured-image-card img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.ghi-featured-image-card .image-caption {
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 15px;
    font-style: italic;
    margin-bottom: 0;
    border-top: 1px solid #cbd5e1;
    text-align: center;
}

/* ─────────────────────────────────────────────────────────
   5. SERVICES CARD HEADER
   ───────────────────────────────────────────────────────── */
.ghi-services-card {
    padding: 25px;
}

.ghi-services-card h3 {
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Default (orange) accent for the shield icon */
.ghi-services-card h3 i {
    color: var(--accent);
}

/* Green accent override — add class="ghi-accent-green" to the sidebar column wrapper */
.ghi-accent-green .ghi-services-card h3 i {
    color: var(--success);
}

/* ─────────────────────────────────────────────────────────
   6. SERVICES LIST
   ───────────────────────────────────────────────────────── */
.ghi-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ghi-services-list li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    background-color: #f8fafc;
}

.ghi-services-list li a .service-icon {
    width: 32px;
    height: 32px;
    background-color: #f1f5f9;
    color: var(--primary);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ghi-services-list li a .service-name {
    flex-grow: 1;
}

.ghi-services-list li a .service-arrow {
    color: #94a3b8;
    font-size: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* ── Hover: default orange ── */
.ghi-services-list li a:hover {
    background-color: #fff2eb;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(4px);
}

.ghi-services-list li a:hover .service-icon {
    background-color: var(--accent);
    color: var(--white);
}

.ghi-services-list li a:hover .service-arrow {
    color: var(--accent);
    transform: translateX(2px);
}

/* ── Active: default orange ── */
.ghi-services-list li a.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.ghi-services-list li a.active .service-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.ghi-services-list li a.active .service-arrow {
    color: var(--white);
}

/* ── Hover: green accent override (Health pages) ── */
.ghi-accent-green .ghi-services-list li a:hover {
    background-color: #e6fcf5;
    border-color: var(--success);
    color: var(--success);
}

.ghi-accent-green .ghi-services-list li a:hover .service-icon {
    background-color: var(--success);
    color: var(--white);
}

.ghi-accent-green .ghi-services-list li a:hover .service-arrow {
    color: var(--success);
}

/* ── Active: green accent override (Health pages) ── */
.ghi-accent-green .ghi-services-list li a.active {
    background-color: var(--success);
    border-color: var(--success);
}

/* ─────────────────────────────────────────────────────────
   7. BIKE PREMIUM QUOTATION RESULTS AND BREAKDOWN
   ───────────────────────────────────────────────────────── */
.ghi-quote-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
}

.ghi-quote-header h1 {
    font-size: 26px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.ghi-quote-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.ghi-quote-section {
    margin-bottom: 30px;
}

.ghi-quote-section h3 {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

.ghi-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.ghi-grid-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.ghi-premium-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ghi-premium-table th, .ghi-premium-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.ghi-premium-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
}

.ghi-row-total {
    font-weight: 700;
    background-color: #fff2eb;
}

.ghi-row-total td {
    color: var(--accent);
    font-size: 16px;
}

.ghi-cta-container {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.ghi-cta-btn-back {
    padding: 16px 25px;
    text-align: center;
    background-color: #f1f5f9;
    color: #475569 !important;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.ghi-cta-btn-back:hover {
    background-color: #e2e8f0;
}

/* ─────────────────────────────────────────────────────────
   8. BIKE / MOTOR QUOTATION FORM
   Shared by: motor-landing.blade.php + bike-quote.blade.php
   Safe to load globally — scoped to .quotation-card,
   .motor-toggle-tabs, .coverage-checkbox-card, .form-group
   ───────────────────────────────────────────────────────── */

/* Form card */
.quotation-card {
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}
.quotation-card h2 {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* Two-column grid */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
@media (max-width: 768px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }
    .quotation-card h2 {
    font-size: 17px;
    }
    .quotation-card {
    padding: 18px;
    }
}

/* Input / select styling inside form card */
.quotation-card .form-control,
.quotation-card select,
.quotation-card input[type="text"],
.quotation-card input[type="email"],
.quotation-card input[type="tel"],
.quotation-card input[type="number"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d5dce8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--primary);
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.quotation-card .form-control:focus,
.quotation-card select:focus,
.quotation-card input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 90, 34, 0.15);
}

/* Form group + label */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.required {
    color: var(--accent);
}

/* 1st / 3rd Party toggle tabs */
.motor-toggle-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}
.tab-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    background-color: #f8fafc;
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tab-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: #fff2eb;
}
.tab-btn.active {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 4px 6px -1px rgba(255, 90, 34, 0.15);
    border-radius: 8px 8px 0 0;
}

.motor-toggle-tabs.single-tab {
    grid-template-columns: 1fr;
}

.bike-plan-selector {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.bike-plan-selector .motor-toggle-tabs {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    gap: 10px;
}

/* Coverage section + grid + checkbox cards */
.coverage-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px dashed #e2e8f0;
}
.coverage-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media (max-width: 576px) {
    .coverage-grid {
        grid-template-columns: 1fr;
    }
}
.coverage-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
}
.coverage-checkbox-card:hover {
    border-color: var(--accent);
    background-color: #fff2eb;
}
.coverage-checkbox-card input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--accent);
}
.coverage-checkbox-card label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}
.coverage-checkbox-card .cov-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.coverage-checkbox-card .cov-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Insurance sidebar stickiness is scoped in insurance-sidebar.css. */

/* =========================================================================
   QUOTE PAGE ICON TEXT SPACING FIX
   ========================================================================= */

.btn {
    gap: 8px;
}

.btn i,
.btn svg {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

h1 i,
h2 i,
h3 i,
h4 i,
h5 i,
h6 i {
    margin-right: 8px !important;
}
