/* Hi-Ai Contact Page Styles */

/* Navigation - Inherit from home page */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-gray);
  z-index: var(--z-fixed);
  transition: all var(--transition-normal);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.nav-brand {
  font-size: var(--text-2xl);
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-brand .text-mint {
  margin-right: -2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  margin: 0;
}

.nav-link {
  color: var(--medium-gray);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--soft-blue);
  text-decoration: none;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-gray);
  margin: 3px 0;
  transition: var(--transition-fast);
}

/* Contact Hero Section */
.contact-hero {
  background: var(--hero-gradient);
  padding: calc(80px + var(--space-20)) 0 var(--space-20) 0;
  text-align: center;
}

.hero-title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
  animation-delay: 0.1s;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto var(--space-12);
  line-height: 1.6;
  animation-delay: 0.3s;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  animation-delay: 0.5s;
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--rounded-xl);
  box-shadow: var(--shadow-md);
  min-width: 120px;
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--mint-green);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--medium-gray);
  font-weight: 600;
}

/* Contact Main Section */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--rounded-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}

.form-header {
  margin-bottom: var(--space-8);
  text-align: center;
}

.form-header h2 {
  color: var(--black);
  margin-bottom: var(--space-4);
}

.form-header p {
  color: var(--medium-gray);
  font-size: var(--text-lg);
}

/* Form Sections */
.form-section {
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--light-gray);
  border-radius: var(--rounded-xl);
  transition: border-color var(--transition-normal);
}

.form-section:hover {
  border-color: var(--soft-blue);
}

.form-section h3 {
  color: var(--deep-blue);
  margin-bottom: var(--space-6);
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.form-section h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--dark-gray);
  font-size: var(--text-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid var(--light-gray);
  border-radius: var(--rounded-lg);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  transition: all var(--transition-normal);
  background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--soft-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-group input:invalid {
  border-color: #ef4444;
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: var(--space-10);
  appearance: none;
}

/* Service Options */
.service-options {
  display: grid;
  gap: var(--space-3);
}

.service-option {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  border: 2px solid var(--light-gray);
  border-radius: var(--rounded-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--white);
}

.service-option:hover {
  border-color: var(--mint-green);
  background: rgba(74, 222, 128, 0.02);
}

.service-option input[type="checkbox"] {
  margin-right: var(--space-3);
  width: 20px;
  height: 20px;
  accent-color: var(--mint-green);
}

.service-option input[type="checkbox"]:checked + .option-content {
  color: var(--deep-blue);
}

.service-option:has(input:checked) {
  border-color: var(--mint-green);
  background: rgba(74, 222, 128, 0.05);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.option-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
}

.option-icon {
  font-size: var(--text-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--light-gray);
  border-radius: var(--rounded-lg);
}

.option-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.option-text strong {
  color: var(--black);
  font-size: var(--text-base);
}

.option-text span {
  color: var(--medium-gray);
  font-size: var(--text-sm);
}

/* Checkbox Group */
.checkbox-group {
  margin-bottom: var(--space-4);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--medium-gray);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--light-gray);
  border-radius: var(--rounded-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.checkbox-label input:checked + .checkmark {
  background-color: var(--mint-green);
  border-color: var(--mint-green);
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  color: var(--white);
  font-weight: bold;
  font-size: 12px;
}

/* Form Submit */
.form-submit {
  text-align: center;
  margin-top: var(--space-8);
}

.form-disclaimer {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--medium-gray);
  font-style: italic;
}

/* Contact Info Sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-card {
  background: var(--white);
  border-radius: var(--rounded-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
}

.contact-card h3 {
  color: var(--deep-blue);
  margin-bottom: var(--space-4);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--rounded-lg);
  background: var(--light-gray);
  transition: all var(--transition-normal);
}

.contact-method:hover {
  background: rgba(56, 189, 248, 0.05);
  transform: translateX(4px);
}

.method-icon {
  font-size: var(--text-2xl);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: var(--rounded-lg);
  flex-shrink: 0;
}

.method-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.method-content strong {
  color: var(--black);
  font-size: var(--text-base);
}

.method-content span {
  color: var(--deep-blue);
  font-weight: 600;
  font-size: var(--text-base);
}

.method-content small {
  color: var(--medium-gray);
  font-size: var(--text-xs);
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--soft-blue);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: var(--light-gray);
  cursor: pointer;
  font-weight: 600;
  color: var(--black);
  transition: all var(--transition-normal);
}

.faq-question:hover {
  background: rgba(56, 189, 248, 0.05);
}

.faq-toggle {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--soft-blue);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-4);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  background: var(--white);
}

.faq-item.active .faq-answer {
  padding: var(--space-4);
  max-height: 200px;
}

.faq-answer p {
  color: var(--medium-gray);
  line-height: 1.6;
  margin: 0;
}

/* Success Message Modal */
.success-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.success-message.show {
  opacity: 1;
  visibility: visible;
}

.success-content {
  background: var(--white);
  border-radius: var(--rounded-2xl);
  padding: var(--space-10);
  text-align: center;
  max-width: 500px;
  margin: var(--space-4);
  box-shadow: var(--shadow-xl);
  transform: scale(0.8);
  transition: all var(--transition-normal);
}

.success-message.show .success-content {
  transform: scale(1);
}

.success-icon {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-4);
}

.success-content h3 {
  color: var(--mint-green);
  margin-bottom: var(--space-4);
}

.success-content p {
  margin-bottom: var(--space-6);
}

/* Footer */
.footer {
  background-color: var(--black);
  color: var(--white);
  padding: var(--space-12) 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-brand {
  font-size: var(--text-2xl);
  font-weight: 800;
}

.footer-brand .text-mint {
  margin-right: -2px;
}

.footer-text {
  color: var(--medium-gray);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  color: var(--medium-gray);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  .contact-info {
    order: -1;
  }
  
  .nav-buttons {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .hero-stats {
    gap: var(--space-4);
  }
  
  .stat-item {
    min-width: 100px;
    padding: var(--space-4);
  }
  
  .contact-form-wrapper {
    padding: var(--space-6);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .service-option {
    padding: var(--space-3);
  }
  
  .option-content {
    gap: var(--space-2);
  }
  
  .option-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }
  
  .contact-methods {
    gap: var(--space-4);
  }
  
  .contact-method {
    padding: var(--space-3);
  }
  
  .method-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }
  
  .footer-content {
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: calc(80px + var(--space-12)) 0 var(--space-12) 0;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-item {
    width: 100%;
    max-width: 200px;
  }
  
  .contact-form-wrapper {
    padding: var(--space-4);
  }
  
  .form-section {
    padding: var(--space-4);
  }
  
  .service-option {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  
  .option-content {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-method {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  
  .success-content {
    margin: var(--space-2);
    padding: var(--space-6);
  }
}