/* Stiluri pentru calculatorul de lentile */
#lens-calculator-root {
  max-width: calc(1500px + 5.2325em);
  margin-right: auto;
  margin-left: auto;
  padding-right: 2.617924em;
  padding-left: 2.617924em;
}

/* === CONTINERE PRINCIPALE === */
.lens-calculator {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
}

.lens-calculator-left {
  flex: 2;
}

.lens-calculator-right {
  flex: 1;
  position: sticky;
  top: 120px;
  align-self: start;
  background: white;
  padding: 15px;
  min-width: 320px;
  border: 1px solid #eee;
}

.lens-calculator h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 20px;
  font-weight: 500;
}

/* === SECTIUNI DE FORMULAR === */
.lens-step-section {
  margin-bottom: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eee;
}

.lens-step-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* === BUTONI RADIO === */
.lens-radio-group {
  display: flex;
  gap: 32px;
  align-items: center;
}

.lens-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.lens-radio-title {
  font-weight: 400;
}

.lens-radio-description {
  font-size: 13px;
  color: #666;
}

.lens-category-info {
  margin-top: 12px;
  font-size: 13px;
  color: #888;
  font-style: italic;
}

/* === FORMULAR RECEIPT === */
.lens-prescription-grid {
  display: flex;
  gap: 24px;
}

.lens-eye-group {
  flex: 1;
}

.lens-eye-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.form-group label {
  font-weight: bold;
  color: #555;
  font-size: 14px;
}

.form-control {
  padding: 8px 12px !important;
  border: 1px solid #ddd;
  font-size: 14px;
  border-radius: 0px !important;
  background-color: white;
  width: 100%;
  max-width: 300px;
}

.form-control:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.lens-dp-group {
  margin-top: 16px;
  max-width: 200px;
}

.lens-confirm-group {
  margin-top: 20px;
}

.lens-confirm-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 300;
}

/* === TRANSITIONS === */
.lens-transitions-group {
  display: flex;
  gap: 24px;
  align-items: center;
}

.lens-transitions-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.lens-transitions-title {
  font-weight: 600;
}

.lens-transitions-description {
  font-size: 13px;
  color: #666;
}

/* === ALEGEREA LENTILELOR === */
.lens-type-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lens-type-option {
  border: 1px solid #ccc;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.lens-type-option:hover {
  border-color: #4a6cf7;
}

.lens-type-option.selected {
  border: 2px solid #4a6cf7;
  background: #e7f0ff;
}

.lens-type-title {
  font-weight: 400;
}

.lens-type-description {
  font-size: 13px;
  color: #666;
}

/* === COATINGS === */
.lens-coating-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: start;
}

.lens-coating-option {
  border: 1px solid #ccc;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  min-width: 120px;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s;
}

.lens-coating-option:hover {
  border-color: #4a6cf7;
}

.lens-coating-option.selected {
  border: 2px solid #4a6cf7;
  background: #e7f0ff;
}

.lens-coating-option input[type="radio"] {
  margin-bottom: 8px;
}

.lens-coating-price {
  font-weight: 700;
  margin-top: 8px;
}

/* === PROTECTIE DE LA CALCULATOR === */
.lens-protection-filter-group {
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
  gap: 16px;
}

.lens-protection-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.lens-protection-title {
  font-weight: 600;
}

.lens-protection-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.lens-protection-card {
  border: 2px solid #ddd;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  min-width: 140px;
  text-align: center;
  transition: all 0.3s;
  flex: 1 1 140px;
  max-width: none;
}

.lens-protection-card:hover {
  border-color: #4a6cf7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2);
}

