/* Modern Contact Section Styles */

/* Fix for hero section - reduce height and padding */
.hero-section {
  min-height: 340px !important;
  padding-bottom: 0 !important;
}

.hero-content {
  padding: 80px 6vw 30px !important;
  gap: 2rem !important;
}

.hero-text h1 {
  margin-bottom: 0.5rem !important;
}

.hero-text p {
  margin-bottom: 1.25rem !important;
}

/* Ensure proper z-index hierarchy */
.contact-section {
  background: linear-gradient(135deg, #0a1026 0%, #10173a 100%);
  padding: 4vw 6vw; /* Reduced from 8vw */
  position: relative;
  overflow: hidden;
  z-index: 1 !important; /* Below navbar - force below z-index 10000 */
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 153, 0, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 30% 70%, rgba(255, 153, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

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

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem; /* Reduced from default */
}

.contact-header h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.contact-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff9900, #ffb300);
  border-radius: 2px;
}

.contact-header p {
  font-size: 1.3rem;
  color: #bfc6e0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem; /* Reduced from 6rem */
  align-items: start;
}

/* Contact Information */
.contact-info-section {
  background: rgba(24, 31, 54, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 153, 0, 0.1);
  border-radius: 24px;
  padding: 3rem 2.5rem; /* Reduced from 4rem 3rem */
  position: relative;
  overflow: hidden;
}

.contact-info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff9900, #ffb300);
}

.contact-info-section h3 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #ff9900;
  margin-bottom: 2.5rem; /* Reduced from 3rem */
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info-section h3::before {
  content: '📞';
  font-size: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Reduced from 2.5rem */
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 153, 0, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 153, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 153, 0, 0.08);
  border-color: rgba(255, 153, 0, 0.2);
  box-shadow: 0 10px 30px rgba(255, 153, 0, 0.1);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff9900, #ffb300);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.contact-details h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ff9900;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: #bfc6e0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-details a {
  color: #bfc6e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #ff9900;
}

/* Contact Form */
.contact-form-section {
  background: rgba(24, 31, 54, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 153, 0, 0.1);
  border-radius: 24px;
  padding: 3rem 2.5rem; /* Reduced from 4rem 3rem */
  position: relative;
  overflow: hidden;
}

.contact-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff9900, #ffb300);
}

.contact-form-section h3 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #ff9900;
  margin-bottom: 2.5rem; /* Reduced from 3rem */
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-form-section h3::before {
  content: '✉️';
  font-size: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Reduced from 2rem */
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-group label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  position: relative;
}

.form-group label::after {
  content: '*';
  color: #ff9900;
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1rem 1.5rem;
  background: rgba(10, 16, 26, 0.6);
  border: 2px solid rgba(255, 153, 0, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #ff9900;
  background: rgba(10, 16, 26, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bfc6e0;
  opacity: 0.7;
}

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

.form-submit {
  margin-top: 1rem;
}

.form-submit .button {
  width: 100%;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff9900, #ffb300);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-submit .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.form-submit .button:hover::before {
  left: 100%;
}

.form-submit .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
}

.form-submit .button:active {
  transform: translateY(0);
}

/* Office Hours & Additional Info */
.additional-info {
  margin-top: 4rem; /* Reduced from 6rem */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; /* Reduced from 3rem */
}

.info-card {
  background: rgba(24, 31, 54, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 153, 0, 0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem; /* Reduced from 3rem 2rem */
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.05), transparent);
  transition: left 0.5s ease;
}

.info-card:hover::before {
  left: 100%;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 153, 0, 0.2);
  box-shadow: 0 15px 30px rgba(255, 153, 0, 0.1);
}

.info-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ff9900;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.info-card p {
  color: #bfc6e0;
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Success Message */
.success-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  color: #4ade80;
  display: none;
}

.success-message.show {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .contact-content {
    gap: 3rem;
  }
  
  .contact-header h2 {
    font-size: 3rem;
  }
  
  .contact-section {
    padding: 4vw 6vw;
  }
}

@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .additional-info {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .contact-section {
    padding: 3vw 4vw;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 3vw 4vw;
  }
  
  .contact-header {
    margin-bottom: 2rem;
  }
  
  .contact-header h2 {
    font-size: 2.5rem;
  }
  
  .contact-header p {
    font-size: 1.1rem;
  }
  
  .contact-info-section,
  .contact-form-section {
    padding: 2.5rem 2rem;
  }
  
  .contact-info-section h3,
  .contact-form-section h3 {
    font-size: 1.8rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .contact-icon {
    align-self: center;
  }
  
  .info-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-header h2 {
    font-size: 2rem;
  }
  
  .contact-info-section h3,
  .contact-form-section h3 {
    font-size: 1.5rem;
  }
  
  .contact-item {
    padding: 1rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.8rem 1rem;
  }
  
  .contact-section {
    padding: 2vw 4vw;
  }
  
  .additional-info {
    margin-top: 2rem;
  }
}

/* Fix backdrop-filter stacking context issue */
.contact-info-section,
.contact-form-section,
.info-card {
  background: rgba(24, 31, 54, 0.8) !important; /* Solid background instead */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.contact-section {
  overflow: visible !important;
}

/* Fix hover transforms */
.contact-item:hover {
  transform: translateY(-5px) !important;
  will-change: transform;
}

.info-card:hover {
  transform: translateY(-5px) !important;
  will-change: transform;
}

.form-submit .button:hover {
  transform: translateY(-2px) !important;
  will-change: transform;
}

.form-submit .button:active {
  transform: translateY(0) !important;
}

/* Ensure content doesn't break out */
.contact-container,
.contact-header,
.contact-content,
.additional-info {
  isolation: auto;
}
