* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Shine Effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, rgba(11, 11, 22, 0) 50%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: sticky;
    top: 0;
    background: rgba(11, 11, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero */
.hero {
    text-align: center;
    padding: 120px 24px 100px;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 70%);
}

.hero-logo-text {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    display: inline-block;
}

.hero-headline {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 16px auto;
    max-width: 800px;
    background: linear-gradient(to right, #fff, #b6b6d3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Preview */
.services-preview {
    padding: 80px 5%;
}

.services-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 48px;
}

.card-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Make cards work as links */
a.card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

a.card:visited {
    color: inherit;
}

a.card:focus {
    outline: 2px solid rgba(236, 72, 153, 0.5);
    outline-offset: 2px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    stroke: #8b8bb3;
    /* Default text color or specific color */
    color: #8b8bb3;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    stroke: #ec4899;
    /* Pink from branding */
    color: #ec4899;
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Page Hero (for Services, About, Contact pages) */
.page-hero {
    text-align: center;
    padding: 120px 24px 80px;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 70%);
}

.page-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #b6b6d3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.page-hero-content p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Page */
.services-section {
    padding: 80px 5%;
    background: transparent;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    width: 100%;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 100px; /* Account for sticky navbar */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: #8b8bb3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.service-card:hover .service-icon {
    color: #ec4899;
    transform: scale(1.1);
}

.service-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.service-features li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ec4899;
    font-weight: 700;
}

/* About Page */
.about-section {
    padding: 80px 5%;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content {
    margin-bottom: 64px;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.value-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.value-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    color: var(--text-secondary);
    padding: 16px 0;
    padding-left: 32px;
    position: relative;
    line-height: 1.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ec4899;
    font-weight: 700;
}

.features-list li strong {
    color: var(--text-primary);
}

/* Contact Page */
.contact-section {
    padding: 80px 5%;
}

.contact-section .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-section .contact-form-wrapper {
    text-align: left;
}

.contact-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #b6b6d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.contact-section .contact-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ec4899;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form .form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact-form .form-group input:hover,
.contact-form .form-group textarea:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: rgba(236, 72, 153, 0.6);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15), 0 4px 12px rgba(236, 72, 153, 0.1);
    transform: translateY(-1px);
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: 80px 5%;
    text-align: center;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1), transparent 70%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 48px 0;
    margin-top: 48px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ec4899;
}

/* CTA Buttons */
.cta-btn {
    padding: 16px 36px;
    border-radius: 999px;
    border: none;
    background: var(--gradient-cta);
    background-size: 200% auto;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-position 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.4);
    background-position: right center;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
    flex-shrink: 0;
    position: relative;
}

/* Add a pseudo-element to increase touch target area without affecting visuals */
.hamburger-btn::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
}

.bar {
    width: 100%;
    height: 4px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

/* Hamburger Animation State */
.hamburger-btn.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(25px);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-25px);
}

/* Mobile Menu */
.nav-menu-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: rgba(11, 11, 22, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nav-link-mobile {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    color: var(--gradient-brand);
}

/* Responsive */
@media (max-width: 800px) {
    .navbar {
        padding: 16px 20px;
    }

    /* Hide nav menu on mobile by default - positioned off-screen */
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 420px;
        height: 100vh;
        background: rgba(11, 11, 22, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 80px 32px 32px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    /* Show nav menu when active - slides in from right */
    .nav-menu.active {
        transform: translateX(0);
    }
    
    /* Backdrop overlay when menu is open - created via JavaScript */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1040;
        pointer-events: auto;
        animation: fadeIn 0.3s ease forwards;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .nav-menu .nav-link {
        font-size: 1.25rem;
        color: var(--text-primary);
        padding: 16px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: color 0.3s ease, padding-left 0.3s ease;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: #fff;
        padding-left: 8px;
    }
    
    .nav-menu .nav-link::after {
        display: none;
    }
    
    .nav-menu .cta-btn {
        margin-top: 24px;
        width: 100%;
        text-align: center;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .card {
        width: 100%;
    }

    .nav-menu-mobile.active {
        display: flex;
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link-mobile {
        font-size: 1.5rem;
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .nav-link-mobile:hover {
        color: var(--gradient-brand);
    }

    .cta-btn-mobile {
        padding: 16px 36px;
        border-radius: 999px;
        border: none;
        background: var(--gradient-cta);
        background-size: 200% auto;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.3s, box-shadow 0.3s, background-position 0.3s;
    }

    .hamburger-btn {
        display: flex;
        width: 44px;
        height: 36px;
    }

    .hamburger-btn .bar {
        height: 4px;
    }

    .hamburger-btn.active .bar:nth-child(1) {
        transform: rotate(45deg) translateY(22px);
    }
    
    .hamburger-btn.active .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger-btn.active .bar:nth-child(3) {
        transform: rotate(-45deg) translateY(-22px);
    }

    /* Page Hero Responsive */
    .page-hero {
        padding: 80px 24px 60px;
    }

    .page-hero-content h1 {
        font-size: 2.5rem;
    }

    .page-hero-content p {
        font-size: 1.1rem;
    }

    /* Services Page Responsive */
    .services-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }

    .service-card h2 {
        font-size: 1.5rem;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* About Page Responsive */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    /* Contact Page Responsive */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .contact-form-wrapper h2 {
        font-size: 1.75rem;
    }

    /* Contact Section Responsive */
    .contact-section {
        padding: 60px 24px;
    }

    .contact-section h2 {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }

    /* CTA Section Responsive */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Quote Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    position: relative;
    background: rgba(11, 11, 22, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.15), transparent 70%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: rotate(90deg) scale(1.05);
}

.modal-content {
    padding: 48px 40px 40px;
    position: relative;
    z-index: 1;
    min-height: min-content;
    display: flex;
    flex-direction: column;
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.6;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(236, 72, 153, 0.6);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15), 0 4px 12px rgba(236, 72, 153, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
}

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

.form-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    margin-top: -8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: none;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.modal-submit {
    margin-top: 16px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 999px;
    border: none;
    background: var(--gradient-cta);
    background-size: 200% auto;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    min-height: 52px;
}

.modal-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.4);
    background-position: right center;
}

.modal-submit:active:not(:disabled) {
    transform: translateY(0);
}

.modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background-position: left center;
}

.submit-text {
    display: inline-block;
}

.submit-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Success/Failure Message */
.modal-message {
    text-align: center;
    padding: 32px 0;
    animation: fadeInUp 0.4s ease;
}

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

.message-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
}

.success-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.failure-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.message-icon svg {
    width: 40px;
    height: 40px;
}

.modal-message h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-success h3 {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-failure h3 {
    color: #ef4444;
}

.modal-message p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.message-close-btn {
    min-width: 200px;
}

/* Responsive Modal */
@media (max-width: 600px) {
    .modal-container {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }

    .modal-content {
        padding: 40px 24px 40px;
    }
    
    .quote-form {
        padding-bottom: 16px;
    }

    .modal-content h2 {
        font-size: 1.75rem;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        font-size: 28px;
    }
}