body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Override body padding for index page with fixed header */
body.index-page {
    padding-top: 110px !important;
}

.gradient-bg {
    background: linear-gradient(135deg, 
        #1e293b 0%, 
        #334155 25%, 
        #475569 50%, 
        #64748b 75%, 
        #94a3b8 100%
    );
}
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.hero-animation {
    animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.service-expanded {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
}
.service-collapsed {
    max-height: 200px;
    transition: max-height 0.5s ease-in-out;
}
.expand-icon {
    transition: transform 0.3s ease;
}
.expand-icon.rotated {
    transform: rotate(180deg);
}

/* Index page specific styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Add scroll margin to all sections to account for fixed header */
section {
    scroll-margin-top: 100px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

/* Hero Section with Gradient */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero .subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Button variants for forms */
.form-actions .btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.form-actions .btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
    border-color: #d1d5db;
}

/* Stats Section */
.stats-section {
    background: #f9fafb;
    padding: 60px 20px;
    text-align: center;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-item {
    animation: fadeIn 0.8s ease-out;
    padding: 0 10px;
    text-align: center;
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    display: inline-block;
    padding: 0 5px;
}

.stat-label {
    font-size: 1.1em;
    color: #6b7280;
    margin-top: 10px;
    text-align: center;
}

/* Features Section - FAQ Style Layout */
.features-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #6b7280;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    height: calc(100vh - 400px);
    min-height: 600px;
    max-height: 800px;
}

.features-list {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    overflow-y: auto;
    max-height: 100%;
}

.features-list::-webkit-scrollbar {
    width: 8px;
}

.features-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.features-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.features-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.feature-item:hover {
    background: #f9fafb;
    transform: translateX(5px);
}

.feature-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
}

.feature-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    flex-shrink: 0;
}

