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

:root {
    /* Colors - Gold Company Theme */
    --primary-color: #fbb900;
    --primary-dark: #d9a000;
    --primary-light: #ffc733;
    --accent-color: #fbb900;
    --accent-dark: #d9a000;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --bg-gray-900: #111827;
    
    --border-color: #e5e7eb;
    --border-focus: #3b82f6;
    
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

p {
    margin-bottom: var(--space-4);
}

.text-accent {
    color: var(--accent-color);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: fit-content;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-brand h2 {
    color: var(--primary-color);
    margin-bottom: 0;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu - Desktop/Tablet */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-link {
    display: block;
    padding: var(--space-4) 0;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
    color: var(--primary-color);
    background-color: var(--bg-gray-50);
    padding-left: var(--space-2);
}

/* Hero Section */
.hero {
    padding: calc(80px + var(--space-20)) 0 var(--space-20);
    background: linear-gradient(135deg, var(--bg-gray-50) 0%, var(--bg-white) 100%);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color)10, transparent 70%);
    opacity: 0.05;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background-color: var(--accent-color);
    color: var(--text-white);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Details Section */
.details {
    padding: var(--space-20) 0;
    background-color: var(--bg-white);
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.detail-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: var(--font-size-2xl);
}

.detail-card h3 {
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.detail-card ul {
    list-style: none;
    text-align: left;
}

.detail-card li {
    position: relative;
    padding: var(--space-2) 0 var(--space-2) var(--space-6);
    color: var(--text-secondary);
}

.detail-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Application Section */
.application {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--bg-gray-50) 0%, var(--bg-white) 100%);
    position: relative;
    z-index: 1;
}

.application-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    align-items: start;
}

.application-info {
    position: sticky;
    top: 100px;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-color);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-lg);
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}

/* Form Styles */
.application-form {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: var(--space-10);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-8);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-6);
    font-size: var(--font-size-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all 0.2s ease;
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-gray-50);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.file-upload input:focus + .file-upload-label {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: var(--space-6);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    font-size: var(--font-size-base);
    line-height: 1.6;
    padding: var(--space-2) 0;
    width: 100%;
}

.checkbox-text {
    flex: 1;
    line-height: 1.5;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.checkbox-label input:checked + .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-white);
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-label input:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--primary-light);
}

.checkbox-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: var(--primary-dark);
}

/* Form Actions */
.form-actions {
    margin-top: var(--space-8);
    text-align: center;
}

/* Location Section */
.location {
    padding: var(--space-20) 0;
    background-color: var(--bg-white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    align-items: start;
}

.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.location-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.location-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.location-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}

.location-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.location-card a:hover {
    text-decoration: underline;
}

