/* Contact Form Styles */

/* Contact Section */
.contact-section {
  padding: 120px 0;
  background-color: #fff;
  position: relative;
  text-align: center;
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Form groups with proper vertical spacing */
.form-group {
  margin-bottom: 20px;
}

/* Form label spacing */
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Sliding Form Container */
.sliding-form-container {
  max-height: 0;
  overflow: hidden;
  margin-bottom: 32px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.sliding-form-container.active {
  max-height: 600px;
  opacity: 1;
  margin-bottom: 32px;
}

/* Contact Form */
.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.04), 0 2px 4px -1px rgba(0,0,0,0.02);
  border: 1px solid #e5e7eb;
  margin-top: 24px;
  transform: translateY(-20px);
  transition: transform 0.3s ease-out 0.2s;
}

.sliding-form-container.active .contact-form {
  transform: translateY(0);
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Contact Input Group */
.contact-input-group {
  display: flex;
  gap: 12px;
}

.country-code {
  flex: 0 0 120px;
  appearance: menulist;
  cursor: pointer;
}

.contact-number {
  flex: 1;
}

/* Contact Button Container */
.contact-button-container {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 24px;
}

/* Contact Button */
.contact-btn {
  background: linear-gradient(135deg, #00d4ff 0, #0099cc 100%);
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0,212,255,0.3);
  min-width: 200px;
  justify-content: center;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
}

.contact-btn.submit-mode {
  background: linear-gradient(135deg, #28a745 0, #20c997 100%);
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
}

.contact-btn.submit-mode:hover {
  box-shadow: 0 12px 40px rgba(40, 167, 69, 0.4);
}

.btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-btn:hover .btn-arrow {
  transform: translateY(2px);
}

.contact-btn.submit-mode .btn-arrow {
  transform: rotate(180deg);
}

/* Button States */
.contact-btn.submit-mode.disabled-empty {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  box-shadow: 0 8px 32px rgba(108, 117, 125, 0.2);
}

.contact-btn.submit-mode.error-state {
  background: linear-gradient(135deg, #6c757d 0%, #dc3545 100%) !important;
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
}

/* Error Message Styles with Fade Transitions */
.error-message {
  color: red;
  font-size: 0.85rem;
  margin-top: 4px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
  display: block;
}

.error-message.show {
  opacity: 1;
  max-height: 50px;
}

/* Notification styles */
.notification--success {
  background: #00d4ff;
}

.notification--error {
  background: #ff4757;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
  min-width: 300px;
  animation: slideInRight 0.3s ease-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.notification__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.notification__message {
  flex: 1;
}

.notification__close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.notification__close:hover {
  opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .contact-input-group {
    flex-direction: column;
  }
  
  .country-code {
    flex: 1;
  }
  
  .contact-btn {
    padding: 12px 24px;
    font-size: 1rem;
    min-width: 180px;
  }
  
  .sliding-form-container.active {
    max-height: 700px;
  }

  .contact-section {
    padding: 80px 0;
  }

  .notification {
    right: 10px;
    left: 10px;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 24px 16px;
  }

  .contact-btn {
    width: 100%;
    padding: 14px 24px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}
