/* ================================
   CONTACT SALES MODAL STYLES
   All visual styling for ContactSalesModal.tsx
   ================================ */

/* Modal Overlay & Base */
.contact-modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.contact-modal-content {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 60rem;
  max-height: 85vh;
  overflow: hidden;
  animation: slideUp 0.2s ease-out;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================================
   SUCCESS STATE STYLES
   ================================ */
.success-container {
  padding: 2rem;
  text-align: center;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: #dcfce7; /* green-100 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.checkmark {
  width: 2rem;
  height: 2rem;
  color: #16a34a; /* green-600 */
}

.success-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111827; /* gray-900 */
  margin-bottom: 1rem;
}

.success-message {
  color: #4b5563; /* gray-600 */
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.success-button {
  background: #2563eb; /* blue-600 */
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.success-button:hover {
  background: #1d4ed8; /* blue-700 */
}

/* ================================
   MODAL HEADER STYLES
   ================================ */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

.header-content {
  flex: 1;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111827; /* gray-900 */
  margin: 0 0 0.25rem 0;
}

.modal-subtitle {
  color: #4b5563; /* gray-600 */
  margin: 0;
}

.close-button {
  padding: 0.5rem;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background: #f3f4f6; /* gray-100 */
}

.close-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #6b7280; /* gray-500 */
}

/* ================================
   MODAL BODY LAYOUT
   ================================ */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* ================================
   CONTACT SECTION (LEFT SIDE)
   ================================ */
.contact-section {
  background: #f9fafb; /* gray-50 */
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827; /* gray-900 */
  margin: 0;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Contact Cards */
.contact-card {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.2);
}

/* Contact Card Variants */
.contact-card-call {
  background: #eff6ff; /* blue-50 */
}
.contact-card-call:hover {
  background: #dbeafe; /* blue-100 */
}

.contact-card-email {
  background: #f0fdf4; /* green-50 */
}
.contact-card-email:hover {
  background: #dcfce7; /* green-100 */
}

.contact-card-demo {
  background: #faf5ff; /* purple-50 */
}
.contact-card-demo:hover {
  background: #f3e8ff; /* purple-100 */
}

.contact-card-whatsapp {
  background: #fff7ed; /* orange-50 */
}
.contact-card-whatsapp:hover {
  background: #ffedd5; /* orange-100 */
}

/* Contact Icons */
.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.contact-icon-call {
  background: #2563eb; /* blue-600 */
}

.contact-icon-email {
  background: #16a34a; /* green-600 */
}

.contact-icon-demo {
  background: #9333ea; /* purple-600 */
}

.contact-icon-whatsapp {
  background: #ea580c; /* orange-600 */
}

.contact-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

/* Contact Info */
.contact-info {
  flex: 1;
}

.contact-title {
  font-weight: 600;
  color: #111827; /* gray-900 */
  margin: 0 0 0.125rem 0;
}

.contact-detail {
  color: #4b5563; /* gray-600 */
  margin: 0 0 0.125rem 0;
}

.contact-note {
  font-size: 0.75rem;
  color: #6b7280; /* gray-500 */
  margin: 0;
}

/* Business Hours */
.business-hours {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hours-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.hours-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #4b5563; /* gray-600 */
  margin-right: 0.5rem;
}

.hours-title {
  font-weight: 600;
  color: #111827; /* gray-900 */
  margin: 0;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.day {
  color: #4b5563; /* gray-600 */
}

.time {
  color: #111827; /* gray-900 */
  font-weight: 500;
}


/* ================================
   FORM SECTION (RIGHT SIDE)
   ================================ */
.form-section {
  padding: 1rem;
  background: white;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Form Rows and Groups */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

/* Form Labels */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151; /* gray-700 */
  margin-bottom: 0.5rem;
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.5rem;
  background: white;
  color: #111827; /* gray-900 */
  font-size: 0.875rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input::-moz-placeholder {
  color: #9ca3af; /* gray-400 */
}

.form-input::placeholder {
  color: #9ca3af; /* gray-400 */
}

.form-input:focus {
  border-color: #2563eb; /* blue-600 */
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Form Select */
.form-select {
  cursor: pointer;
}

/* Form Textarea */
.form-textarea {
  resize: vertical;
  min-height: 6rem;
}

/* Submit Button */
.submit-button {
  width: 100%;
  background: #2563eb; /* blue-600 */
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.submit-button:hover:not(:disabled) {
  background: #1d4ed8; /* blue-700 */
}

.submit-button:disabled {
  background: #93c5fd; /* blue-300 */
  cursor: not-allowed;
}

.submit-icon {
  width: 1rem;
  height: 1rem;
}

/* Loading Spinner */
.loading-spinner {
  width: 1.25rem;
  height: 1.25rem;
  animation: spin 1s linear infinite;
  margin-right: 0.75rem;
}

.spinner-circle {
  opacity: 0.25;
}

.spinner-path {
  opacity: 0.75;
}

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

/* Privacy Notice */
.privacy-notice {
  font-size: 0.75rem;
  color: #6b7280; /* gray-500 */
  text-align: center;
  margin: 0.75rem 0 0 0;
  line-height: 1.4;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Large screens and below (1024px) */
@media (max-width: 1024px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
  
  .contact-modal-content {
    max-width: 48rem;
  }
}

/* Medium screens and below (768px) */
@media (max-width: 768px) {
  .contact-modal-overlay {
    padding: 0.5rem;
  }
  
  .contact-modal-content {
    max-height: 95vh;
  }
  
  .modal-header,
  .contact-section,
  .form-section {
    padding: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.125rem;
  }
}

/* Small screens and below (640px) */
@media (max-width: 640px) {
  .contact-modal-overlay {
    padding: 0.25rem;
  }
  
  .contact-modal-content {
    border-radius: 0.5rem;
  }
  
  .modal-header,
  .contact-section,
  .form-section {
    padding: 0.75rem;
  }
  
  .contact-card {
    padding: 0.75rem;
  }
  
  .contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.75rem;
  }
  
  .contact-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .business-hours {
    padding: 0.75rem;
  }
}

/* ================================
   ACCESSIBILITY & POLISH
   ================================ */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .contact-modal-overlay,
  .contact-modal-content,
  .contact-card,
  .form-input,
  .submit-button,
  .close-button {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .contact-modal-content {
    border: 2px solid #000;
  }
  
  .form-input {
    border-width: 2px;
  }
  
  .contact-card {
    border-width: 2px;
  }
}

/* Focus visible for keyboard navigation */
.contact-card:focus-visible,
.close-button:focus-visible,
.form-input:focus-visible,
.submit-button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
