/* ============================================
   TYPEFORM-STYLE CONSULTATION REQUEST FORM
   Premium Aesthetic - Clean, Minimal, Immersive
   ============================================ */

.consultation-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.consultation-overlay.active {
  opacity: 1;
  visibility: visible;
}

.consultation-modal {
  width: 100%;
  max-width: 720px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  padding: 0 2rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.consultation-overlay.active .consultation-modal {
  transform: translateY(0);
  opacity: 1;
}

.consultation-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 1.5rem;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.consultation-close:hover {
  background: #f9fafb;
  color: #1f2937;
  border-color: #d1d5db;
}

.consultation-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #f3f4f6;
  z-index: 9999;
}

.consultation-progress-bar {
  height: 100%;
  background: #1a2744;
  transition: width 0.5s ease;
}

.consultation-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 2rem 0;
}

.consultation-step {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.consultation-question {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.consultation-question-number {
  font-size: 0.95rem;
  color: #9ca3af;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.consultation-question-number::after {
  content: '→';
  font-size: 1.1rem;
}

.consultation-question h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: #1f2937;
}

.consultation-question h2 strong {
  font-weight: 700;
}

.consultation-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

.consultation-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #1a2744;
  margin-bottom: 1rem;
}

.consultation-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.consultation-inputs > label:not(.consultation-checkbox):not(.consultation-radio) {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: -0.5rem;
}

.consultation-input,
.consultation-select,
.consultation-textarea {
  width: 100%;
  padding: 1.25rem 0;
  border: none;
  border-bottom: 2px solid #e5e7eb;
  border-radius: 0;
  font-size: 1.25rem;
  font-family: inherit;
  color: #1f2937;
  background: transparent;
  transition: border-color 0.2s ease;
}

.consultation-input::placeholder,
.consultation-select::placeholder,
.consultation-textarea::placeholder {
  color: #d1d5db;
  font-weight: 300;
}

.consultation-input:focus,
.consultation-select:focus,
.consultation-textarea:focus {
  outline: none;
  border-bottom-color: #1a2744;
}

.consultation-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
  font-size: 1.25rem;
}

.consultation-select option {
  font-size: 1rem;
}

.consultation-input--small {
  width: 120px;
  text-align: center;
}

.consultation-inline {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.consultation-inline span {
  color: #6b7280;
  font-size: 1.125rem;
}

.consultation-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
}

.consultation-textarea:focus {
  border-color: #1a2744;
}

/* Checkboxes - Letter button style */
.consultation-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
  border: none;
  cursor: pointer;
  position: relative;
}

.consultation-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consultation-checkbox-letter {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  transition: all 0.2s ease;
}

.consultation-checkbox:hover .consultation-checkbox-letter {
  background: #e5e7eb;
}

.consultation-checkbox input:checked ~ .consultation-checkbox-letter {
  background: #1a2744;
  color: white;
}

.consultation-checkbox-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  padding: 0.25rem 0;
}

.consultation-checkbox-label strong {
  font-weight: 600;
  color: #1f2937;
  font-size: 1.125rem;
}

.consultation-checkbox-label small {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.5;
  font-weight: 400;
}

/* Radio buttons - Letter button style */
.consultation-radio {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
  border: none;
  cursor: pointer;
  position: relative;
}

.consultation-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consultation-radio-letter {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  transition: all 0.2s ease;
}

.consultation-radio:hover .consultation-radio-letter {
  background: #e5e7eb;
}

.consultation-radio input:checked ~ .consultation-radio-letter {
  background: #1a2744;
  color: white;
}

.consultation-radio-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  padding: 0.25rem 0;
}

.consultation-radio-label strong {
  font-weight: 600;
  color: #1f2937;
  font-size: 1.125rem;
}

.consultation-radio-label small {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.5;
  font-weight: 400;
}

/* Calendar - Minimal style */
.consultation-calendar {
  margin-top: 1.5rem;
}

.consultation-calendar-label {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  margin: 0 0 1.25rem;
}

.consultation-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

.consultation-calendar-day {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.consultation-calendar-day-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.consultation-time-slot {
  padding: 1rem;
  background: transparent;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #4b5563;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consultation-time-slot:hover {
  border-color: #1a2744;
  background: #f3f0e8;
  color: #1a2744;
}

.consultation-time-slot.selected {
  background: #1a2744;
  color: white;
  border-color: #1a2744;
}

/* Navigation - Typeform style */
.consultation-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.consultation-ok-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: #1a2744;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.consultation-ok-btn:hover:not(:disabled) {
  background: #9b1c1c;
  box-shadow: 0 4px 6px rgba(155, 28, 28, 0.25);
  transform: translateY(-1px);
}

.consultation-ok-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.consultation-ok-btn svg {
  width: 16px;
  height: 16px;
}

.consultation-enter-hint {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 400;
}

.consultation-enter-hint kbd {
  font-family: inherit;
  font-weight: 500;
}

.consultation-nav-arrows {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 100;
}

.consultation-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: white;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.consultation-arrow-btn:hover:not(:disabled) {
  background: #f9fafb;
  color: #1f2937;
  border-color: #d1d5db;
}

.consultation-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Success screen */
.consultation-step--success {
  text-align: center;
  align-items: center;
  justify-content: center;
}

.consultation-success-icon {
  width: 96px;
  height: 96px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: white;
  margin: 0 auto 2rem;
  animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0% {
    transform: scale(0) rotate(-45deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.consultation-summary {
  background: #f9fafb;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: left;
  max-width: 560px;
  margin: 2rem auto;
  border: 1px solid #e5e7eb;
}

.consultation-summary h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1.5rem;
}

.consultation-summary dl {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

.consultation-summary dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.consultation-summary dd {
  font-size: 1rem;
  color: #1f2937;
  margin: 0.375rem 0 0;
  line-height: 1.6;
}

.consultation-done {
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .consultation-modal {
    padding: 0 1.5rem;
  }
  
  .consultation-question h2 {
    font-size: 1.75rem;
  }
  
  .consultation-subtitle {
    font-size: 1rem;
  }
  
  .consultation-input,
  .consultation-select {
    font-size: 1.125rem;
  }
  
  .consultation-calendar-grid {
    grid-template-columns: 1fr;
  }
  
  .consultation-nav-arrows {
    bottom: 1rem;
    right: 1rem;
  }
  
  .consultation-close {
    top: 1rem;
    right: 1rem;
  }
}
