/* ==========================================================================
   STYLE DU MODULE DE SOUSCRIPTION SAAS DENTAL CLINIC MANAGER
   ========================================================================== */

:root {
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #0f766e 60%, #1e3a8a 100%);
  --teal-primary: #0d9488;
  --teal-dark: #0f766e;
  --slate-dark: #0f172a;
  --text-main: #1e293b;
  --glass-panel: #ffffff;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background: var(--bg-gradient) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  padding: 40px 15px;
  min-height: 100vh;
  margin: 0;
}

.landing-header {
  text-align: center;
  margin-bottom: 40px;
}

.landing-header h1 {
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.landing-header p {
  color: #cbd5e1;
  font-size: 1.1rem;
}

/* Grille Tarifaire */
.pricing-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 25px;
  margin-bottom: 45px;
  width: 100%;
}

.pricing-card {
  background: var(--glass-panel);
  color: var(--text-main);
  border-radius: 16px;
  padding: 30px;
  width: 320px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.selected {
  border-color: var(--teal-primary);
}

.pricing-card.selected::after {
  content: "\f058";
  font-family: FontAwesome;
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--teal-primary);
  font-size: 20px;
}

.pricing-card h3 {
  font-weight: 700;
  margin-top: 0;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: #475569;
}

.pricing-sub {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--slate-dark);
  margin: 15px 0;
}

.price span {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
  font-size: 13px;
  color: #475569;
}

.pricing-features li {
  margin-bottom: 10px;
}

.pricing-features li i {
  color: #10b981;
  margin-right: 8px;
}

/* Boîte de formulaire */
.form-signup-box {
  background: var(--glass-panel);
  color: var(--text-main);
  border-radius: 18px;
  padding: 35px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.form-signup-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 25px;
  color: var(--slate-dark);
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 10px 0 15px;
}

.form-control {
  height: 44px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

textarea.form-control {
  height: auto;
}

.form-control:focus {
  border-color: var(--teal-primary);
  box-shadow: none;
}

label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

/* Boutons */
.btn-saas-primary {
  background-color: var(--teal-primary) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.btn-saas-primary:hover,
.btn-saas-primary:focus {
  background-color: var(--teal-dark) !important;
}

.btn-saas-outline {
  background: #fff;
  color: var(--teal-dark) !important;
  font-weight: 700;
  font-size: 15px;
  padding: 11px;
  border-radius: 8px;
  border: 2px solid var(--teal-primary);
}

.btn-saas-outline:hover {
  background: #f0fdfa;
}

/* Honeypot anti-robots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ==========================================================================
   UPLOAD DU LOGO (une seule zone cliquable)
   ========================================================================== */
.logo-upload {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  font-weight: normal;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}

.logo-upload:hover {
  border-color: var(--teal-primary);
  background: #f0fdfa;
}

.logo-preview {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
}

.logo-preview i {
  font-size: 24px;
  margin-bottom: 4px;
}

.logo-preview.has-image {
  background: #fff;
  border: 1px solid #e2e8f0;
}

.logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-upload-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}

/* Bootstrap 3 force display:block sur input[type=file] : on le masque proprement */
.logo-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* ==========================================================================
   PAGE DE CHOIX : ESSAI OU PAIEMENT
   ========================================================================== */
.onboard-logo {
  max-height: 80px;
  max-width: 180px;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.onboard-alert {
  max-width: 700px;
  margin: 0 auto 25px;
}

.choice-card {
  cursor: default;
}

.choice-card .choice-action {
  margin-top: auto;
}

.choice-card.disabled {
  opacity: 0.6;
}

.choice-card.disabled:hover {
  transform: none;
}

.choice-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #ccfbf1;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.choice-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
}

.onboard-success-icon {
  font-size: 46px;
  color: var(--teal-primary);
  margin-bottom: 10px;
}

/* Opérateurs Mobile Money */
.operateurs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.operateur-tile {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.operateur-tile input {
  position: absolute;
  opacity: 0;
}

.operateur-tile span {
  display: block;
  text-align: center;
  padding: 14px 8px;
  border: 2px solid #e2e8f0;
  border-left: 6px solid var(--op-color, #64748b);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.operateur-tile input:checked + span {
  border-color: var(--teal-primary);
  border-left-color: var(--op-color, var(--teal-primary));
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.operateur-tile input:focus-visible + span {
  outline: 2px solid var(--teal-primary);
  outline-offset: 2px;
}

.instructions-paiement {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #134e4a;
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVE (SMARTPHONES ET TABLETTES)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  .landing-header h1 {
    font-size: 1.8rem;
  }

  .landing-header p {
    font-size: 0.95rem;
  }

  .pricing-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .pricing-card {
    width: 100%;
    max-width: 500px;
  }

  .form-signup-box {
    padding: 20px 15px;
  }

  .logo-upload {
    flex-direction: column;
    text-align: center;
  }

  .operateurs-grid {
    grid-template-columns: 1fr;
  }
}
