* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #04173b;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.contact-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px 0;
}

.contact-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(4, 23, 59, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 450px 1fr;
    min-height: 550px;
    border: 1px solid rgba(4, 23, 59, 0.05);
}

/* Left Side - Contact Info */
.contact-info {
    background-color: #04173b;
    color: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.contact-info::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background-color: #eb0a29;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.contact-info > p {
    font-size: 1rem;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 400;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    transition: transform 0.2s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background-color: #eb0a29;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-item .icon i {
    font-size: 1.1rem;
    color: #fff;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-text p {
    opacity: 0.85;
    margin: 0;
    font-size: 0.95rem;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    transform: translateY(-3px);
    border-color: #eb0a29;
}

/* Right Side - Contact Form */
.contact-form {
    padding: 50px 50px;
    background: #fff;
}

.contact-form h2 {
    font-size: 2.2rem;
    color: #04173b;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #eb0a29;
    box-shadow: 0 0 0 3px rgba(235, 10, 41, 0.1);
}

.input-group input:valid,
.input-group textarea:valid {
    border-color: #04173b;
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 1rem;
    color: #6c757d;
    pointer-events: none;
    transition: all 0.3s ease;
    background: #fff;
    padding: 0 5px;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
    top: -8px;
    font-size: 0.85rem;
    color: #eb0a29;
    font-weight: 500;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background-color: #eb0a29;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #d10924;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(235, 10, 41, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-loading {
    display: none;
}

.submit-btn.loading {
    background-color: #6c757d;
    cursor: not-allowed;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline-block;
}