.lens-protection-card.selected {
  border-color: #4a6cf7;
  background: #e7f0ff;
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.lens-protection-image {
  position: relative;
  height: 80px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lens-protection-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lens-protection-placeholder {
  font-size: 32px;
  color: #888;
}

.lens-protection-card-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

/* === FOTOCROM HELIOMAT === */
.lens-heliomat-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.lens-heliomat-card {
  border: 2px solid #ddd;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  min-width: 140px;
  text-align: center;
  transition: all 0.3s;
  flex: 1 1 140px;
  max-width: none;
}

.lens-heliomat-card:hover {
  border-color: #4a6cf7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2);
}

.lens-heliomat-card.selected {
  border-color: #4a6cf7;
  background: #e7f0ff;
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.lens-heliomat-image {
  position: relative;
  height: 80px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lens-heliomat-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lens-heliomat-placeholder {
  font-size: 32px;
  color: #888;
}

.lens-heliomat-card-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  line-height: 1.3;
}

/* === PANELA DREAPTA (SUMMA) === */
.lens-summary-title {
  margin-top: 0;
  margin-bottom: 20px;
}

.lens-product-info {
  margin-bottom: 16px;
}

.lens-product-name {
  font-weight: 400;
}

.lens-product-price {
  color: #888;
  font-size: 14px;
}

.lens-lens-info {
  margin-bottom: 16px;
}

.lens-lens-price {
  font-weight: 400;
}

.lens-category-display {
  font-size: 13px;
  color: #6d2ef7;
}

.lens-total-price {
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 600;
}

.lens-selected-options {
  margin-bottom: 20px;
  padding: 10px;
  background: white;
  border: 1px solid #eee;
}

.lens-option-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 4px 0;
}

.lens-option-item:last-child {
  margin-bottom: 0;
}

.lens-option-label {
  font-weight: 500;
  color: #555;
}

.lens-option-value {
  font-weight: 600;
  color: #333;
  text-align: left;
  max-width: 100%;
  word-wrap: break-word;
}

.lens-message {
  margin-bottom: 12px;
  font-size: 14px;
}

.lens-message.error {
  color: red;
}

.lens-message.success {
  color: green;
}

.lens-add-to-cart-btn {
  width: 100%;
  padding: 12px 0;
  background: #4a6cf7;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.lens-add-to-cart-btn:hover {
  background: #3a5ce6;
}

.lens-add-to-cart-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.lens-add-to-cart-btn.loading {
  background: #ccc;
  cursor: not-allowed;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
  .lens-calculator {
    flex-direction: column;
    gap: 20px;
  }

  .lens-calculator-right {
    min-width: stretch !important;
  }

  .lens-step-section {
    padding: 15px;
  }

  .lens-prescription-grid {
    flex-direction: column;
    gap: 16px;
  }

  .lens-radio-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .lens-transitions-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .form-control {
    max-width: 100%;
  }

  .lens-coating-grid {
    justify-content: start;
  }
}

/* === ФОРМА РЕЦЕПТА === */
.lens-prescription-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.lens-prescription-header {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr 120px;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.lens-prescription-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr 120px;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.lens-prescription-label {
  font-weight: 400;
  color: #333;
  padding: 8px 0;
}

.lens-prescription-param {
  font-weight: 600;
  color: #555;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.lens-prescription-field {
  position: relative;
}

.lens-mobile-select-label {
  display: none;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.lens-prescription-dp-field {
  max-width: 120px;
}

/* === ИНФОРМАЦИОННЫЕ ИКОНКИ === */
.lens-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: bold;
  color: #666;
  cursor: help;
  position: relative;
  flex-shrink: 0;
}

.lens-info-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: #333;
  color: white;
  padding: 12px;
  font-size: 13px;
  font-weight: normal;
  white-space: normal;
  width: 280px;
  max-width: 280px;
  line-height: 1.4;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 1;
  visibility: visible;
}

.lens-info-icon:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  border: 6px solid transparent;
  border-top-color: #333;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
}

/* === МОБИЛЬНАЯ ВЕРСИЯ ПОДСКАЗОК === */
@media (max-width: 768px) {
  #lens-calculator-root {
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1em;
    padding-left: 1em;
  }

  .lens-info-icon {
    position: relative;
  }

  .lens-info-icon[data-tooltip]:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px;
    font-size: 14px;
    font-weight: normal;
    white-space: normal;
    width: 250px;
    max-width: 250px;
    line-height: 1.4;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s,
      visibility 0.3s;
  }

  .lens-info-icon[data-tooltip]:before {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s,
      visibility 0.3s;
  }

  .lens-info-icon.active:after,
  .lens-info-icon.active:before {
    opacity: 1;
    visibility: visible;
  }

  /* Адаптация таблицы для мобильных */
  .lens-prescription-header {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }

  .lens-prescription-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }

  .lens-prescription-param {
    justify-content: flex-start;
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
  }

  .lens-prescription-label {
    font-size: 16px;
    margin-bottom: 12px;
    color: black;
  }

  .lens-prescription-dp-field {
    max-width: none;
  }

  .lens-prescription-table {
    display: block;
  }

  .lens-prescription-header,
  .lens-prescription-row {
    display: block;
  }

  .lens-prescription-field {
    margin-bottom: 16px;
  }

  .lens-prescription-param {
    margin-bottom: 4px;
  }

  .lens-mobile-select-label {
    display: block;
  }
}

