/* Contact Page Redesign - Based on Reference Image */

.contact-us-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 100%);
  min-height: 100vh;
}

.contact-us-section .theme-title-one {
  text-align: center;
  margin-bottom: 80px;
}

.contact-us-section .theme-title-one h2 {
  font-size: 48px;
  font-weight: 700;
  color: #001648;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.contact-us-section .theme-title-one p {
  font-size: 18px;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Modern Card Layout */
.contact-card-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 600px;
}

/* Left Side - Contact Information */
.contact-info-panel {
  background: linear-gradient(135deg, #000f32 0%, #1565c0 100%);
  padding: 60px 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-info-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}

.contact-info-panel::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 1;
}

.contact-info-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-header {
  margin-bottom: 40px;
}

.contact-info-header h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.contact-info-header p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0;
}

.contact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 40px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item-text {
  flex: 1;
}

.contact-item-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: white;
}

.contact-item-text p {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
}

.contact-location {
  margin-top: auto;
}

.contact-location h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.contact-location p {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}

/* Right Side - Contact Form */
.contact-form-panel {
  padding: 60px 50px;
  background: white;
}

.form-header {
  margin-bottom: 40px;
}

.form-header h3 {
  font-size: 28px;
  font-weight: 700;
  color: #001648;
  margin-bottom: 10px;
}

.form-header p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

/* Form Styling */
.modern-contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f9fafb;
  color: #001648;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1565c0;
  background: white;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 200px;
}

.submit-button {
  background: linear-gradient(135deg, #000f32 0%, #1565c0 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  min-width: 160px;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 15, 50, 0.3);
}

.submit-button:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-card-container {
    grid-template-columns: 350px 1fr;
    max-width: 1000px;
  }
  
  .contact-info-panel {
    padding: 50px 35px;
  }
  
  .contact-form-panel {
    padding: 50px 40px;
  }
}

@media (max-width: 768px) {
  .contact-us-section {
    padding: 60px 0;
  }
  
  .contact-us-section .theme-title-one h2 {
    font-size: 36px;
  }
  
  .contact-card-container {
    grid-template-columns: 1fr;
    margin: 0 20px;
    max-width: none;
  }
  
  .contact-info-panel {
    padding: 40px 30px;
    order: 2;
  }
  
  .contact-form-panel {
    padding: 40px 30px;
    order: 1;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-info-header h3 {
    font-size: 24px;
  }
  
  .form-header h3 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .contact-us-section {
    padding: 40px 0;
  }
  
  .contact-us-section .theme-title-one {
    margin-bottom: 40px;
  }
  
  .contact-us-section .theme-title-one h2 {
    font-size: 28px;
  }
  
  .contact-card-container {
    margin: 0 15px;
    border-radius: 16px;
  }
  
  .contact-info-panel {
    padding: 30px 25px;
  }
  
  .contact-form-panel {
    padding: 30px 25px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .submit-button {
    width: 100%;
    padding: 16px 30px;
  }
}

/* Animation for form submission */
@keyframes submitPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.submit-button.submitting {
  animation: submitPulse 1s ease-in-out infinite;
  background: #94a3b8;
  cursor: not-allowed;
}

/* Hide original form styling */
.main-content.original-form {
  display: none;
}

.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background: #f9fafb;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Custom arrow */
.select-wrapper .arrow {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 12px;
  height: 12px;
  pointer-events: none;

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23003366'> <path d='M7 10l5 5 5-5z'/> </svg>");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.3s ease;
}

/* Rotate when open */
.select-wrapper.open .arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* CLS guardrails for contact page header/navigation */
.header-one .theme-menu-wrapper {
  position: sticky;
  top: 0;
  margin-bottom: 0 !important;
}

.header-one .theme-menu-wrapper .bg-wrapper {
  min-height: 75px;
  align-items: center;
}

.header-one .theme-menu-wrapper.fixed {
  position: sticky !important;
  top: 0;
  margin: 0 !important;
  padding-top: 0;
  -webkit-animation: none !important;
  animation: none !important;
}

@media (max-width: 991px) {
  .header-one .theme-menu-wrapper .bg-wrapper {
    min-height: 60px;
  }
}

/* Custom arrow */
.select-wrapper .arrow {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  
  width: 18px;   /* 👈 increase width */
  height: 18px;  /* 👈 increase height */
  
  pointer-events: none;

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23003366'> <path d='M7 10l5 5 5-5z'/> </svg>");
  background-repeat: no-repeat;
  background-size: 100% auto; /* 👈 arrow scales to fit */
  transition: transform 0.3s ease;
}

/* Rotate when open */
.select-wrapper.open .arrow {
  transform: translateY(-50%) rotate(180deg);
}