.map-container {
    background: var(--bg-gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

#map {
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--bg-gray-900);
    color: var(--text-white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-info h3 {
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.footer-info p {
    color: var(--text-light);
}

.footer-contact h4 {
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-light);
    margin-bottom: var(--space-2);
}

.footer-contact i {
    width: 16px;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 10% auto;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-6);
    font-size: var(--font-size-2xl);
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Success/Error Messages */
.message-success {
    background-color: var(--success-color);
    color: var(--text-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
}

.message-error {
    background-color: var(--error-color);
    color: var(--text-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
}

/* Form Validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-color);
}

.form-group.error .error-message {
    color: var(--error-color);
    font-size: var(--font-size-xs);
    margin-top: var(--space-1);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .application-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .application-info {
        position: static;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .location-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-actions {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav {
        padding: var(--space-3) var(--space-4);
        min-height: 60px;
    }
    
    .nav-brand .logo {
        height: 35px;
        max-width: 180px;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Ensure mobile menu is properly positioned */
    .mobile-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 999;
        background-color: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        padding: var(--space-4);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Mobile Typography */
    :root {
        --font-size-4xl: 2rem;
        --font-size-5xl: 2.5rem;
    }
    
    .container {
        padding: 0 var(--space-3);
    }
    
    /* Mobile Hero Section */
    .hero {
        padding: calc(60px + var(--space-8)) 0 var(--space-8);
        overflow-x: hidden;
    }
    
    .hero .container {
        padding: 0 var(--space-4);
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        margin-bottom: var(--space-4);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-6);
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
    }
    
    .hero-actions .btn-large {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: var(--space-4) var(--space-4);
        font-size: var(--font-size-base);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Mobile Hero Badge */
    .hero-badge {
        display: inline-block;
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-4);
        word-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Mobile Cards */
    .hero-visual {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-card {
        padding: var(--space-4);
        transform: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    .hero-card:hover {
        transform: none;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
        width: 100%;
    }
    
    .stat {
        text-align: center;
        min-width: 0;
    }
    
    .stat-number {
        font-size: var(--font-size-xl);
        display: block;
        word-wrap: break-word;
    }
    
    .stat-label {
        font-size: var(--font-size-xs);
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    /* Mobile Details */
    .details-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .detail-card {
        padding: var(--space-6);
    }
    
    .detail-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-xl);
    }
    
    /* Mobile Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .application-form {
        padding: var(--space-6);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-4) var(--space-3);
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .file-upload-label {
        padding: var(--space-6) var(--space-4);
        font-size: var(--font-size-sm);
    }
    
    /* Mobile Buttons */
    .btn-primary,
    .btn-secondary {
        padding: var(--space-4) var(--space-6);
        font-size: var(--font-size-base);
        min-height: 48px; /* Better touch target */
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .btn-large {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        min-height: 52px;
        box-sizing: border-box;
    }
    
    /* Mobile Location */
    .location-info {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .location-card {
        padding: var(--space-5);
    }
    
    #map {
        height: 300px;
    }
    
    /* Mobile Modal */
    .modal-content {
        margin: 5% auto;
        padding: var(--space-6);
        width: 95%;
    }
    
    /* Mobile Footer */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer-content {
        gap: var(--space-6);
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .container {
        padding: 0 var(--space-2);
    }
    
    .nav {
        padding: var(--space-3) var(--space-2);
        min-height: 56px;
    }
    
    .nav-brand .logo {
        height: 30px;
        max-width: 150px;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu {
        top: 56px;
        padding: var(--space-3);
    }
    
    .mobile-menu-link {
        padding: var(--space-3) 0;
        font-size: var(--font-size-sm);
        min-height: 44px;
    }
    
    .hero-badge {
        font-size: var(--font-size-xs);
        padding: var(--space-1) var(--space-3);
    }
    
    .hero {
        padding: calc(56px + var(--space-8)) 0 var(--space-8);
        overflow-x: hidden;
    }
    
    .hero .container {
        padding: 0 var(--space-2);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-actions .btn-large {
        padding: var(--space-3) var(--space-3);
        font-size: var(--font-size-sm);
    }
    
    .hero-card {
        padding: var(--space-3);
        margin: 0;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
    }
    
    .stat-number {
        font-size: var(--font-size-lg);
    }
    
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: var(--font-size-lg);
    }
    
    .details,
    .application,
    .location {
        padding: var(--space-12) 0;
    }
    
    .application-form {
        padding: var(--space-4);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-3);
        font-size: 16px;
    }
    
    .file-upload-label {
        padding: var(--space-4);
        font-size: var(--font-size-xs);
    }
    
    .btn-primary,
    .btn-secondary {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-sm);
        min-height: 44px;
    }
    
    .btn-large {
        padding: var(--space-4) var(--space-5);
        font-size: var(--font-size-base);
        min-height: 48px;
    }
    
    .detail-card {
        padding: var(--space-5);
    }
    
    .detail-icon {
        width: 45px;
        height: 45px;
        font-size: var(--font-size-lg);
    }
    
    .location-card {
        padding: var(--space-4);
    }
    
    .location-card h3 {
        font-size: var(--font-size-base);
    }
    
    .location-card p {
        font-size: var(--font-size-xs);
    }
    
    #map {
        height: 250px;
    }
    
    .modal-content {
        margin: 2% auto;
        padding: var(--space-4);
        width: 98%;
    }
    
    .footer {
        padding: var(--space-10) 0 var(--space-4);
    }
    
    .footer-content {
        gap: var(--space-4);
    }
    
    .footer-info h3,
    .footer-contact h4 {
        font-size: var(--font-size-lg);
    }
    
    .footer-contact p {
        font-size: var(--font-size-sm);
    }
}

/* Touch and Mobile Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    .detail-card:hover {
        transform: none;
    }
    
    .location-card:hover {
        transform: none;
    }
    
    .hero-card:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .checkbox-custom {
        width: 24px;
        height: 24px;
    }
    
    .file-upload-label {
        min-height: 60px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: calc(60px + var(--space-8)) 0 var(--space-8);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-4);
    }
    
    .hero-actions {
        flex-direction: row;
        gap: var(--space-3);
    }
    
    .hero-actions .btn-large {
        width: auto;
        flex: 1;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-secondary: #000;
        --bg-gray-50: #fff;
    }
}

/* Dark mode preparation (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here later */
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve text readability on mobile */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Better focus states for mobile */
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Improve button focus states */
    .btn-primary:focus,
    .btn-secondary:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Better mobile scrolling */
    .hero,
    .details,
    .application,
    .location {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better mobile form validation */
    .form-group.error input,
    .form-group.error select,
    .form-group.error textarea {
        border-width: 2px;
    }
    
    /* Mobile-friendly file upload */
    .file-upload input[type="file"] {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Better mobile modal */
    .modal {
        padding: var(--space-4);
    }
    
    .modal-content {
        border-radius: var(--radius-lg);
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .hero-card {
        transition: none;
    }
    
    .detail-card,
    .location-card {
        transition: box-shadow 0.2s ease;
    }
    
    /* Optimize shadows for mobile */
    .hero-card,
    .application-form,
    .modal-content {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}
