/* Global Reset & Base Styles */
:root {
    --bg-dark: #020405;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-green: #00ff88;
    --grid-color: rgba(0, 255, 136, 0.15);
    --card-bg: #0a0c0e;
    --input-bg: #111316;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-green);
}

.text-muted {
    color: #6b7280;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    padding-top: 140px;
    /* Adjusted padding */
    overflow: hidden;
    display: block;
    /* Standard block flow */
}

/* Grid Background */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center top;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    opacity: 0.6;
}

/* Container Override */
.hero-section .container {
    display: block;
    /* Remove flex centering */
    min-height: auto;
}

/* Back Link - Flow Layout */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 6rem;
    /* Large gap before title */
    position: relative;
}

.back-link:hover {
    transform: translateX(-5px);
    text-decoration: underline;
}

/* Hero Content */
.hero-content {
    margin-top: 0;
    margin-bottom: 4rem;
    text-align: center;
    /* Center the text block */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 
   ---------------------------
   Contact Content Section 
   ---------------------------
*/
.contact-content-section {
    padding: 4rem 0 4rem;
    /* Reduced from 8rem */
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #0B0F0E 0%, #121212 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

/* Sidebar Cards */
.info-card {
    background: linear-gradient(180deg, #0B0F0E 0%, #121212 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.business-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    vertical-align: middle;
    object-fit: contain;
}

.info-text .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.info-text p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Hours */
.hours-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.hours-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Quick Links */
.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 1rem;
}

.quick-links li:last-child {
    margin-bottom: 0;
}

.quick-links a {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.95rem;
}

.quick-links a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-green);
}

.quick-links .arrow {
    color: var(--accent-green);
    font-weight: bold;
}

/* Contact Form */
.contact-form-wrapper {
    background: linear-gradient(180deg, #0B0F0E 0%, #121212 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.contact-form-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.required {
    color: var(--accent-green);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-green);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #00cc6a;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

/* Base Primary Button Style */
.btn-primary {
    background: var(--accent-green);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #00cc6a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.form-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

/* 
   ---------------------------
   Visit Our Office Section 
   ---------------------------
*/
.visit-office-section {
    padding: 4rem 0 2rem;
    /* Reduced from 8rem bottom */
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.map-container {
    height: 100%;
    /* Match the height of the right column */
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-card,
.landmarks-card {
    background: linear-gradient(180deg, #0B0F0E 0%, #121212 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.icon-circle-small {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed background and border */
}

.icon-circle-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.location-card h3,
.landmarks-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
}

.address-text {
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.btn-get-directions {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-get-directions:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.1);
}

.btn-get-directions .chevron {
    margin-left: 1.5rem;
    font-size: 1.4rem;
    line-height: 1;
}

.landmarks-card {
    height: 100%;
}

.landmark-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.landmark-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.landmark-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

/* Footer Placeholder Fix */
#footer-placeholder {
    margin-top: auto;
}

/* 
   ---------------------------
   Final CTA Section 
   ---------------------------
*/
.final-cta-section {
    padding: 1rem 0 4rem;
    /* Reduced top padding from 2rem to 1rem */
    background: #020405;
    /* Black background */
}

.final-cta-section .cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.final-cta-section .cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.btn-outline-green {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-outline-green:hover {
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-2px);
}

/* Responsive adjustment for CTA */
@media (max-width: 768px) {
    .final-cta-section .cta-title {
        font-size: 2.25rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .contact-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container {
        height: 350px;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 120px;
        min-height: auto;
    }

    .back-link {
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-content-section {
        padding: 2rem 0;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-form-wrapper h2 {
        font-size: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .visit-office-section {
        padding: 3rem 0;
    }

    .visit-grid {
        margin-top: 2rem;
    }

    .location-card,
    .landmarks-card {
        padding: 1.5rem;
    }

    .address-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn-get-directions {
        width: 100%;
        justify-content: center;
    }
}


/* 
   ---------------------------
   Modal Styles 
   ---------------------------
*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #0B0F0E;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-form .form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.modal-form .form-group input:focus,
.modal-form .form-group select:focus,
.modal-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    background: rgba(255, 255, 255, 0.05);
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.my-1 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Fix select dropdown options */
.modal-form .form-group select option {
    background-color: #0B0F0E;
    color: var(--text-primary);
}

/* File Input Styling */
.modal-form .form-group input[type="file"] {
    line-height: 1.5;
}

.modal-form .form-group input[type="file"]::file-selector-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-right: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.modal-form .form-group input[type="file"]::file-selector-button:hover {
    background: var(--accent-green);
    color: #000;
}

/* Ensure standard padding for phone input, overriding any previous left-padding */
.form-group input[type="tel"] {
    padding-left: 1rem !important;
}