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

:root {
    --primary-color: #008768;
    --primary-dark: #006d52;
    --secondary-color: #1a2b49;
    --accent-blue: #1e3a8a;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-gray: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-light: #f3f4f6;
    --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);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-gray);
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.lang-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.lang-btn:not(.active) {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.lang-btn:not(.active):hover {
    background-color: var(--bg-gray);
}

.divider {
    width: 1px;
    height: 1.5rem;
    background-color: var(--border-color);
}

.language-switcher.desktop {
    display: none;
}

@media (min-width: 768px) {
    .language-switcher.desktop {
        display: flex;
    }
    .language-switcher.mobile {
        display: none;
    }
}

/* Mobile Controls */
.mobile-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mobile-controls {
        display: none;
    }
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-dark);
}

.menu-toggle i {
    font-size: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 1001;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 4rem;
}

.mobile-nav-link {
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 48rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-separator {
    opacity: 0.5;
}

.breadcrumb-current {
    color: white;
    font-weight: 500;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Form Section */
.form-section {
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .form-section {
        padding: 4rem 2rem;
    }
}

.form-container {
    max-width: 48rem;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 2rem;
}

@media (min-width: 768px) {
    .form-container {
        padding: 3rem;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .form-header h2 {
        font-size: 2.25rem;
    }
}

.form-description {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Customize Form */
.customize-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-label::after {
    content: '*';
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-label:not([for*="*"])::after {
    content: none;
}

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

.form-input:focus,
.form-textarea:focus,
.select-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 135, 104, 0.1);
}

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

.date-input {
    color: var(--text-dark);
}

.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.select-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

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

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid.three-column {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Form Submission */
.form-submit {
    text-align: center;
    margin-top: 1rem;
}

.submit-btn {
    background-color: var(--primary-dark);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 3rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.submit-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Why Customize Section */
.why-section {
    padding: 4rem 1rem;
    background-color: var(--bg-white);
}

@media (min-width: 768px) {
    .why-section {
        padding: 5rem 2rem;
    }
}

.why-content {
    max-width: 72rem;
    margin: 0 auto;
}

.why-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .why-title {
        font-size: 3rem;
    }
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.why-card {
    background-color: var(--bg-gray);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.why-icon i {
    font-size: 1.5rem;
}

.why-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    margin-bottom: 0.5rem;
}

.contact-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    display: block;
    line-height: 1.5;
}

.contact-value:hover {
    color: white;
}

.footer-column h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-links li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

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

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-links i {
    font-size: 1.25rem;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: #60a5fa;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #93c5fd;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Form Validation Styles */
.form-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #10b981;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

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