/* Enhanced Contact Section Styles */

.section-contact {
  background: #002d53;  /* Standard GEORGE tecoil blue */
  padding: 120px 0 0;  /* Remove bottom padding completely */
  position: relative;
  overflow: hidden;
  margin-bottom: -1px;  /* Overlap with footer to prevent gap */
}

/* Animated Background Pattern - Disabled for uniform color */
.section-contact::before {
  display: none; /* Removed to prevent color variations */
}

@keyframes floatBackground {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-contact .section-head {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.section-contact .title-yellow {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fdc300 0%, #ffdb4d 50%, #fdc300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  animation: shimmer 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

.section-contact .section-head p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Enhanced Contact Form */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fdc300 0%, #ffdb4d 50%, #fdc300 100%);
  border-radius: 24px 24px 0 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  color: #212529;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Required field asterisk */
.form-row label:after {
  content: attr(data-required);
  color: #dc3545;
  margin-left: 4px;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  color: #212529;
  font-size: 1rem;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: inherit;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #adb5bd;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #fdc300;
  box-shadow: 0 0 0 3px rgba(253, 195, 0, 0.15);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row.checkbox {
  flex-direction: row;
  align-items: start;
  gap: 12px;
}

.form-row.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  background: #ffffff;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  transition: all 0.2s ease;
}

.form-row.checkbox input[type="checkbox"]:hover {
  border-color: #fdc300;
}

.form-row.checkbox input[type="checkbox"]:checked {
  background: #fdc300;
  border-color: #fdc300;
}

.form-row.checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0a1628;
  font-weight: bold;
  font-size: 14px;
}

.form-row.checkbox label {
  flex: 1;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #495057;
  text-transform: none;
  letter-spacing: normal;
}

.btn-submit {
  background: linear-gradient(135deg, #fdc300 0%, #ffdb4d 100%);
  color: #0a1628;
  border: none;
  border-radius: 12px;
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(253, 195, 0, 0.5);
}

.contact-success {
  display: none;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
  padding: 15px;
  color: #4caf50;
  text-align: center;
}

.contact-success.show {
  display: block;
}

/* Enhanced Contact Info Cards */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 35px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(253, 195, 0, 0.1) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(253, 195, 0, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 1);
}

.contact-card:hover::before {
  opacity: 1;
}

/* Ensure text stays visible on hover */
.contact-card:hover h3 {
  color: #212529;
}

.contact-card:hover .contact-card-content p,
.contact-card:hover .contact-card-content strong {
  color: #212529;
}

.contact-card:hover .contact-card-content a {
  color: #1a4b84;
}

.contact-card:hover .contact-hours-item span {
  color: #6c757d;
}

.contact-card:hover .contact-hours-item strong {
  color: #212529;
}

.contact-card:hover .emergency-notice p {
  color: #856404;
}

.contact-card:hover .emergency-notice strong {
  color: #704000;
}

.contact-card-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-card h3 {
  color: #212529;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-card-content p {
  color: #495057;
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-card-content strong {
  color: #212529;
  display: inline;
  margin-right: 5px;
  font-weight: 600;
}

.contact-card-content a {
  color: #1a4b84;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-card-content a:hover {
  color: #fdc300;
  text-decoration: underline;
}

/* Quick Contact Buttons */
.quick-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(26, 75, 132, 0.1);
  border: 1px solid rgba(26, 75, 132, 0.3);
  border-radius: 8px;
  color: #1a4b84 !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.quick-contact-btn span {
  color: #1a4b84 !important;
}

.quick-contact-btn:hover {
  background: linear-gradient(135deg, #fdc300 0%, #ffdb4d 100%);
  border-color: #fdc300;
  color: #002d53 !important;
  transform: translateY(-2px);
}

.quick-contact-btn:hover span {
  color: #002d53 !important;
}

.quick-contact-btn-icon {
  font-size: 1.2rem;
}

/* Office Hours */
.contact-hours {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}

.contact-hours-item:last-child {
  border-bottom: none;
}

.contact-hours-item span {
  color: #6c757d;
  font-size: 0.95rem;
}

.contact-hours-item strong {
  color: #212529;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Location Card */
.contact-location {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-location address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fdc300;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-directions:hover {
  color: #ffdb4d;
  gap: 12px;
}

/* Contact Map */
.contact-map {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 12px;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.contact-map iframe:hover {
  filter: brightness(1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .section-contact {
    padding: 60px 0;
  }
  
  .section-contact .title-yellow {
    font-size: 2rem;
  }
  
  .contact-form-wrapper {
    padding: 30px;
  }
  
  .contact-info-wrapper {
    grid-template-columns: 1fr;
  }
  
  .quick-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section-contact .title-yellow {
    font-size: 1.75rem;
  }
  
  .section-contact .section-head p {
    font-size: 1rem;
  }
  
  .contact-form-wrapper {
    padding: 25px;
    border-radius: 16px;
  }
  
  .contact-card {
    padding: 25px;
  }
  
  .form-row input,
  .form-row textarea {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  
  .btn-submit {
    padding: 12px 25px;
  }
}