/* General Colors */
:root {
  --primary-color: #004aad; /* Deep blue */
  --secondary-color: #f28729; /* Accent orange */
  --background-color: #e6eff7; /* Light background */
  --text-color: #2d2d2d;
  --footer-color: #002b5c; /* Footer navy blue */
  --hover-color: #f28729; /* Hover for links and buttons */
  --form-bg-color: #fff; /* White background for form */
  --map-border-color: #ccc; /* Light gray border for the map */
  --form-border-color: #a0c5ff; /* Light blue border for form fields */
  --form-focus-color: #004aad; /* Focus border color */
  --form-placeholder-color: #8a8a8a; /* Placeholder color */
  --form-input-bg: #f9fbff; /* Slightly tinted white for inputs */
  --font-montserrat: 'Montserrat', sans-serif;
}

/* Body Styling */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-montserrat);
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Contact Section */
.footer {
  background-color: var(--background-color);
  padding: 50px 20px;
  color: var(--text-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer h2 {
  font-size: 32px;
  margin-bottom: -10px;
  color: var(--primary-color);
}

.address-container-footer {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns */
  grid-template-rows: auto; /* Auto-adjust rows */
  grid-gap: 40px;
  max-width: 1200px;
  width: 100%;
  padding: 30px;
  background-color: #f5f9fd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.address-details-footer {
  grid-column: 1/2;
  line-height: 1.8;
}

.address-details-footer div {
  font-size: 18px;
  min-height: 1px;
}



/* Map Section */
.map-footer-image {
  grid-column: 1/2;
  grid-row: 2/3; /* Ensures the map stays under the address */
  margin-top: 20px;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.map-footer-image iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* Contact Form */
.border-footer {
  background-color: var(--form-bg-color);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  grid-column: 2/3;
  grid-row: 1/3;
}

.border-footer h2 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 20px;
}

/* Enhanced Form Fields Styling */
.form-container-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
}

.input-footer,
.textarea-wrapper-footer {
  display: flex;
  width: 100%;
}

input.input-footer,
textarea.textarea-footer {
  width: 100%;
  height: 50px; /* Ensure same height for all fields */
  padding: 15px;
  font-size: 16px;
  background-color: var(--form-input-bg); /* Slightly tinted background */
  border: 2px solid var(--form-border-color); /* Custom border */
  border-radius: 8px; /* Rounded corners */
  outline: none;
  transition: all 0.3s ease;
  color: var(--text-color);
  box-sizing: border-box; /* Ensure consistent padding */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Slight inner shadow */
}

/* Ensure all fields, including text area, are the same width and height */
textarea.textarea-footer {
  height: 150px; /* Consistent height for the textarea */
  resize: vertical; /* Allow vertical resizing only */
}

input.input-footer {
  box-sizing: border-box;
}

/* Placeholder Styling */
input.input-footer::placeholder,
textarea.textarea-footer::placeholder {
  color: var(--form-placeholder-color);
  opacity: 0.8;
  font-style: italic;
}

/* Input Focus Styling */
input.input-footer:focus,
textarea.textarea-footer:focus {
  border-color: var(--form-focus-color); /* Custom focus border color */
  box-shadow: 0 0 10px rgba(0, 74, 173, 0.3); /* Subtle blue glow on focus */
  background-color: #fff; /* Pure white background on focus */
  transition: all 0.3s ease-in-out;
}

/* Submit Button Styling */
.button {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 20px;
  font-size: 16px;
  border: 2px solid var(--primary-color);
  border-radius: 8px; /* Rounded corners */
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  width: 100%; /* Full width */
  height: 50px; /* Same height as input fields */
}

.button:hover {
  background-color: var(--hover-color); /* Button changes on hover */
  border-color: var(--hover-color); /* Border matches hover color */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Slightly deeper shadow on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
  .address-container-footer {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .border-footer {
    grid-column: 1/2; /* Move the form below the contact information */
    grid-row: 3/4;
    padding: 20px;
  }

  .form-container-footer {
    gap: 15px;
  }

  input.input-footer,
  textarea.textarea-footer {
    font-size: 14px;
    padding: 12px;
    height: 45px; /* Smaller height for mobile */
  }

  .button {
    padding: 12px;
    height: 45px; /* Smaller height for mobile */
  }
}

@media (max-width: 480px) {
  .border-footer {
    padding: 15px;
  }

  input.input-footer,
  textarea.textarea-footer {
    padding: 10px;
    font-size: 14px;
    height: 40px; /* Further reduced for small screens */
  }

  textarea.textarea-footer {
    height: 120px;
  }

  .button {
    height: 45px; /* Adjust button height for mobile */
  }
}
