/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Emergency Banner */
.emergency-banner {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.emergency-banner.hidden {
    display: none;
}

.emergency-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-weight: 600;
}

.emergency-phone {
    font-size: 1.1em;
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 999;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 0;
}

.logo {
    height: 50px;
    width: auto;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(59, 130, 246, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.trust-icon {
    background: #10b981;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Benefits Section */
.benefits {
    background: #f8fafc;
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2563eb;
}

/* Social Proof */
.social-proof {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number, .stat-rating, .stat-check {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 10px;
}

.stat-check {
    color: #10b981;
}

.stat-label {
    font-size: 1.1rem;
    color: #64748b;
}

/* Lead Form */
.lead-form {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    padding: 80px 0;
    color: white;
}

.form-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.form-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.form-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    color: #333;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.privacy-notice {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 15px;
}

.privacy-notice a {
    color: #2563eb;
    text-decoration: none;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8fafc;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1f2937;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2563eb;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: white;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1f2937;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.price-card {
    background: #f8fafc;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.price-card.featured {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-color: #2563eb;
    transform: scale(1.05);
}

.price-card:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.price-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #374151;
}

.price-card.featured h3 {
    color: white;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 15px;
}

.price-card.featured .price {
    color: white;
}

.pricing-note {
    text-align: center;
    font-style: italic;
    color: #6b7280;
}

/* Urgency Section */
.urgency {
    padding: 80px 0;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.urgency h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #dc2626;
}

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

.risks {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.risk-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #dc2626;
}

.risk-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.risk-item h3 {
    color: #dc2626;
    margin-bottom: 8px;
}

.before-after {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.before-after-item {
    text-align: center;
}

.before-after-item img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* Service Area */
.service-area {
    padding: 80px 0;
    background: white;
}

.service-area h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1f2937;
}

.area-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.area-text h3 {
    font-size: 1.8rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.area-text ul {
    list-style: none;
    margin: 20px 0;
}

.area-text li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.area-text li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1f2937;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.stars {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fbbf24;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.author {
    font-weight: 600;
    color: #2563eb;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: white;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1f2937;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f8fafc;
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #2563eb;
}

.faq-item h3 {
    color: #2563eb;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
}

.modal-content h3 {
    color: #10b981;
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-close {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
}

/* Chat Widget - Updated to match reference design */
#rq-container {
    --rq-primary-color: #2563eb;
    --rq-text-color: #ffffff;
    --rq-bg-color: #ffffff;
    --rq-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    --rq-border-radius: 8px;
    
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: inherit;
}

/* Launcher Button */
#rq-launcher {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--rq-primary-color);
    color: var(--rq-text-color);
    border: none;
    box-shadow: var(--rq-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#rq-launcher:hover {
    transform: scale(1.05);
    background-color: #1d4ed8;
}

#rq-launcher svg {
    width: 28px;
    height: 28px;
    stroke: var(--rq-text-color);
}

/* Greeting Balloon */
#rq-greeting {
    position: absolute;
    bottom: 80px;
    right: 10px;
    background-color: var(--rq-bg-color);
    padding: 12px;
    border-radius: var(--rq-border-radius);
    box-shadow: var(--rq-shadow);
    width: 280px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    animation: rq-fade-in 0.5s ease;
}

.rq-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rq-primary-color);
    margin-right: 12px;
    flex-shrink: 0;
}

.rq-greeting-text {
    flex-grow: 1;
    padding-right: 10px;
}

.rq-greeting-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

#rq-close-greeting {
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

/* Panel */
#rq-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: 90vw;
    max-height: 80vh;
    background-color: var(--rq-bg-color);
    border-radius: var(--rq-border-radius);
    box-shadow: var(--rq-shadow);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: rq-slide-in 0.3s ease;
}

.rq-panel-header {
    background-color: var(--rq-primary-color);
    color: var(--rq-text-color);
    padding: 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.rq-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rq-text-color);
}

.rq-header-text {
    margin-left: 15px;
    flex: 1;
}

.rq-header-text h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.rq-header-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

#rq-close-panel {
    background: none;
    border: none;
    color: var(--rq-text-color);
    font-size: 24px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.rq-panel-content {
    padding: 20px;
    overflow-y: auto;
}

/* Form Styles */
.rq-form-group {
    margin-bottom: 15px;
}

.rq-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.rq-form-group input,
.rq-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.rq-form-group input:focus,
.rq-form-group textarea:focus {
    outline: none;
    border-color: var(--rq-primary-color);
}

.rq-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.rq-disclaimer {
    margin: 15px 0;
    font-size: 12px;
    color: #777;
}

.rq-disclaimer p {
    margin: 0;
}

#rq-submit {
    background-color: var(--rq-primary-color);
    color: var(--rq-text-color);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

#rq-submit:hover {
    background-color: #1d4ed8;
}

#rq-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Success Message */
#rq-success {
    text-align: center;
    padding: 20px;
}

#rq-success p {
    font-size: 16px;
    margin: 0;
    color: #10b981;
}

/* Utility Classes */
.rq-hidden {
    display: none !important;
}

/* Animations */
@keyframes rq-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rq-slide-in {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .urgency-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .trust-indicators {
        gap: 15px;
    }
    
    .emergency-content {
        flex-direction: column;
        gap: 5px;
        font-size: 0.9rem;
    }
    
    .chat-form {
        width: 280px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .services h2,
    .pricing h2,
    .urgency h2,
    .testimonials h2,
    .faq h2 {
        font-size: 2rem;
    }
    
    /* Chat Widget Mobile Adjustments */
    #rq-container {
        bottom: 15px;
        right: 15px;
    }
    
    #rq-panel {
        width: 90vw;
        right: 5vw;
        bottom: 80px;
    }
    
    #rq-greeting {
        width: 250px;
        right: 5px;
    }
}