.notification {
    margin-top: 25px;
    padding: 18px 20px;
    border-radius: 12px;
    display: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 40px 30px;
    }
    
    .contact-form {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .form-group {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-info h2,
    .contact-form h2 {
        font-size: 1.8rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 20px 0;
    }
    
    body {
        padding: 15px;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-info h2,
    .contact-form h2 {
        font-size: 1.6rem;
    }
}

/* Additional modern touches */
.contact-wrapper {
    transition: box-shadow 0.3s ease;
}

.contact-wrapper:hover {
    box-shadow: 0 8px 40px rgba(4, 23, 59, 0.12);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: transparent;
}

/* Focus ring for accessibility */
.submit-btn:focus-visible {
    outline: 2px solid #eb0a29;
    outline-offset: 2px;
}

.social-links a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.factory-footer {
  background: #04173b;
  color: #fff;
  padding: 30px 0 20px 0;
  border-top: 6px solid #eb0a29;
  font-family: "Montserrat", Arial, sans-serif;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  gap: 20px;
}

/* Generic footer column styling */
.footer-col {
  display: flex;
  flex-direction: column;
  text-align: left; /* Consistent left alignment for all columns */
}

/* Section Headers */
.footer-col h4 {
  color: #eb0a29;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Contact Section */
.contact-col {
  flex: 0 0 34%;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.address-item, .contact-item {
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
}

.address-item i, .contact-item i {
  color: #eb0a29;
  min-width: 20px;
  margin-top: 3px;
  margin-right: 10px;
}

.address-item span {
  line-height: 1.4;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #eb0a29;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-start; /* Left-aligned social icons */
}

.social-icon {
  color: #fff;
  background: #eb0a29;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #fff;
  color: #eb0a29;
  transform: translateY(-3px);
}

/* Links Section */
.links-col {
  flex: 0 0 28%;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links li a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.footer-links li a i {
  color: #eb0a29;
  margin-right: 8px;
  font-size: 0.85rem;
}

.footer-links li a:hover {
  color: #eb0a29;
  transform: translateX(5px);
}

/* Logo Section - Refactored for consistency */
.logo-col {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Changed from center to left alignment */
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Changed from center to left alignment */
  margin-bottom: 10px;
  width: 100%;
}

.footer-logo img {
  width: 320px;
  max-width: 100%;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 15px;
  border: 2px solid #eb0a29;
}

.logo-mesa {
  padding-top: 10px;
  width: 100%;
  display: flex;
  justify-content: flex-start; /* Left-aligned logo */
}

.logo-mesa img {
  height: 100px;
  width: 200px;
  max-width: 100%;
  display: block;
  margin-bottom: 10px;
}

.footer-copyright {
  color: #c5ccdb;
  font-size: 0.85rem;
  text-align: left; /* Consistent left alignment */
  padding-top: 40px;
  width: 100%;
}

/* Media Queries - Improved for consistent alignment */
@media (max-width: 992px) {
  .footer-container {
    flex-wrap: wrap;
    justify-content: flex-start; /* Consistent left alignment when wrapping */
  }
  
  .contact-col {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
  
  .links-col, .logo-col {
    flex: 0 0 48%;
  }
  
  /* Remove extra padding on smaller screens */
  .links-col {
    padding-left: 0;
  }
  
  /* Maintain left alignment for all columns */
  .footer-col {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: stretch; /* Ensures all columns take full width */
  }
  
  .footer-col {
    width: 100%;
    margin-bottom: 30px;
    text-align: left; /* Consistent left alignment on mobile */
  }
  
  .logo-col {
    align-items: flex-start; /* Keep left alignment instead of center */
  }
  
  .logo-container {
    align-items: flex-start; /* Consistent with other elements */
  }
  
  .logo-mesa {
    justify-content: flex-start; /* Keep logo left-aligned on mobile */
  }
  
  .social-icons {
    justify-content: flex-start; /* Keep social icons left-aligned on mobile */
  }
  
  .footer-copyright {
    text-align: left; /* Keep copyright left-aligned for consistency */
  }
  
  /* Remove left padding on mobile */
  .links-col {
    padding-left: 0;
  }
}


.legal-links {
  margin-top: 78px;
  font-size: 0.8rem; /* Smaller than regular links */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.legal-links a {
  color: #c5ccdb; /* Lighter color than main links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #eb0a29;
  text-decoration: underline;
}

.legal-divider {
  margin: 0 5px;
  color: #c5ccdb;
}

@media (max-width: 768px) {
  .legal-links {
    margin-top: 15px;
    font-size: 0.75rem; /* Even smaller on mobile */
  }
}
@media (max-width:991.98px){
  .factory-footer        { padding:20px 0 12px; }      /* tablet   */
}
@media (max-width:575.98px){
  .factory-footer        { padding:18px 0 10px; }      /* phones   */
}
@media (max-width:991.98px){           /* ≤ 992px  =  tablet + phone */
  .footer-container      { flex-direction:column; gap:24px; }
  .footer-col            { width:100%; margin:0; }
}
@media (max-width:991.98px){
  .footer-col h4         { font-size:1rem;  margin-bottom:14px; }
  .footer-links a,
  .address-item,
  .contact-item          { font-size:0.95rem; }
}
@media (max-width:575.98px){
  .footer-links a,
  .address-item,
  .contact-item          { font-size:0.9rem;  line-height:1.35; }
}

/* 4)  Copyright & legal links get tighter                                      */
.footer-copyright        { padding-top:28px; }
@media (max-width:575.98px){
  .footer-copyright      { padding-top:18px; font-size:0.75rem; }
  .legal-links           { margin-top:12px;  font-size:0.72rem; }
}

/* 5)  Social icons + chevrons scale down a bit                                 */
@media (max-width:575.98px){
  .social-icon           { width:32px; height:32px; font-size:0.9rem; }
  .footer-links li a i   { margin-right:6px; font-size:0.78rem; }
}

/* 6)  Make the map responsive (no horizontal scrolling, shorter height)        */
.footer-col iframe       { width:100%; max-width:100%; border:0; }
@media (max-width:991.98px){
  .footer-col iframe     { height:240px; }        /* tablet */
}
@media (max-width:575.98px){
  .footer-col iframe     { height:190px; }        /* phones */
}

/* 7)  Reduce the huge top margin that pushed legal links way down              */
.legal-links             { margin-top:26px; }
@media (max-width:991.98px){
  .legal-links           { margin-top:18px; }
}