/* ================================
   THIÊN PHÚC LIMOUSINE - Main CSS
   ================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --accent-color: #c9a961;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --bg-light: #f8f8f8;
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #aa8c2e 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

#header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav li {
    position: relative;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 10px 0;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Submenu */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block !important;
    padding: 10px 0;
    border-radius: 10px;
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    display: block;
    margin: 0;
}

.sub-menu a {
    padding: 12px 25px;
    white-space: nowrap;
    color: var(--text-dark);
}

.sub-menu a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

/* Active Menu Items */
nav li.active > a {
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
}

nav li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px 3px 0 0;
}

.sub-menu li.active > a {
    background: var(--bg-light);
    color: var(--secondary-color);
    font-weight: 600;
}

.sub-menu li.active > a::after {
    display: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

/* Contact Form 7 styling to match theme */
.contact-form-box .wpcf7-form {
    display: block;
}
.contact-form-box .wpcf7-form p {
    margin: 0 0 18px 0;
}
.contact-form-box .wpcf7-form label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.contact-form-box .wpcf7-form input[type="text"],
.contact-form-box .wpcf7-form input[type="email"],
.contact-form-box .wpcf7-form input[type="tel"],
.contact-form-box .wpcf7-form select,
.contact-form-box .wpcf7-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e7e7e7;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    background: #fff;
}
.contact-form-box .wpcf7-form textarea { resize: vertical; }

.contact-form-box .wpcf7-submit {
    width: 100%;
    background: var(--gradient-gold) !important;
    color: #fff;
    height: 54px;
    padding: 0 24px;
    border: none;
    border-radius: 10px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(212,175,55,0.2);
    transition: transform .15s ease, box-shadow .15s ease, filter .2s;
}
.elementor-kit-7 .contact-form-box .wpcf7-submit { background: var(--gradient-gold) !important; border-radius: 10px !important; }
.contact-form-box .wpcf7-submit:hover {
    filter: brightness(0.97);
    box-shadow: 0 8px 20px rgba(212,175,55,0.28);
}
.contact-form-box .wpcf7-submit:active {
    transform: translateY(1px);
}
.contact-form-box .wpcf7-spinner { display: inline-block; margin-left: 10px; }

.contact-form-wrapper h2 { margin-bottom: 10px; }
.contact-form-wrapper p + .contact-form-box { margin-top: 10px; }

/* Visual polish to match card design */
.contact-form-box {
    border-radius: 20px !important;
    background: #f6f6f6 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.contact-form-box .wpcf7-form input:focus,
.contact-form-box .wpcf7-form select:focus,
.contact-form-box .wpcf7-form textarea:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

.contact-form-box .wpcf7-form ::placeholder { color: #999; }

/* Compact form for sidebar */
details .contact-form-box {
    background: white !important;
    padding: 15px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

details .contact-form-box .wpcf7-form input[type="text"],
details .contact-form-box .wpcf7-form input[type="email"],
details .contact-form-box .wpcf7-form input[type="tel"],
details .contact-form-box .wpcf7-form select,
details .contact-form-box .wpcf7-form textarea {
    padding: 10px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
}

details .contact-form-box .wpcf7-form p {
    margin: 0 0 12px 0 !important;
}

details .contact-form-box .wpcf7-form label {
    font-size: 0.9rem !important;
    margin-bottom: 5px !important;
}

details .contact-form-box .wpcf7-submit {
    height: 44px !important;
    font-size: 0.95rem !important;
    padding: 0 20px !important;
    border-radius: 8px !important;
}

/* Contact Modal Popup */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.active {
    display: flex !important;
    opacity: 1;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.contact-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-close {
    transition: all 0.3s;
}

.contact-modal-close:hover {
    color: #d4af37 !important;
    transform: rotate(90deg);
}

.contact-modal-content .contact-form-box {
    margin-top: 0;
}

/* Responsive modal */
@media (max-width: 768px) {
    .contact-modal-content {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .contact-modal-content h2 {
        font-size: 1.5rem !important;
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26,26,26,0.8), rgba(26,26,26,0.6)), url('https://carvip.com.vn/wp-content/uploads/2025/08/kia-carnival-limousine.webp') center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 20px 60px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.hero-feature {
    padding: 20px;
}

.hero-feature h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hero-feature p {
    font-size: 1rem;
    margin: 0;
}

/* About Section */
.about-section {
    padding: 100px 20px;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-title h2 span {
    color: var(--secondary-color);
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Fleet Section */
.fleet-section {
    padding: 100px 20px;
    background: var(--bg-light);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.fleet-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.fleet-card:hover {
    transform: translateY(-10px);
}

.fleet-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.fleet-content {
    padding: 40px;
}

.fleet-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.fleet-content .subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.fleet-content ul {
    list-style: none;
    margin: 30px 0;
}

.fleet-content li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.fleet-content li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Why Choose Us Section */
.why-section {
    padding: 100px 20px;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.feature-item h4 {
    font-size: 1.5rem;
    margin: 20px 0 15px;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Services Section */
.services-section {
    padding: 100px 20px;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.service-card h4 {
    font-size: 1.3rem;
    margin: 20px 0 15px;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 20px;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.pricing-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.pricing-card .subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.price {
    font-size: 3rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin: 30px 0;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-light);
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-card li {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.pricing-card li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 20px;
    background: var(--bg-light);
}

.faq-container {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 25px 30px;
    max-height: 500px;
}

/* Contact Form */
.contact-section {
    padding: 100px 20px;
    background: var(--white);
}

.contact-form {
    max-width: 700px;
    margin: 60px auto 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
#footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .fleet-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-features,
    .stats,
    .features-grid,
    .services-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    nav a {
        padding: 15px 0;
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f8f8;
        margin-top: 5px;
        padding: 5px 0 5px 20px;
        display: none !important;
    }
    
    .menu-item-has-children:hover .sub-menu {
        display: block !important;
    }
    
    .sub-menu li {
        border: none;
    }
    
    .sub-menu a {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    /* Active state on mobile */
    nav li.active > a::after {
        display: none;
    }
    
    nav li.active > a {
        color: var(--secondary-color);
        font-weight: 700;
    }
    
    .sub-menu li.active > a {
        background: transparent;
        color: var(--secondary-color);
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    .header-wrapper .btn-primary {
        display: none;
    }
    
    .fleet-content,
    .pricing-card {
        padding: 30px 20px;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 0 10px;
    }
}

