/* Custom styles for Contact page - Redesigned Modern Layout */
.contact-hero-section {
  margin-top: 0;
}

.contact-page-wrapper {
  background-color: #FAEFD9;
  min-height: calc(100vh - 80px);
  padding: 80px 20px 100px;
  position: relative;
}

/* Ensure proper spacing for fixed header on mobile */
@media (max-width: 991.98px) {
  .contact-hero-section {
    margin-top: 0;
    padding-top: 100px !important;
  }
  
  .main {
    padding-top: 0;
  }
}

.contact-page-wrapper .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.contact-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: 0 8px 32px rgba(21, 64, 216, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #F2BB05 0%, #F2BB05 15%, #1540D8 15%, #1540D8 100%);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(21, 64, 216, 0.18);
}

@media (max-width: 992px) {
  .contact-cards-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-card {
    padding: 2.5rem 2rem;
  }
}

.card-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1540D8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  font-family: var(--font-primary) !important;
}

.card-title-underline {
  display: flex;
  margin-bottom: 1.75rem;
  height: 5px;
}

.underline-yellow {
  width: 50px;
  height: 100%;
  background-color: #F2BB05;
  border-radius: 3px 0 0 3px;
}

.underline-blue {
  flex: 1;
  height: 100%;
  background-color: #1540D8;
  border-radius: 0 3px 3px 0;
}

.card-description {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

/* Form Styles */
.form-group {
  margin-bottom: 2rem;
}

.form-label {
  font-weight: 700;
  color: #151922;
  margin-bottom: 0.75rem;
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-secondary) !important;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #E5E5E5;
  border-radius: 14px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #151922;
  font-family: inherit;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

/* Required fields have light blue border */
.form-group:has(.required) .form-control {
  border-color: #75B9F2;
}

.form-control:hover {
  border-color: #B0D4F5;
}

.form-control:focus {
  outline: none;
  border-color: #1540D8;
  box-shadow: 0 0 0 4px rgba(21, 64, 216, 0.1);
}

.form-control::placeholder {
  color: #999;
  font-weight: 400;
  opacity: 0.7;
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
  padding-top: 1rem;
}

.btn-submit {
  background: linear-gradient(135deg, #1540D8 0%, #0f32b0 100%);
  color: #fff;
  border: none;
  padding: 1.125rem 3rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  width: 100%;
  margin-top: 0.75rem;
  box-shadow: 0 4px 16px rgba(21, 64, 216, 0.3);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #0f32b0 0%, #0a2580 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 64, 216, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(21, 64, 216, 0.3);
}

.required {
  color: #F2BB05;
  font-weight: 700;
  margin-left: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Contact Info Styles */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #F0F0F0;
}

.contact-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1540D8 0%, #0f32b0 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(21, 64, 216, 0.25);
}

.contact-info-content {
  flex: 1;
}

.contact-info-content h4 {
  color: #1540D8;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-secondary) !important;
}

.contact-info-content p {
  color: #151922;
  margin: 0;
  line-height: 1.8;
  font-size: 0.95rem;
  font-weight: 400;
}

.contact-info-content a {
  color: #151922;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-info-content a:hover {
  color: #1540D8;
  text-decoration: underline;
}

/* Alert Styles */
.alert {
  padding: 1.25rem 1.75rem;
  border-radius: 14px;
  margin-bottom: 2rem;
  border: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.6;
}

.alert-success {
  background-color: #E8F5E9;
  color: #2E7D32;
  border-left: 4px solid #4CAF50;
}

.alert-error {
  background-color: #FFEBEE;
  color: #C62828;
  border-left: 4px solid #F44336;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-hero-section {
    padding: 100px 15px 50px !important;
  }
  
  .contact-hero-section h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  
  .contact-hero-section .lead {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }
  
  .contact-hero-section img {
    max-width: 250px !important;
    margin-top: 2rem !important;
  }
  
  .contact-page-wrapper {
    padding: 40px 15px 60px !important;
  }
  
  .contact-card {
    padding: 2rem 1.5rem !important;
    border-radius: 20px;
  }
  
  .card-title {
    font-size: 1.75rem !important;
    margin-bottom: 1rem;
  }
  
  .card-title-underline {
    margin-bottom: 1.5rem;
  }
  
  .card-description {
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem !important;
  }
  
  .form-control {
    padding: 0.875rem 1.25rem !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  textarea.form-control {
    min-height: 120px !important;
  }
  
  .btn-submit {
    padding: 1rem 2rem !important;
    font-size: 0.9rem !important;
  }
  
  .contact-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    margin-right: 1.25rem;
  }
  
  .contact-info-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contact-info-item .contact-icon {
    margin-bottom: 1rem;
    margin-right: 0;
  }
  
  /* Fix grid layout for additional images */
  .row.mt-5.mb-4 > .col-12 > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
  }
}

@media (max-width: 480px) {
  .contact-hero-section {
    padding: 90px 10px 40px !important;
  }
  
  .contact-hero-section h1 {
    font-size: 1.75rem !important;
  }
  
  .contact-hero-section .lead {
    font-size: 0.95rem !important;
  }
  
  .contact-hero-section img {
    max-width: 300px !important;
  }
  
  .contact-page-wrapper {
    padding: 30px 10px 50px !important;
  }
  
  .contact-card {
    padding: 1.5rem 1.25rem !important;
  }
  
  .card-title {
    font-size: 1.5rem !important;
  }
  
  .form-control {
    padding: 0.75rem 1rem !important;
  }
  
  .btn-submit {
    padding: 0.875rem 1.5rem !important;
    font-size: 0.85rem !important;
  }
  
  .contact-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.25rem !important;
  }
}

