/* HomeInsuranceQuotes360 - Shared Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar for horizontal scrolling areas */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Body minimum height */
body {
    min-height: max(884px, 100dvh);
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Calculator form styles */
.calculator-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #334155;
}

.dark .form-label {
    color: #e2e8f0;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.dark .form-input,
.dark .form-select {
    background-color: #1e293b;
    border-color: #475569;
    color: #fff;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #137fec;
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.1);
}

/* Results display */
.results-container {
    background: linear-gradient(135deg, #137fec 0%, #0b5bb0 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Disclaimer box */
.disclaimer-box {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.dark .disclaimer-box {
    background-color: #78350f;
    border-color: #f59e0b;
}

.disclaimer-box p {
    margin: 0;
    font-size: 0.875rem;
    color: #92400e;
}

.dark .disclaimer-box p {
    color: #fef3c7;
}

/* Blog post styles */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.blog-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.dark .blog-content h2 {
    color: #f1f5f9;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.dark .blog-content h3 {
    color: #e2e8f0;
}

.blog-content p {
    margin-bottom: 1.25rem;
    color: #475569;
}

.dark .blog-content p {
    color: #cbd5e1;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    color: #475569;
}

.dark .blog-content li {
    color: #cbd5e1;
}

/* FAQ accordion */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.dark .faq-item {
    border-color: #334155;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #137fec;
}

.faq-answer {
    padding-bottom: 1.25rem;
    color: #64748b;
    display: none;
}

.dark .faq-answer {
    color: #94a3b8;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Utility classes */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding: 0 2rem;
    }
}