/* Unique colors for each feature item - matching dashboard button colors */
.feature-item[data-feature="rsvp"] .feature-item-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-item[data-feature="dashboard"] .feature-item-icon {
    background: linear-gradient(135deg, #3b8bc7 0%, #00c8d4 100%);
}

.feature-item[data-feature="attendance"] .feature-item-icon {
    background: linear-gradient(135deg, #36b863 0%, #2dd4b4 100%);
}

.feature-item[data-feature="qrcode"] .feature-item-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.feature-item[data-feature="seating"] .feature-item-icon {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.feature-item[data-feature="emails"] .feature-item-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.feature-item[data-feature="excel"] .feature-item-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.feature-item[data-feature="reports"] .feature-item-icon {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.feature-item-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
}

.features-content {
    flex: 2;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    overflow-y: auto;
    max-height: 100%;
}

.features-content::-webkit-scrollbar {
    width: 8px;
}

.features-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.features-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.features-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

.feature-content-item {
    display: none;
}

.feature-content-item.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.video-container {
    position: relative;
    width: 100%;
    max-height: 400px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.feature-content-video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.feature-content-video:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-placeholder {
    display: none;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.video-placeholder.show {
    display: flex;
}

.video-placeholder i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.video-placeholder h4 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-placeholder p {
    font-size: 1.1em;
    opacity: 0.9;
    max-width: 400px;
}

/* Accordion panel: fade-in / overlap transitions for mobile */
.accordion-panel {
    background: #ffffff;
    border-radius: 12px;
    margin: 16px 0 20px 0;
    padding: 12px 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    will-change: opacity, transform;
}


.feature-content-title {
    font-size: 2em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.feature-content-description {
    font-size: 1.2em;
    color: #6b7280;
    line-height: 1.8;
}

/* How It Works Section */
.how-it-works {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    color: white;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.step-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.step-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 20px;
    background: #f9fafb;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.pricing-card.featured {
    border-color: #667eea;
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.plan-name {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.plan-price {
    font-size: 2.5em;
    font-weight: 700;
    color: #667eea;
    margin: 20px 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.plan-features li {
    padding: 12px 0;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.plan-features li:before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    margin-right: 10px;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.about-text {
    font-size: 1.2em;
    line-height: 1.9;
    color: #4b5563;
    margin-bottom: 40px;
}

.about-text .brand {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1em;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.about-highlight {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.about-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.about-highlight i {
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: block;
}

.about-highlight h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.about-highlight p {
    font-size: 0.95em;
    color: #6b7280;
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background: white;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-buttons .btn-primary,
.contact-buttons .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.contact-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.contact-buttons .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.contact-buttons .btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
}

.contact-item i {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.contact-item p {
    color: #6b7280;
}

/* Privacy Section - Compact */
.privacy-section {
    padding: 40px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.privacy-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.privacy-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 30px;
}

.privacy-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.privacy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    font-size: 1em;
}

.privacy-item i {
    font-size: 1.5em;
    color: #667eea;
}

.privacy-item span {
    font-weight: 500;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin: 10px 0;
    opacity: 0.8;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Quote Modal */
.quote-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.quote-modal.show {
    display: flex;
}

.quote-modal-content {
    background: white;
    border-radius: 20px;
    padding: 50px;
    width: 100%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin: auto;
}

.quote-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #6b7280;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.quote-modal-close:hover {
    color: #667eea;
}

.quote-modal-content h2 {
    font-size: 2em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quote-subtitle {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 1.05em;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    padding: 12px 30px;
    font-size: 1em;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.success-modal.show {
    display: flex;
}

.success-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: successSlideIn 0.4s ease-out;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successIconPop 0.5s ease-out 0.2s both;
}

@keyframes successIconPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-icon i {
    font-size: 3em;
    color: white;
}

.success-modal-content h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.success-modal-content p {
    color: #6b7280;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.success-modal-content .btn-primary {
    margin-top: 10px;
}

/* FAQ Modal Styles */
.faq-section {
    margin: 30px 0;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.faq-section::-webkit-scrollbar {
    width: 8px;
}

.faq-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.faq-section::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.faq-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.faq-question i {
    color: #667eea;
    font-size: 1.5em;
    margin-top: 2px;
    flex-shrink: 0;
}

.faq-question h4 {
    font-size: 1.1em;
    color: #1f2937;
    margin: 0;
    font-weight: 600;
}

.faq-answer {
    padding-left: 40px;
}

.faq-answer p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.faq-contact-form {
    background: white;
    border-top: 2px solid #e5e7eb;
    padding-top: 30px;
    margin-top: 30px;
}

.faq-contact-form h3 {
    font-size: 1.5em;
    color: #1f2937;
    margin-bottom: 10px;
}

.faq-contact-form > p {
    color: #6b7280;
    margin-bottom: 20px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.video-modal-close:hover {
    color: #667eea;
}

#modalVideo {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Ensure smooth transitions and proper spacing */
    .features-container { 
        display: block; 
        padding: 0 12px; 
        height: auto !important; 
        min-height: 0 !important; 
        max-height: none !important;
        overflow: visible !important;
    }
    
    .features-list { 
        width: 100%; 
        box-shadow: none; 
        border-radius: 12px; 
        padding: 0; 
        background: transparent; 
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    /* Hide desktop content view on mobile */
    .features-content { 
        display: none !important; 
    }

    /* Feature items styling */
    .feature-item { 
        background: #ffffff; 
        margin-bottom: 12px; 
        padding: 14px 16px; 
        border-radius: 12px; 
        align-items: center; 
        display: flex; 
        justify-content: space-between; 
        cursor: pointer; 
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        /* Prevent text selection on tap */
        -webkit-user-select: none;
        user-select: none;
        /* Better touch response */
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
        touch-action: manipulation;
    }
    
    .feature-item .feature-item-title { 
        font-size: 1.05em; 
        font-weight: 700; 
        color: #111827; 
    }
    
    /* Accordion arrow */
    .feature-item .accordion-arrow { 
        width: 28px; 
        height: 28px; 
        display: inline-flex !important; 
        align-items: center; 
        justify-content: center; 
        border-radius: 8px; 
        background: rgba(0,0,0,0.04); 
        transition: transform 0.25s ease, background 0.25s ease; 
        flex-shrink: 0;
    }
    
    .feature-item.expanded .accordion-arrow { 
        transform: rotate(180deg);
        background: rgba(102, 126, 234, 0.1);
    }
    
    /* Active state for mobile accordion items */
    .feature-item.active {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        border-left: 4px solid #667eea;
    }

    .feature-item.expanded {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        border-left: 4px solid #667eea;
    }

    .feature-item:not(.active):not(.expanded) {
        background: #ffffff;
        border-left: none;
    }

    /* Ensure smooth transition */
    .feature-item {
        transition: all 0.3s ease, transform 0.3s ease;
    }
    
    /* Accordion panel */
    .accordion-panel { 
        background: #ffffff; 
        border-radius: 12px; 
        margin: 0 0 16px 0; 
        padding: 16px; 
        box-shadow: 0 6px 18px rgba(0,0,0,0.06); 
        position: relative;
        /* Smooth appearance */
        animation: slideDown 0.3s ease-out;
        overflow: hidden;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
            max-height: 0;
        }
        to {
            opacity: 1;
            transform: translateY(0);
            max-height: 1000px;
        }
    }
    
    .accordion-panel .feature-content-title { 
        font-size: 1.25em; 
        margin-top: 12px;
        margin-bottom: 8px;
        color: #1f2937;
        font-weight: 700;
    }
    
    .accordion-panel .feature-content-description { 
        font-size: 1em; 
        color: #6b7280; 
        margin-top: 8px; 
        line-height: 1.6; 
    }
    
    /* Video container in accordion */
    .accordion-panel .video-container { 
        max-height: 240px; 
        overflow: hidden; 
        margin-bottom: 12px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .accordion-panel .video-container .video-placeholder {
        height: 100%;
        min-height: 200px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }

    .accordion-panel .video-container .video-placeholder h4 {
        font-size: 1.2em;
        margin-bottom: 6px;
    }

    .accordion-panel .video-container .video-placeholder p {
        font-size: 0.95em;
        max-width: 92%;
        margin: 0;
    }
    
    /* Mobile video handling */
    .accordion-panel video {
        width: 100%;
        height: auto;
        max-height: 240px;
        border-radius: 8px;
        /* Prevent video from breaking layout */
        display: block;
    }

    /* Following sections positioning */
    .how-it-works { 
        position: relative; 
        z-index: 1;
        /* Add top margin to ensure spacing */
        margin-top: 20px;
    }
    
    /* Fix stats grid on mobile */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px 5px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .stat-label {
        font-size: 0.9em;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 100px 20px 80px;
    }
    
    .hero h1 {
        font-size: 2em;
        line-height: 1.2;
    }
    
    .hero .subtitle {
        font-size: 1em;
        line-height: 1.5;
    }
    
    /* Section spacing */
    .features-section,
    .pricing-section,
    .about-section,
    .contact-section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }
}

/* Hide accordion arrow on desktop */
@media (min-width: 769px) {
    .feature-item .accordion-arrow { 
        display: none !important; 
    }
    
    /* Ensure accordion panels don't appear on desktop */
    .accordion-panel {
        display: none !important;
    }
}

/* iPhone specific fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific fixes */
    .feature-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
    }
    
    /* Prevent iOS zoom on input focus */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Fix iOS video playback */
    video {
        -webkit-playsinline: true;
        playsinline: true;
    }
}

/* Small mobile devices (< 375px) */
@media (max-width: 374px) {
    .hero h1 {
        font-size: 1.8em;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .feature-item-title {
        font-size: 0.95em !important;
    }
}

/* Mobile modal improvements: full-screen, stacked inputs and full-width buttons */
@media (max-width: 768px) {
    .quote-modal, .success-modal, .video-modal {
        align-items: flex-end;
        padding: 0;
    }

    .quote-modal .quote-modal-content,
    .quote-modal-content,
    .video-modal-content,
    .success-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        padding: 18px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .quote-modal .quote-modal-close,
    .video-modal-close,
    .quote-modal-close {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 11001;
        background: rgba(255,255,255,0.95);
        border-radius: 8px;
        padding: 6px 10px;
        font-size: 22px;
    }

    .quote-form .form-row { display: block; gap: 0; }
    .quote-form .form-row .form-group { width: 100%; margin-bottom: 12px; }
    .quote-form .form-group input,
    .quote-form .form-group select,
    .quote-form .form-group textarea {
        font-size: 1rem;
        padding: 12px;
    }

    .quote-modal .quote-modal-content .form-actions {
        display: flex;
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 14px;
    }

    .quote-modal .quote-modal-content .form-actions .btn-primary,
    .quote-modal .quote-modal-content .form-actions .btn-secondary {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
    }

    /* Ensure long content has breathing room above footer */
    .quote-modal .quote-modal-content { padding-bottom: 36px; }
}