* {  
    box-sizing: border-box;  
}  

body {  
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;  
    margin: 0;  
    background-color: #04173b;
    line-height: 1.6;
}  

/* Main container - Fixed sizing */
.survey-container {  
    padding: 20px;  
    max-width: 900px; /* Back to more reasonable max-width */
    width: 90%; /* Use percentage instead of 100% */
    margin: 90px auto 70px auto;
}  

.survey-container h1 {
    color: white;
    margin-bottom: 30px; /* Reduced margin */
    text-align: center;
    font-size: 1.8rem; /* Slightly smaller */
}

/* Wrapper for responsive layout */
.survey-wrapper {  
    display: flex;
    gap: 20px;
    align-items: flex-start;
}  

/* Info section - More compact */
.survey-info {  
    flex: 0 0 280px; /* Slightly smaller fixed width */
    background-color: white;
    border-radius: 8px;  
    padding: 15px; /* Reduced padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.survey-info p {
    margin: 0;
    color: #333;
    font-size: 0.9rem; /* Smaller font */
    text-align: justify;
    line-height: 1.5;
}

/* Form styling - More compact */
.survey-form {
    flex: 1;
    background-color: white;
    padding: 20px; /* Reduced padding */
    border-radius: 8px;  
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Questions section */
.survey-questions {
    margin-bottom: 25px; /* Reduced margin */
}

.question {  
    margin-bottom: 20px; /* Reduced margin */
}

.question label {
    display: block;
    margin-bottom: 8px; /* Reduced margin */
    font-weight: 600;
    color: #333;
    font-size: 0.95rem; /* Slightly smaller */
}

/* Rating system - More compact */
.rating {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* Reduced gap */
}

.rating input {  
    display: none;  
}  

.rating label {  
    background: #f0f0f0;  
    padding: 6px 10px; /* Reduced padding */
    border-radius: 5px;  
    cursor: pointer;  
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 500;
    min-width: 35px; /* Smaller min-width */
    text-align: center;
    font-size: 0.9rem;
}  

.rating input:checked + label {  
    background: #eb0a29;  
    color: white;
    border-color: #eb0a29;
}  

.rating label:hover {  
    background: #e0e0e0;
    transform: translateY(-1px); /* Reduced transform */
}

.rating input:checked + label:hover {
    background: #d80a29;
}

/* Personal info section */
.personal-info {  
    margin-bottom: 25px; /* Reduced margin */
}

.personal-info h2 {
    color: #333;
    margin-bottom: 15px; /* Reduced margin */
    font-size: 1.2rem; /* Smaller font */
    border-bottom: 2px solid #eb0a29;
    padding-bottom: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Smaller min-width */
    gap: 12px; /* Reduced gap */
}

.personal-info input {  
    width: 100%;  
    padding: 10px 12px; /* Reduced padding */
    border: 1px solid #ddd; /* Thinner border */
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.personal-info input:focus {
    outline: none;
    border-color: #eb0a29;
    box-shadow: 0 0 0 2px rgba(235, 10, 41, 0.1); /* Smaller shadow */
}

.personal-info input::placeholder {
    color: #999;
}

/* Submit button - More compact */
button {  
    width: 100%;  
    padding: 12px; /* Reduced padding */
    background: #eb0a29;  
    color: white;  
    border: none;  
    border-radius: 5px;  
    cursor: pointer;  
    font-size: 1rem; /* Smaller font */
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Reduced letter spacing */
}  

button:hover {  
    background: #d80a29;
    transform: translateY(-1px); /* Reduced transform */
    box-shadow: 0 2px 8px rgba(235, 10, 41, 0.3); /* Smaller shadow */
}

button:active {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 992px) {
    .survey-container {
        max-width: 800px; /* Smaller max-width on tablets */
        width: 95%;
    }
    
    .survey-wrapper {
        flex-direction: column;
    }
    
    .survey-info {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .survey-form {
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .survey-container {
        padding: 15px;
        margin: 60px auto 40px auto;
        max-width: 600px; /* Even smaller on mobile */
        width: 95%;
    }
    
    .survey-container h1 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .survey-form {
        padding: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .rating {
        justify-content: flex-start; /* Changed from center to left */
        gap: 4px;
    }
    
    .rating label {
        padding: 8px 10px;
        font-size: 0.85rem;
        min-width: 32px;
    }
}

@media (max-width: 480px) {
    .survey-container {
        padding: 10px;
        width: 98%;
        max-width: 400px; /* Very compact on small screens */
    }
    
    .survey-form {
        padding: 12px;
    }
    
    .survey-info {
        padding: 12px;
    }
    
    .survey-info p {
        font-size: 0.85rem;
    }
    
    .rating label {
        padding: 6px 8px;
        min-width: 30px;
        font-size: 0.8rem;
    }
    
    .personal-info input {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    button {
        padding: 10px;
        font-size: 0.95rem;
    }
}

.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: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; }
}