/* General Body styles */
body {
    font-family: Arial, sans-serif;
    background-color:  white;
    margin: 0; /* Reset default margin */
    padding: 0; /* Reset default padding */
}

/* Container for the contact form wrapper - for horizontal centering */
.contact-form-wrapper {
    padding: 20px; /* Add padding around the form wrapper */
    display: flex;
    justify-content: center; /* Center the form horizontally */
}

/* The actual form container */
.containerr {
    max-width: 600px;
    width: 100%; /* Ensure it takes full width within max-width */
    background-color:white;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
    border-radius: 8px; /* Rounded corners for the container */
    opacity: 0; /* Start with opacity 0 for fade-in effect */
    transform: translateY(20px); /* Start slightly below */
    animation: fadeInSlideUp 0.8s ease-out forwards; /* Apply animation */
    margin-top: 50px; /* Adjusted margin-top to ensure space from menu */
    margin-bottom: 0px; /* Add margin-bottom for visual spacing */
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-align: center; /* Center the heading */
    letter-spacing: 1px; /* Add slight letter spacing */
}

/* Base style for all form groups (single row fields) */
.form-group {
    margin-bottom: 5px; /* Keep this for individual full-width rows */
}

/* Styles for two fields in one row - NEW BLOCK */
.form-row {
    display: flex; /* Use flexbox for horizontal arrangement */
    flex-wrap: wrap; /* Allow items to wrap to the next line on smaller screens */
    gap: 20px; /* Space between the two fields (horizontal gap) */
    margin-bottom: 2px; /* Space below this row */
}

.form-row .form-group {
    flex: 1; /* Each form-group within a form-row takes equal available space */
    min-width: calc(50% - 15px); /* Adjusted min-width for 2 cols, accounts for gap */
    margin-bottom: 0; /* Remove bottom margin from individual groups when they are in a row */
}

/* Input/select/textarea styling */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%; /* Make them fill their parent .form-group */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't increase total width */
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for focus */
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; /* Remove default outline */
    border-color: #c0392b; /* Highlight border on focus */
    box-shadow: 0 0 5px rgba(192, 57, 43, 0.5); /* Subtle shadow on focus */
}
.form-group textarea {
    resize: vertical;
    min-height: 50px;
}
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M287%2069.9a17.7%2017.7%200%200%200-25.1%200L146.2%20185.7%2030.5%2069.9a17.7%2017.7%200%200%200-25.1%2025.1l131.6%20131.6c6.9%206.9%2017.7%206.9%2025.1%200L287%2095a17.7%2017.7%200%200%200%200-25.1z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    padding-right: 30px;
}

/* Basic validation feedback for required fields */
.form-group input:required:invalid:not(:placeholder-shown),
.form-group textarea:required:invalid:not(:placeholder-shown),
.form-group select:required:invalid:not([value=""]) {
    border-color: #e74c3c; /* Red border for invalid */
}

/* Submit button styling */
.submit-button {
    background-color: #c0392b; /* Red color */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Added transform and box-shadow */
    text-transform: uppercase;
    display: block; /* Make it a block element to center with margin auto */
    margin: 10px auto 0 auto; /* Center the button, added top margin for spacing */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Initial shadow */
}
.submit-button:hover {
    background-color: #a02d20;
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}
.submit-button:active {
    transform: translateY(0); /* Press down effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Smaller shadow when pressed */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column; /* Stack fields vertically on small screens */
        gap: 0; /* Remove gap when stacked */
    }
    .form-row .form-group {
        width: 100%; /* Make them full width */
        margin-bottom: 10px; /* Add back margin between stacked fields */
    }
    .containerr {
        margin-top: 50px; /* Adjust top margin for smaller screens if needed */
        padding: 20px;
    }
    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

.contact-message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease-in-out;
}

.contact-message-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  animation: slideUp 0.6s ease-out;
  position: relative;
}

.contact-message-box.success {
  border-left: 8px solid #27ae60;
}
.contact-message-box.error {
  border-left: 8px solid #e74c3c;
}
.contact-message-box h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #333;
}
.contact-message-box p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555;
}
.contact-message-box button {
  padding: 8px 20px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact-message-box button:hover {
  background: #a93226;
}

@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



 /* Loader Overlay */
    #processingOverlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(255, 255, 255, 0.85);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    .loader-container {
      text-align: center;
      animation: fadeIn 0.5s ease-in;
    }

    .loader {
      border: 6px solid #eee;
      border-top: 6px solid #c0392b;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      margin: 0 auto 15px;
      animation: spin 1s linear infinite;
    }

    .loader-container p {
      font-size: 16px;
      font-weight: bold;
      color: #c0392b;
    }

    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    /* contact unit 3*/
    /* Reset some spacing */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fff;
}

/* Container Layout */
.container-stacked {
  padding: 20px 5%;
  max-width: 1200px;
  margin: auto;
}

/* Unit Cards Row */
.unit-row {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.unit-card {
  flex: 1 1 30%;
  background-color: #fff3f3;
  padding: 20px;
  border-left: 5px solid #c0392b;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}


.unit-card h3 {
  color: #c0392b;
  margin-bottom: 10px;
  font-size: 18px;
}

/* Bottom Layout (Map + Form) */
.bottom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Map & Form each 50% on desktop */
.map-section,
.form-section {
  flex: 1 1 48%;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.map-section h2,
.form-section h2 {
  color: #c0392b;
  margin-bottom: 20px;
}

/* Form Styling */
.form-section form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group,
.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-row input,
.form-group select,
textarea,
input {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  flex: 1;
  width: 100%;
}

textarea {
  resize: vertical;
  height: 100px;
}

.submit-button {
  padding: 12px;
  background-color: #c0392b;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-button:hover {
  background-color: #a93226;
}

/* Map Responsiveness */
.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 10px;
}

/* Media Queries for Tablets & Phones */
@media screen and (max-width: 992px) {
  .unit-row,
  .bottom-row {
    flex-direction: column;
  }

  .unit-card,
  .map-section,
  .form-section {
    flex: 1 1 100%;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row input {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .container-stacked {
    padding: 15px;
  }

  .unit-card h3 {
    font-size: 16px;
  }

  .map-section h2,
  .form-section h2 {
    font-size: 20px;
  }
}
