/* ═════════════════════════════════════════════════════════════
   AUDITORÍA EXPRESS PREMIUM - CSS STYLE SYSTEM
   Gold & Black Glassmorphism (#C9A84C) with Aurora effects
   ═════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --gold: #C9A84C;
  --gold-glow: rgba(201, 168, 76, 0.4);
  --gold-dim: rgba(201, 168, 76, 0.15);
  --bg-dark: rgba(10, 10, 10, 0.95);
  --bg-card: rgba(20, 20, 20, 0.7);
  --text-light: #F3F4F6;
  --text-dim: #9CA3AF;
  --border-glow: rgba(201, 168, 76, 0.25);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Modal Overlay */
.heph-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.heph-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Container */
.heph-modal-container {
  width: 100%;
  max-width: 650px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px var(--gold-dim);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-body);
  color: var(--text-light);
}

.heph-modal-overlay.active .heph-modal-container {
  transform: translateY(0) scale(1);
}

/* Aurora background decoration */
.heph-modal-aurora {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
  animation: auroraRotate 20s linear infinite;
}

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

/* Close Button */
.heph-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.heph-modal-close:hover {
  background: var(--gold);
  color: #000;
  transform: rotate(90deg);
  box-shadow: 0 0 15px var(--gold);
}

/* Header */
.heph-modal-header {
  padding: 30px 40px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.heph-modal-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.heph-modal-title span {
  color: var(--gold);
}

.heph-modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 5px 0 0 0;
}

/* Progress Bar */
.heph-progress-container {
  margin-top: 20px;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.heph-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, #E6C875 100%);
  box-shadow: 0 0 10px var(--gold);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Steps Content Wrapper */
.heph-steps-wrapper {
  padding: 30px 40px;
  flex: 1;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

/* Individual Step */
.heph-step {
  display: none;
  animation: stepFadeIn 0.5s ease forwards;
}

.heph-step.active {
  display: block;
}

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

/* Grid Layouts for inputs */
.heph-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

@media (max-width: 550px) {
  .heph-grid-2 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .heph-modal-header {
    padding: 25px 20px 15px;
  }
  .heph-steps-wrapper {
    padding: 20px;
  }
  .heph-modal-footer {
    padding: 15px 20px 25px !important;
  }
}

/* Form Fields Styling */
.heph-field {
  margin-bottom: 20px;
  position: relative;
}

.heph-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.heph-label span {
  color: var(--gold);
}

.heph-input, .heph-select, .heph-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  color: #FFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.heph-input:focus, .heph-select:focus, .heph-textarea:focus {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.03);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.15);
}

.heph-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C9A84C'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.heph-select option {
  background: #121212;
  color: #FFF;
}

.heph-textarea {
  resize: vertical;
}

/* Pain Selection Grid */
.heph-pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

.heph-pain-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.heph-pain-card:hover {
  background: rgba(201, 168, 76, 0.03);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateX(4px);
}

.heph-pain-card.selected {
  background: var(--gold-dim);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.1);
}

.heph-pain-text {
  font-size: 0.95rem;
  font-weight: 500;
}

.heph-pain-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.heph-pain-card.selected .heph-pain-checkbox {
  background: var(--gold);
  border-color: var(--gold);
}

.heph-pain-card.selected .heph-pain-checkbox::after {
  content: "✓";
  color: #000;
  font-size: 11px;
  font-weight: 700;
}

/* Radio Card Grid for Budget & Urgency */
.heph-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 500px) {
  .heph-radio-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.heph-radio-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.heph-radio-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.heph-radio-card.selected {
  background: var(--gold-dim);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.1);
}

.heph-radio-card .icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.heph-radio-card .label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
}

.heph-radio-card .desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Error message styling */
.heph-error-msg {
  color: #EF4444;
  font-size: 0.75rem;
  margin-top: 5px;
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.heph-error-msg.show {
  display: block;
}

/* RGPD compliance */
.heph-rgpd-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 20px;
  line-height: 1.4;
}

.heph-rgpd-container input {
  margin-top: 3px;
  accent-color: var(--gold);
}

.heph-rgpd-container a {
  color: var(--gold);
  text-decoration: underline;
}

/* Footer & Navigation */
.heph-modal-footer {
  padding: 20px 40px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.heph-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  outline: none;
}

.heph-btn-back {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.heph-btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}

.heph-btn-next {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
}

.heph-btn-next:hover {
  background: #E6C875;
  box-shadow: 0 4px 20px var(--gold-glow);
  transform: translateY(-1px);
}

.heph-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Success screens & Dynamic Loader */
.heph-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  text-align: center;
}

.heph-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(201, 168, 76, 0.1);
  border-radius: 50%;
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.1);
}

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

.heph-success-container {
  text-align: center;
  padding: 20px 0;
  animation: stepFadeIn 0.6s ease forwards;
}

.heph-success-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  animation: scaleBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleBounce {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Calendar Iframe Styling */
.heph-calendar-wrapper {
  margin-top: 25px;
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  background: #FFF;
}

.heph-calendar-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ROI Download Card */
.heph-roi-card {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.05) 0%, rgba(201, 168, 76, 0.15) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 15px;
  padding: 25px;
  margin-top: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.heph-roi-card h3 {
  font-family: var(--font-title);
  color: #FFF;
  margin: 0 0 10px 0;
  font-size: 1.3rem;
}

.heph-roi-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.heph-btn-download {
  background: var(--gold);
  color: #000;
  padding: 12px 30px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px var(--gold-dim);
  transition: all 0.3s ease;
}

.heph-btn-download:hover {
  background: #E6C875;
  box-shadow: 0 5px 20px var(--gold-glow);
  transform: translateY(-2px);
}