.lens-transitions-hint-mobile {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #d9ccff;
  background: #f7f3ff;
  color: #4a2d8a;
  font-size: 12px;
  line-height: 1.4;
}

@media (min-width: 769px) {
  .lens-transitions-hint-mobile {
    display: none;
  }
}

/* === CRIZAL BRANDING === */
.lens-crizal-brand {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.crizal-logo {
  max-height: 40px;
  margin-bottom: 8px;
}

.crizal-tagline {
  font-size: 14px;
  color: #6c757d;
  font-style: italic;
}

/* === COATING OPTIONS === */
.lens-coating-option {
  border: 1px solid #eee;
  border-radius: 0px;
  padding: 16px;
  transition: all 0.3s ease;
  background: white;
  cursor: pointer;
  display: block;
}

.lens-coating-option:hover {
  border-color: #007cba;
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.lens-coating-option.selected {
  border-color: #007cba;
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2);
}

.coating-option-content {
  width: 100%;
}

.coating-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.coating-name {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.coating-price {
  font-weight: 600;
  font-size: 16px;
  color: #007cba;
}

.coating-description {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 12px;
}

.coating-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 12px;
  color: #495057;
}

.feature-item.special {
  background: #e3f2fd;
  color: #1976d2;
}

.feature-dots {
  display: flex;
  gap: 2px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dee2e6;
  transition: all 0.2s ease;
}

.dot.active {
  background: #28a745;
}

.dot.active.blue {
  background: #007bff;
}

/* === TRANSITIONS COLOR SELECTOR === */
.lens-transitions-colors {
  margin-top: 16px;
}

.transitions-color-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.color-option {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #dee2e6;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.color-option:hover {
  border-color: #007cba;
  transform: scale(1.1);
}

.color-option.selected {
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
  transform: scale(1.1);
}

.color-name {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #495057;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.color-option:hover .color-name,
.color-option.selected .color-name {
  opacity: 1;
}

.selected-color-display {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.selected-color-info {
  text-align: center;
}

.selected-color-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.selected-color-description {
  font-size: 14px;
  color: #6c757d;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .lens-coating-option {
    padding: 12px;
  }

  .coating-features {
    flex-direction: column;
    gap: 4px;
  }

  .feature-item {
    justify-content: space-between;
  }

  .transitions-color-selector {
    justify-content: center;
  }

  .color-option {
    width: 50px;
    height: 50px;
  }

  .color-name {
    font-size: 10px;
  }
  .lens-prescription-header > div:nth-child(1) {
    display: none;
  }
}

/* === STILI SIMPLE PENTRU RADIO === */
input[type="radio"] {
  accent-color: #6d2ef7;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

input[type="radio"]:checked {
  accent-color: #6d2ef7;
}

input[type="checkbox"] {
  accent-color: #6d2ef7;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  accent-color: #6d2ef7;
}

/* === STILI PENTRU VALIDARE === */
.validation-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 8px;
  font-weight: 500;
}

.validation-error-small {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.lens-radio-group.error {
  border: 2px solid #dc3545;
  border-radius: 8px;
  padding: 12px;
  background-color: #fff5f5;
}

.lens-type-grid.error {
  border: 2px solid #dc3545;
  border-radius: 8px;
  padding: 12px;
  background-color: #fff5f5;
}

.lens-confirm-group.error {
  border: 2px solid #dc3545;
  border-radius: 8px;
  padding: 12px;
  background-color: #fff5f5;
}

.form-control.error {
  border: 2px solid #dc3545 !important;
  background-color: #fff5f5;
}

.form-control.error:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.lens-full-name {
  font-weight: 600;
  color: #6d2ef7;
}

.lens-eye-params {
  font-family: monospace;
  font-size: 13px;
  color: #333;
}

.lens-calculator-left > div:nth-child(7) {
  padding: 0px;
  border: none;
}

.lens-label-placeholder {
  font-size: 12px !important;
  color: #a6a6a6ee !important;
  font-weight: 300 !important;
}

/* Special-mount notice (semi-rama / fara-rama) */
.lens-special-mount-notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 12px;
  padding: 24px 20px;
  margin-top: 16px;
  text-align: center;
}

.lens-special-mount-notice p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 20px;
}

.lens-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.lens-whatsapp-btn:hover {
  background-color: #1ebe5d;
  color: #fff;
  text-decoration: none;
}

.lens-special-mount-sidebar-hint {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 12px;
}

.lens-whatsapp-btn--sidebar {
  display: flex;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 4px;
}
