/* Book Page Specific Styles - Premium Warranty Inspired */
.book-container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
    padding-block-start: 4rem;
    padding-block-end: 8rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.animate-in { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0;}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Typo Wrappers & Layout */
.text-center { text-align: center; }
.text-start { text-align: start; }
.mx-auto { margin-inline: auto; }
.w-full { width: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-muted-foreground { color: var(--muted-foreground, #6b7280); }
.text-foreground { color: var(--foreground, #111827); }

/* Spacing Utilities */
.mt-4 { margin-block-start: 1rem; }
.mt-6 { margin-block-start: 1.5rem; }
.mt-8 { margin-block-start: 2rem; }
.mt-12 { margin-block-start: 3rem; }
.mt-16 { margin-block-start: 4rem; }
.mb-2 { margin-block-end: 0.5rem; }
.mb-3 { margin-block-end: 0.75rem; }
.mb-4 { margin-block-end: 1rem; }
.mb-6 { margin-block-end: 1.5rem; }
.mb-8 { margin-block-end: 2rem; }
.mb-10 { margin-block-end: 2.5rem; }
.mb-12 { margin-block-end: 3rem; }
.mb-16 { margin-block-end: 4rem; }
.px-2 { padding-inline: 0.5rem; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.hidden { display: none !important; }

/* Responsive */
@media (min-width: 640px) {
    .sm\:hidden { display: none !important; }
    .sm\:block { display: block !important; }
    .sm\:mx-0 { margin-inline: 0; }
    .sm\:px-8 { padding-inline: 2rem; }
    .sm\:p-10 { padding: 2.5rem; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:w-auto { width: auto; }
    .sm\:flex-none { flex: none; }
    .sm\:text-base { font-size: 1rem; }
    .sm\:text-right { text-align: right; }
    .sm\:ml-auto { margin-inline-start: auto; }
    .sm\:mt-0 { margin-block-start: 0; }
}

/* Base UI */
.bg-card { background-color: var(--card, #ffffff); }
.rounded-large { border-radius: 1.5rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-border { border-color: var(--border, #e5e7eb); }
.border-primary { border-color: var(--primary, #00724f); }
.text-primary { color: var(--primary, #00724f); }
.bg-white { background-color: #ffffff; }

/* Shadows Elements */
.shadow-category { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* Hero Section */
.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--foreground, #111827);
    margin-block-end: 1.25rem;
}
@media (min-width: 768px) {
    .hero-title { font-size: 3.5rem; }
}

.hero-title span.highlight {
    background: linear-gradient(135deg, var(--color-primary, #10b981) 0%, var(--primary, #00724f) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--muted-foreground, #6b7280);
    max-width: 65ch;
}

/* Sections Base */
.section-title {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--foreground, #111827);
    margin-block-end: 1rem;
    position: relative;
    display: inline-block;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--muted-foreground, #6b7280);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    inset-inline-start: 0;
    height: 4px;
    background: var(--primary, #00724f);
    border-radius: 4px;
    width: 3rem;
    transition: width 0.3s ease;
}

html[dir="rtl"] .section-title::after {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.section-title:hover::after,
.step-pane.active .section-title::after {
    width: 6rem;
}

/* Premium Step Tracker Layout */
.tracker-container {
    padding-inline: 1rem;
}

.tracker-item {
    z-index: 2;
    transition: all 0.4s ease;
    cursor: default;
    opacity: 0.6;
}

.tracker-item.active {
    opacity: 1;
}

.tracker-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted-foreground, #6b7280);
}
.tracker-item.active .tracker-label {
    color: var(--foreground, #111827);
}

.tracker-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--background, #f9fafb);
    border: 2px solid var(--border, #d1d5db);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--muted-foreground, #6b7280);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tracker-item.active .tracker-circle {
    background: var(--primary, #00724f);
    border-color: var(--primary, #00724f);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 114, 79, 0.4);
}

.glass-border {
    border: 1px solid rgba(0, 114, 79, 0.1);
}

.exclusions-glassmorphism {
    background-color: var(--background, #f9fafb);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border, #e5e7eb); 
}

@media (min-width: 640px) {
    .exclusions-glassmorphism { padding: 3rem; }
}

html.dark .exclusions-glassmorphism {
    background-color: var(--card, #1f2937);
}

/* Coverage Grid / Action Cards */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.coverage-card {
    background-color: var(--card, #ffffff);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    border: 1px solid var(--border, #e5e7eb);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.coverage-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    height: 100%;
    width: 4px;
    background: var(--primary, #00724f);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.coverage-card:hover::before {
    transform: scaleY(1);
}

.coverage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 114, 79, 0.3);
}

.form-action-icon {
    font-size: 2.5rem;
    display: inline-block;
}

.coverage-card:hover .form-action-icon {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.25rem;
    color: var(--foreground, #111827);
    transition: color 0.3s ease;
}

.coverage-card:hover .card-title {
    color: var(--primary, #00724f);
}

/* Floating Inputs Enhancement */
.floating-input {
    position: relative;
}

.floating-input input,
.floating-input textarea {
    width: 100%;
    padding: 1.75rem 1rem 0.5rem;
    min-height: 60px;
    background-color: var(--background, #f9fafb);
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 0.75rem;
    font-size: 1.0625rem;
    color: var(--foreground, #111827);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    resize: vertical;
}

.floating-input input:focus,
.floating-input textarea:focus {
    outline: none;
    border-color: var(--primary, #00724f);
    box-shadow: 0 4px 6px -1px rgba(0, 114, 79, 0.1);
    background-color: var(--card, #ffffff);
}

.floating-input label {
    position: absolute;
    inset-inline-start: 1rem;
    top: 1.25rem;
    color: var(--muted-foreground, #6b7280);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    font-weight: 500;
}

.floating-input input:focus ~ label,
.floating-input input:not(:placeholder-shown) ~ label,
.floating-input textarea:focus ~ label,
.floating-input textarea:not(:placeholder-shown) ~ label {
    top: 0.4rem;
    transform: scale(0.85);
    color: var(--primary, #00724f);
}

html[dir="ltr"] .floating-input input:focus ~ label,
html[dir="ltr"] .floating-input input:not(:placeholder-shown) ~ label,
html[dir="ltr"] .floating-input textarea:focus ~ label,
html[dir="ltr"] .floating-input textarea:not(:placeholder-shown) ~ label {
    transform-origin: left top;
}

html[dir="rtl"] .floating-input input:focus ~ label,
html[dir="rtl"] .floating-input input:not(:placeholder-shown) ~ label,
html[dir="rtl"] .floating-input textarea:focus ~ label,
html[dir="rtl"] .floating-input textarea:not(:placeholder-shown) ~ label {
    transform-origin: right top;
}

/* Resolution Flow Timeline */
.flow-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    margin-block-start: 2rem;
}

@media (min-width: 1024px) {
    .flow-timeline {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2.5rem;
    }
    
    .flow-timeline::before {
        content: '';
        position: absolute;
        top: 24px;
        inset-inline-start: 40px;
        inset-inline-end: 25%;
        height: 2px;
        background: var(--border, #e5e7eb);
        z-index: 0;
    }
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    background: transparent;
    transition: all 0.3s ease;
    flex: 1 1 200px;
}

.flow-step:hover .flow-number {
    background-color: var(--primary, #00724f);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 114, 79, 0.4);
}

.flow-number {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-content {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.flow-step:hover .flow-content {
    border-color: var(--primary, #00724f);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Premium Buttons Engine */
.contrast-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border, #d1d5db) !important;
    background-color: var(--card, #ffffff) !important;
    color: var(--foreground, #111827) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer;
}

.contrast-btn:hover {
    background-color: var(--foreground, #111827) !important;
    border-color: var(--foreground, #111827) !important;
    color: var(--card, #fff) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.premium-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary, #00724f) !important;
    color: #ffffff !important;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 114, 79, 0.3);
}

.premium-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 114, 79, 0.4);
    background-color: #006042 !important;
}

.whatsapp-btn {
    background-color: #25D366 !important;
    box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.3) !important;
}

.whatsapp-btn:hover {
    background-color: #1DA851 !important;
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.4) !important;
}

.btn-icon {
    margin-inline-end: 0.5rem;
}
