/* Modern Contact Page Styles */

.modern-contact-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f4ff 0%, white 100%);
  min-height: 100vh;
}

/* Hero Section */
.contact-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #744aab, #a27fcf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: 1.3rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Contact Form */
.contact-form-wrapper {
  order: 1;
}

.contact-form-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* Form Styles */
.modern-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1rem;
  z-index: 2;
}

.form-control {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafafa;
  color: #333;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: #744aab;
  background: white;
  box-shadow: 0 0 0 3px rgba(116, 74, 171, 0.1);
}

.form-control:focus + .input-wrapper i {
  color: #744aab;
}

.form-control.is-valid {
  border-color: #28a745;
  background: white;
}

.form-control.is-invalid {
  border-color: #dc3545;
  background: white;
}

.form-group.error .input-wrapper i {
  color: #dc3545;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Submit Button */
.btn-contact-submit {
  background: linear-gradient(135deg, #744aab, #a27fcf);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-contact-submit:hover {
  background: linear-gradient(135deg, #5e3989, #744aab);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(116, 74, 171, 0.3);
}

.btn-contact-submit:active {
  transform: translateY(0);
}

/* Contact Info */
.contact-info-wrapper {
  order: 2;
}

@media (max-width: 968px) {
  .contact-info-wrapper {
    order: 1;
  }
  
  .contact-form-wrapper {
    order: 2;
  }
}

.contact-info-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
  margin-bottom: 2rem;
}

.contact-info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.contact-info-card > p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.method-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #744aab, #a27fcf);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.method-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.method-info p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-link {
  color: #744aab;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #5e3989;
}

/* FAQ Quick Links */
.faq-quick-links {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.faq-quick-links h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.faq-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #666;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.faq-link:hover {
  background: #e9ecef;
  color: #744aab;
  transform: translateX(5px);
}

.faq-link i {
  color: #744aab;
  font-size: 1rem;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e8e8e8;
  border-top: 4px solid #744aab;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner p {
  color: #666;
  margin: 0;
  font-weight: 600;
}

/* Message Toast */
.message-toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: white;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 400px;
  opacity: 0;
  visibility: hidden;
}

.message-toast.show {
  transform: translateX(0);
}

.message-toast.success {
  border-left: 4px solid #28a745;
}

.message-toast.error {
  border-left: 4px solid #dc3545;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  font-size: 1.2rem;
}

.message-toast.success .toast-icon {
  color: #28a745;
}

.message-toast.error .toast-icon {
  color: #dc3545;
}

.toast-message {
  color: #333;
  font-weight: 500;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-contact-section {
    padding: 4rem 0;
  }
  
  .contact-title {
    font-size: 2.5rem;
  }
  
  .contact-subtitle {
    font-size: 1.1rem;
  }
  
  .contact-form-card {
    padding: 2rem;
  }
  
  .form-header h2 {
    font-size: 1.5rem;
  }
  
  .contact-info-card {
    padding: 1.5rem;
  }
  
  .message-toast {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .contact-form-card {
    padding: 1.5rem;
  }
  
  .form-control {
    padding: 0.875rem 0.875rem 0.875rem 2.5rem;
  }
  
  .input-wrapper i {
    left: 0.875rem;
    font-size: 0.9rem;
  }
}

/* FAQ Modal Styles */
.faq-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
}

.faq-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.faq-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.faq-modal {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(50px);
  transition: transform 0.3s ease;
}

.faq-modal-overlay.show .faq-modal {
  transform: scale(1) translateY(0);
}

.faq-modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.faq-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.faq-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.faq-modal-content {
  padding: 1rem 2rem 2rem;
}

/* FAQ Content Styles */
.faq-content h4 {
  color: #333;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-content h4 i {
  color: #744aab;
}

.faq-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Plan Recommendations */
.plan-recommendation {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.rec-item {
  padding: 1.5rem;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.rec-item:hover {
  border-color: #744aab;
  box-shadow: 0 5px 15px rgba(116, 74, 171, 0.1);
}

.rec-item.featured {
  border-color: #744aab;
  background: linear-gradient(135deg, #f8f4ff 0%, white 100%);
}

.rec-item h4 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rec-item h4 i {
  color: #744aab;
}

.rec-item p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.rec-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rec-item li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: #666;
  position: relative;
  padding-left: 1.5rem;
}

.rec-item li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

/* Payment Info Styles */
.payment-intro {
  background: linear-gradient(135deg, #f8f4ff 0%, white 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.asaas-info {
  margin: 2rem 0;
}

.asaas-header h4 {
  color: #333;
  margin-bottom: 1rem;
}

.asaas-benefits {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.benefit-item i {
  color: #744aab;
  font-size: 1.2rem;
  margin-top: 0.25rem;
}

.benefit-item h5 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.benefit-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.payment-methods {
  margin: 2rem 0;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.method-card:hover {
  border-color: #744aab;
  transform: translateY(-2px);
}

.method-card i {
  font-size: 2rem;
  color: #744aab;
  margin-bottom: 0.5rem;
}

.method-card span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.guarantee-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #e8f5e8;
  border-radius: 12px;
  margin-top: 2rem;
}

.guarantee-box i {
  font-size: 2rem;
  color: #28a745;
}

.guarantee-box h5 {
  margin: 0 0 0.25rem 0;
  color: #333;
  font-weight: 600;
}

.guarantee-box p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Process Steps */
.process-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.process-steps {
  margin: 2rem 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.step-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.step-item.final {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  border: 2px solid #28a745;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #744aab, #a27fcf);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-icon {
  width: 40px;
  height: 40px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h5 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-weight: 600;
}

.step-content p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.features-highlight {
  margin: 2rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: #744aab;
  transform: translateY(-2px);
}

.feature-card i {
  font-size: 2rem;
  color: #744aab;
  margin-bottom: 0.5rem;
}

.feature-card span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

/* CTA Styles */
.cta-box {
  background: linear-gradient(135deg, #744aab, #a27fcf);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

.cta-box p {
  color: white !important;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #744aab;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #f0f0f0;
  color: #5e3989;
  transform: translateY(-2px);
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
  .faq-modal-overlay {
    padding: 1rem;
  }
  
  .faq-modal {
    max-height: 95vh;
  }
  
  .faq-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .faq-modal-content {
    padding: 1rem 1.5rem 1.5rem;
  }
  
  .faq-modal-header h3 {
    font-size: 1.25rem;
  }
  
  .plan-recommendation {
    grid-template-columns: 1fr;
  }
  
  .methods-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
  }
}
