:root {
    --primary-color: rgba(88, 177, 236, 0.8);
    --primary-dark: rgb(7, 83, 245);
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.12);
    --border-radius: 8px;
    --border-radius-small: 6px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary-color);
}

.main-content{
    overflow-x: hidden !important;
}

/* Header Section */
.contact-header {
    position: relative;
    padding: 4rem 1rem;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    background-image: url('../images/contact/contact_background.jpg');
    justify-content: center;
}

.contact-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    rgba(38, 40, 44, 0.8),
    rgba(25, 22, 37, 0.8)
  );
  z-index: 1;
}

.contact-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 1200px;
  padding: 0 1rem;
  width: 100%;
}

.contact-header-content h1 {
  font-weight: 700;
  color: white;
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: -0.02em;
}

.contact-header-content p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-top: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Breadcrumb */
.custom-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem auto;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    max-width: 90%;
    list-style: none;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-breadcrumb .breadcrumb-item {
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    font-weight: 500;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
    font-size: 1.2em;
}

.custom-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.custom-breadcrumb .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

/* Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Form Section */
.contact-form-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.contact-form-section:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* Contact Info Section */
.contact-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: fit-content;
    margin-top: 150px;
}

.contact-info-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(55, 95, 224, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-info-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: rgb(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(55, 95, 224, 0.3);
}

.contact-info-item h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-info-item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Form Styling */
.card-header {
    background: linear-gradient(130deg, var(--primary-color), var(--primary-dark));
    color: rgb(255, 255, 255);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.card-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 2;
}

.card-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.card-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-small);
    background-color: white;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(55, 95, 224, 0.1);
}

.form-control.textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: rgb(255, 255, 255);
    box-shadow: 0 4px 15px rgba(55, 95, 224, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(55, 95, 224, 0.4);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Google Map Section */
.map-section {
  margin-top: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.map-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.map-container {
  position: relative;
  width: 80%;
  max-width: 1400px;
  margin: 0 auto;
  height: 450px; /* Increased height for better visibility */
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  margin-bottom:0.5rem;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive Map */
/* Tablet */
@media (max-width: 1024px) {
  .map-container {
    width: 95%;
    height: 400px;
  }
}
/* Mobile */
@media (max-width: 768px) {
  .map-container {
    width: 100%;
    height: 350px;
  }

  .map-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .map-container {
    width: 100%;
    height: 300px;
  }
}

/* Blog Section */
.blog-section {
    padding: 3rem 2rem;
    text-align: center;
    /* background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); */
    margin-top: 0 !important;
}

.blog-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 600;
}

.blog-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.blog-card {
    background-color: #fff;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 18rem;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.blog-card .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1rem;
}

.blog-card .card-body h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
}

.blog-card .card-text {
    font-size: 0.9rem;
    color: #777;
}

.blog-card .card-body a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: #3e414b;
  font-weight: 400;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  margin-top: 0.5rem;
}

.blog-card .card-body a:hover,
.blog-card .card-body a:focus {
  color: #003cff;
}

.blog-card .card-body a i {
  transition: transform 0.2s;
}
/* Brand List Section */
.vehicles-section .brand-list-section {
    background-color: #cecbcb;
    padding: 30px 0;
    border-radius: 20px;
    margin: 20px 0;
    text-align: center;
}

.vehicles-section .brand-list-section ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vehicles-section .brand-list-section ul li {
    flex: 0 1 auto;
}

.vehicles-section .brand-list-section ul li img {
    max-width: 300px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    margin-left: 50px;
}

.vehicles-section .brand-list-section ul li img:hover {
    transform: scale(1.1);
}

/* Styling for the meeting booking card */
.meeting-book {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    margin-top: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(55, 95, 224, 0.1);
    margin:80px;
}

.meeting-book:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.meeting-book h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.meeting-details p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.meeting-details p i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.meeting-details .form-group {
    margin-bottom: 1rem;
}

/* --- Responsive Adjustments --- */
/* Media query for tablets and mobile devices */
@media (max-width: 1024px) {
    /* Ensures the meeting booking section is full width on tablets */
    .contact-info-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Specific adjustments for smaller mobile screens */
@media (max-width: 768px) {
    .meeting-book {
        width: 100%; /* Makes the card full-width on mobile */
        max-width: 100%;
        margin: 1rem auto;
        padding: 1rem;
    }

    .map-section {
        padding: 0 1rem;
        margin:20px;/* Aligns map with the content */
    }
}

/* Adjustments for larger tablets and desktops to match the map's width */
@media (min-width: 769px) and (max-width: 1200px) {
    .meeting-book {
        max-width: 95%; /* Matches the map container's width at this breakpoint */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-section {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    .contact-header {
        background-attachment: fixed;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 0.5rem;
    }

    .contact-info-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-info-item {
        padding: 1rem;
    }

    .contact-info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-header-content h1 {
        font-size: 2rem;
    }

    .card-body {
        padding: 1rem;
    }

    .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .contact-info-item {
        padding: 0.75rem;
    }

    .blog-section {
        padding: 2rem 1rem;
    }

    .blog-card {
        width: 100%;
        max-width: 280px;
    }
}
