/* Contact Page Specific Styles */

/* Hero Section Specific */
.hero {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.hero-bg-circle-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24rem;
  height: 24rem;
  background-color: #4A3B78;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  transform: translate(-50%, -50%);
}

.hero-bg-circle-2 {
  position: absolute;
  top: 25%;
  right: 25%;
  width: 16rem;
  height: 16rem;
  background-color: #6B5A9A;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.text-center {
  text-align: center;
}

.subtitle {
  color: #94929E;
  font-size: 1.25rem;
  max-width: 42rem;
  margin: 0 auto;
}

/* Contact Card Layout */
.contact-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

/* Contact Info Side */
.contact-info {
  flex: 1;
  min-width: 320px;
  background-color: #14121A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  background: linear-gradient(135deg, rgba(74, 59, 120, 0.15) 0%, rgba(54, 43, 87, 0.15) 100%);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: #8B7AB8;
}

.contact-details {
  color: #94929E;
}

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

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

.service-tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-tag {
  background-color: rgba(74, 59, 120, 0.1);
  border: 1px solid rgba(74, 59, 120, 0.2);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #8B7AB8;
  transition: all 0.3s ease;
}

.service-tag:hover {
  background-color: rgba(74, 59, 120, 0.2);
  transform: translateY(-2px);
}

/* Forms Styling */
.form-box {
  flex: 1.5;
  min-width: 320px;
  background-color: #14121A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.form-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(139, 122, 184, 0.3);
}

.form-box h3 {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #CCC;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFF;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #8B7AB8;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(139, 122, 184, 0.2);
}

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

/* Fixed dropdown styling */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  color: #FFF;
}

/* Fix select option styling */
.form-group select option {
  background-color: #1A1721;
  color: #FFF;
  padding: 1rem;
}

/* Fix the placeholder duplication issue */
.form-group select[required]:invalid {
  color: rgba(255, 255, 255, 0.5);
}

.form-group select:focus {
  color: #FFF;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.form-submit-btn {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #4A3B78, #6B5A9A);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, #5A4B88, #7B6AAA);
  transform: translateY(-2px);
}

/* Success Message Styles */
.success-message {
  display: none;
  background-color: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
  color: #2ecc71;
  text-align: center;
}

.success-message.visible {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Loading spinner */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error message */
.error-message {
  display: none;
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
  color: #e74c3c;
  text-align: center;
}

.error-message.visible {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Advanced form styling for premium look */
.form-box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(74, 59, 120, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Form focus highlight animation */
@keyframes highlight {
  0% { box-shadow: 0 0 0 0 rgba(139, 122, 184, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(139, 122, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 122, 184, 0); }
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  animation: highlight 1s ease-in-out;
}

/* Layout and section styles */
.section {
  padding: 6rem 0;
}

/* Enhanced Responsive styles */
/* Large screens (laptops/desktops) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    margin: 0 auto;
  }
  
  .contact-container {
    gap: 3rem;
  }
}

/* Medium screens (tablets, small laptops) */
@media (max-width: 1199px) and (min-width: 993px) {
  .container {
    max-width: 960px;
    margin: 0 auto;
  }
  
  .contact-container {
    gap: 2rem;
  }
}

/* Small screens (tablets) */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }
  
  .contact-info,
  .form-box {
    width: 100%;
  }
  
  .section {
    padding: 5rem 0;
  }
}

/* Extra small screens (phones) */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .hero {
    padding: 4rem 0;
  }
  
  .subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .form-box, 
  .contact-info {
    padding: 1.5rem;
    min-width: unset;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .form-group label {
    font-size: 0.95rem;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.7rem;
    font-size: 0.95rem;
  }
}
