/* Dream Axis Color Palette */
:root {
    --primary-navy: #1e3a8a;
    --primary-teal: #0f766e;
    --primary-green: #059669;
    --secondary-yellow: #fbbf24;
    --secondary-red: #dc2626;
    --accent-blue: #3b82f6;
    --accent-light: #dbeafe;
    --gradient-start: #3b82f6;
    --gradient-end: #0f766e;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 50%, #ccfbf1 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.main-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-green));
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-navy));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    max-width: 400px;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-teal) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    padding: 2rem 0 4rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.hero-content {
    max-width: 100%;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.shimmer-text {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--primary-navy), var(--primary-teal), var(--primary-navy));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray);
    line-height: 1.6;
}

/* Form Section */
.form-section {
    margin-bottom: 3rem;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Welcome Note */
.welcome-note {
    position: relative;
    background-image: url('/images/truck.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
    overflow: hidden;
}

.welcome-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.75) 100%);
    z-index: 0;
}

.welcome-note > * {
    position: relative;
    z-index: 1;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.welcome-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.welcome-text:first-of-type {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-navy);
    text-align: center;
}

.welcome-text:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--black);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.label-text {
    flex: 1;
}

.label-icon {
    font-size: 1.2rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-fields {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--border-color);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-specific-fields {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.form-section-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0 0.75rem;
    padding: 0.75rem 0;
}

.form-section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.divider-text {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-error {
    color: var(--secondary-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

/* Privacy Policy Section */
.privacy-policy-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--border-color);
}

.consent-checkbox-group {
    margin-top: 0.5rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.consent-label:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
}

.consent-checkbox {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    accent-color: var(--accent-blue);
    flex-shrink: 0;
}

.consent-checkbox:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.consent-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
    flex: 1;
    user-select: none;
}

.consent-text strong {
    color: var(--secondary-red);
}

.privacy-policy-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: underline;
    text-decoration-color: var(--accent-blue);
    text-underline-offset: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.privacy-policy-link:hover {
    color: var(--primary-navy);
    text-decoration-color: var(--primary-navy);
    text-shadow: 0 0 12px rgba(30, 58, 138, 0.4);
    transform: scale(1.05);
}

.privacy-policy-link:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Privacy Policy Modal */
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.privacy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.privacy-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-teal));
    color: white;
}

.privacy-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    padding: 0;
}

.privacy-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.privacy-modal-close svg {
    width: 24px;
    height: 24px;
}

.privacy-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.privacy-modal-body::-webkit-scrollbar {
    width: 10px;
}

.privacy-modal-body::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 5px;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
    background: var(--text-gray);
    border-radius: 5px;
}

.privacy-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-dark);
}

.privacy-policy-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.privacy-policy-text p {
    margin-bottom: 1rem;
}

.privacy-policy-text p:last-child {
    margin-bottom: 0;
}

.privacy-policy-text strong {
    color: var(--primary-navy);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.privacy-policy-text a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.privacy-policy-text a:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}

.privacy-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    background: var(--bg-light);
}

.privacy-modal-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.privacy-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.privacy-modal-btn:active {
    transform: translateY(0);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .privacy-modal-content {
        max-width: 100%;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .privacy-modal-header,
    .privacy-modal-body,
    .privacy-modal-footer {
        padding: 1.25rem 1.5rem;
    }
    
    .privacy-modal-title {
        font-size: 1.25rem;
    }
}

/* Submit Button */
.form-submit-container {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
}

.submit-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.button-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-button:hover .button-arrow {
    transform: translateX(4px);
}

.submit-button.loading .button-text::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Form Messages */
.form-message {
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    margin-top: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* Info Section */
.info-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.info-cards-wrapper {
    position: relative;
    width: 100%;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Carousel Navigation Dots */
.carousel-dots {
    display: none;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.carousel-dot:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--accent-blue);
    transform: scale(1.2);
}

.carousel-dot:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-teal));
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    opacity: 0.8;
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .form-container {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .main-content-wrapper {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    /* Mobile Carousel Styles */
    .info-cards-wrapper {
        overflow: hidden;
        position: relative;
    }

    .info-cards {
        display: flex;
        grid-template-columns: none;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        scroll-behavior: smooth;
    }

    .info-cards::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .info-card {
        min-width: 100%;
        flex-shrink: 0;
        margin-right: 0;
        scroll-snap-align: center;
    }

    .carousel-dots {
        display: flex;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .submit-button {
        width: 100%;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.25rem;
    }

    .form-input,
    .form-select {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .logo {
        height: 80px;
        max-width: 250px;
    }
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.form-input:focus,
.form-select:focus,
.submit-button:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .background-animation,
    .header,
    .footer {
        display: none;
    }

    .form-container {
        box-shadow: none;
        border: 1px solid #000;
    }
}

