/* Contact Page Styles */

/* Contact Header Section */
.contact-header {
  background-image: url("../images/Contact_Header_Section_background.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.contact-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.contact-header .page-title {
  font-size: 4.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.contact-header p {
  font-size: 1.8rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

/* Contact Information Section */
.contact-info-section {
  background: white;
  padding: 4rem 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.contact-info-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #dc1313;
}

.contact-info-grid {
  display: grid !important;
  grid-template-columns: 1fr 2fr !important;
  grid-template-rows: auto auto !important;
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
}

.contact-item {
  background: linear-gradient(135deg, #fcf8f8 0%, #f0e2e2 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid rgba(30, 58, 138, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  height: fit-content;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: #f63b3b;
}

.contact-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #8a1e1e;
}

.contact-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: #634b4b;
}

/* Address Section Styles */
.address-item {
  text-align: left;
  justify-content: flex-start;
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.address-item .address-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.address-location {
  margin-bottom: 2rem;
  flex: 1;
}

.address-location:last-child {
  margin-bottom: 0;
}

.address-location h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #8a1e1e;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #f63b3b;
  padding-bottom: 0.25rem;
  display: inline-block;
}

/* Email Section Styles */
.email-item {
  text-align: left;
  justify-content: flex-start;
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
}

.email-item .email-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.email-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  flex: 1;
}

.email-category {
  padding: 0.75rem;
  background: rgba(138, 30, 30, 0.05);
  border-radius: 8px;
  border-left: 4px solid #f63b3b;
  transition: all 0.3s ease;
}

.email-category:hover {
  background: rgba(138, 30, 30, 0.1);
  transform: translateX(5px);
}

.email-category strong {
  color: #8a1e1e;
  font-weight: 600;
  display: inline-block;
  min-width: 160px;
  margin-right: 1rem;
}

.email-category a {
  color: #f63b3b;
  text-decoration: none;
  word-break: break-all;
}

.email-category a:hover {
  text-decoration: underline;
}

/* Business Hours Section Styles */
.hours-item {
  text-align: left;
  justify-content: flex-start;
  grid-column: 1 !important;
  grid-row: 2 !important;
}

.hours-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hours-schedule {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hours-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(138, 30, 30, 0.05);
  border-radius: 12px;
  border-left: 4px solid #f63b3b;
  transition: all 0.3s ease;
}

.hours-day:hover {
  background: rgba(138, 30, 30, 0.1);
  transform: translateX(5px);
}

.hours-day .day {
  font-weight: 600;
  color: #8a1e1e;
  font-size: 1rem;
}

.hours-day .time {
  color: #634b4b;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Contact Form Section */
.contact-form-section {
  background: linear-gradient(135deg, #fcf8f8 0%, #f0e2e2 100%);
  padding: 4rem 0 0.5rem 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.contact-form-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #dc1313;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #8a1e1e;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(30, 58, 138, 0.2);
  border-radius: 15px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input[type="file"] {
  padding: 0.75rem 1rem;
  cursor: pointer;
  background: #fcf8f8;
  border: 2px dashed rgba(138, 30, 30, 0.3);
}

.form-group input[type="file"]:hover {
  border-color: #f63b3b;
  background: #fff0f0;
}

.form-group input[type="file"]:focus {
  border-color: #f63b3b;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #f63b3b;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.file-help {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Animated Send Message Button */
.send-message-btn {
  font-family: inherit;
  font-size: 20px;
  background: rgb(225, 65, 65);
  color: white;
  padding: 0.7em 1em;
  padding-left: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
}

.send-message-btn span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
}

.send-message-btn svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}

.send-message-btn:hover .svg-wrapper {
  animation: fly-1 0.6s ease-in-out infinite alternate;
}

.send-message-btn:hover svg {
  transform: translateX(1.2em) rotate(45deg) scale(1.1);
}

.send-message-btn:hover span {
  transform: translateX(5em);
}

.send-message-btn:active {
  transform: scale(0.95);
}

@keyframes fly-1 {
  from {
    transform: translateY(0.1em);
  }
  to {
    transform: translateY(-0.1em);
  }
}

/* Legacy button styles (fallback) */
.form-group button:not(.send-message-btn) {
  background: #f63b3b;
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.form-group button:not(.send-message-btn):hover {
  background: #8a1e1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 59, 59, 0.3);
}

/* Map Section */
.map-section {
  background: white;
  padding: 1rem 0 0 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 1rem;
  margin-bottom: 0;
  overflow: hidden;
}

.map-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem 0;
  color: #dc1313;
}

.map-container {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}

.map-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
}

.map-iframe {
  width: 100%;
  height: 500px;
  border: 0;
  pointer-events: auto;
  margin: 0;
  padding: 0;
  display: block;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  pointer-events: none;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background: #806b6b;
  color: white;
}

.btn-secondary:hover {
  background: #634b4b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(107, 114, 128, 0.3);
}

/* Form Validation Styles */
.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 8px;
  border-left: 4px solid #dc2626;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* Success Message */
.success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .contact-header {
    min-height: 550px;
    padding: 5rem 2rem;
  }

  .contact-header .page-title {
    font-size: 3.9rem;
  }

  .contact-header p {
    font-size: 1.6rem;
    max-width: 700px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .contact-header {
    min-height: 500px;
    padding: 4rem 1rem;
    background-size: cover !important;
  }

  .contact-header .page-title {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
  }

  .contact-header p {
    font-size: 1.35rem;
    max-width: 600px;
    padding: 0 0.5rem;
    line-height: 1.6;
  }

  .contact-info-section h2,
  .contact-form-section h2,
  .map-section h2 {
    font-size: 2rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 2rem;
    padding: 0 1rem;
  }

  .address-item,
  .hours-item,
  .email-item {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .contact-item {
    padding: 2rem;
  }

  .email-categories {
    grid-template-columns: 1fr;
  }

  .email-category strong {
    min-width: 120px;
    display: block;
    margin-bottom: 0.25rem;
  }

  .email-category a {
    word-break: break-word;
  }

  .hours-day {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hours-day .time {
    font-size: 0.9rem;
  }

  .contact-form {
    padding: 0 1rem;
  }

  .map-container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .contact-header {
    min-height: 400px;
    padding: 3rem 1rem;
    background-size: cover !important;
  }

  .contact-header .page-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .contact-header p {
    font-size: 1.25rem;
    max-width: 100%;
    padding: 0 0.5rem;
    line-height: 1.5;
  }

  .contact-info-section h2,
  .contact-form-section h2,
  .map-section h2 {
    font-size: 1.8rem;
  }

  .contact-info-grid {
    padding: 0 0.5rem;
  }

  .contact-item {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 0 0.5rem;
  }

  .map-container {
    padding: 0 0.5rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .contact-header {
    min-height: 350px;
    padding: 2.5rem 0.5rem;
  }

  .contact-header .page-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }

  .contact-header p {
    font-size: 1.1rem;
    padding: 0 0.25rem;
    line-height: 1.4;
  }
}
