/* Contact Page Styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.page-wrapper {
    min-height: auto;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/cover.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    height: auto;
    margin-bottom: 0;
}

.hero-section::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-container {
    display: flex;
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
    gap: 0;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form-section {
    flex: 1;
}

.contact-info-section {
    flex: 1;
    background: #000000;
    color: white;
}

.contact-info-section .section-title,
.contact-info-section .contact-text p,
.contact-info-section i {
    color: white;
}

.section-title {
    color: #000000;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-primary);
    transition: width 0.4s ease, background-color 0.3s ease;
}

.section-title:hover {
    color: #333333;
}

.section-title:hover::after {
    width: 270px;
    background-color: var(--accent-primary);
}

.contact-info-section .section-title {
    color: #ffffff;
}

.contact-info-section .section-title::after {
    background-color: var(--accent-primary);
}

.contact-info-section .section-title:hover {
    color: #f0f0f0;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.form-group:hover label {
    color: #000000;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 5px rgba(108, 117, 125, 0.3);
    outline: none;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #999;
}

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

.required-field {
    color: red;
    margin-left: 4px;
}

.send-message-btn {
    background-color: #000000;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.send-message-btn:hover {
    background-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--accent-primary);
}

.send-message-btn i {
    transition: transform 0.3s ease;
}

.send-message-btn:hover i {
    transform: translateX(5px);
    color: var(--accent-primary);
}

/* Contact Information Styles */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.2em;
    width: 40px;
    height: 40px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.contact-item i:hover {
    transform: scale(1.1);
    background-color: #444444;
}

.contact-text p {
    margin: 5px 0;
    font-size: 1.1em;
}

.contact-text .email-link,
.contact-text .phone-link,
.contact-text .map-link {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.contact-text .email-link {
    font-size: 1.3em;
}

.contact-text .email-link:hover,
.contact-text .phone-link:hover,
.contact-text .map-link:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.contact-text .email-link::after,
.contact-text .phone-link::after,
.contact-text .map-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.contact-text .email-link:hover::after,
.contact-text .phone-link:hover::after,
.contact-text .map-link:hover::after {
    width: 100%;
}

.contact-text .map-link p {
    margin: 5px 0;
}

/* Map Styles */
.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
    width: 100%;
    background-color: #f5f5f5;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-container:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

/* Styles for Google Maps info window */
.gm-style .gm-style-iw-c {
    padding: 12px !important;
    border-radius: 6px !important;
}

.info-window {
    padding: 5px;
    max-width: 250px;
}

.info-window h3 {
    color: #000000;
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
}

.info-window p {
    color: #333333;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.directions-link {
    display: inline-block;
    background-color: #333333;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.directions-link:hover {
    background-color: var(--accent-primary);
    color: #000000;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form-section,
    .contact-info-section {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2em;
    }
    
    .contact-container {
        padding: 15px;
        gap: 30px;
    }
}

/* Car Booking Styles */
.car-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.car-option {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.car-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.car-option label {
    font-weight: normal;
    cursor: pointer;
    transition: color 0.3s ease;
}

.car-option:hover label {
    color: #333333;
    transform: translateX(3px);
}

.booking-dates, .booking-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input[type="date"],
input[type="time"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    transition: all 0.3s ease;
}

input[type="date"]:focus,
input[type="time"]:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 5px rgba(108, 117, 125, 0.3);
    outline: none;
}

input[type="date"]:hover,
input[type="time"]:hover {
    border-color: #999;
}

@media (max-width: 768px) {
    .booking-dates, .booking-times {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Fix: Prevent Horizontal Scroll on Contact Us Page --- */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
  }
  .contact-container {
    flex-direction: column;
    max-width: 100vw;
    width: 100vw;
    box-sizing: border-box;
    padding: 15px;
    gap: 20px;
  }
  .card,
  .contact-form-section,
  .contact-info-section {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
  }
  .map-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
  }
  
  /* Form fields mobile optimization */
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px;
  }
  
  /* Adjust car options for mobile */
  .car-options {
    padding: 10px 0;
  }
  
  .car-option {
    padding: 8px 0;
  }
  
  /* Adjust date and time inputs for mobile */
  .booking-dates,
  .booking-times {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  input[type="date"],
  input[type="time"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Adjust button for mobile */
  .send-message-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
  }
  
  /* Adjust section titles for mobile */
  .section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  
  /* Adjust contact details for mobile */
  .contact-details {
    padding: 0 10px;
  }
  
  .contact-item {
    margin-bottom: 15px;
  }
}
