/* Страница персонализации: загрузка своей 3D-модели */

.personalization-page {
  padding: 48px 0 80px;
  background: linear-gradient(180deg, #f8f9fa 0%, #f0f0f0 100%);
  min-height: 70vh;
}

.personalization-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero-блок */
.personalization-hero {
  text-align: center;
  margin-bottom: 48px;
}

.personalization-title {
  font-size: 32px;
  font-weight: 700;
  color: #313131;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.personalization-title i {
  color: #d5e300;
}

.personalization-intro {
  font-size: 17px;
  color: #555;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* Кратко этапы */
.personalization-process-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  list-style: none;
  margin: 0 0 40px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: #555;
}

.personalization-process-inline li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.personalization-process-inline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d5e300;
  color: #313131;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

/* Подсказка гостю */
.personalization-guest-hint {
  text-align: left;
  background: rgba(213, 227, 0, 0.12);
  border: 1px solid rgba(213, 227, 0, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 20px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

.personalization-guest-hint p {
  margin: 0;
}

.personalization-guest-hint i {
  margin-right: 8px;
  color: #6b6b00;
}

/* Баннер импорта настроек */
.personalization-prefs-banner {
  margin-bottom: 20px;
}

.personalization-prefs-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(213, 227, 0, 0.18) 0%, rgba(255, 255, 255, 0.95) 55%);
  border: 1px solid rgba(213, 227, 0, 0.4);
  border-radius: 12px;
}

.personalization-prefs-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(213, 227, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3d3d00;
  font-size: 18px;
  flex-shrink: 0;
}

.personalization-prefs-banner-text {
  flex: 1;
  min-width: 200px;
}

.personalization-prefs-banner-text strong {
  display: block;
  font-size: 15px;
  color: #313131;
  margin-bottom: 6px;
}

.personalization-prefs-summary {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.45;
}

.personalization-prefs-edit-link {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
}

/* Размер: range + output */
.personalization-size-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.personalization-size-range {
  flex: 1;
  min-width: 180px;
  height: 6px;
  accent-color: #d5e300;
  cursor: pointer;
}

.personalization-size-output {
  font-weight: 700;
  font-size: 15px;
  color: #313131;
  min-width: 4rem;
}

.personalization-field-hint {
  font-size: 12px;
  color: #888;
  margin: 8px 0 0;
  line-height: 1.4;
}

.personalization-form .personalization-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.personalization-page-swatch {
  width: 36px;
  height: 36px;
}

.personalization-extras-group {
  padding-top: 4px;
}

.personalization-extras-label {
  display: block;
  font-weight: 600;
  color: #313131;
  margin-bottom: 10px;
  font-size: 14px;
}

.personalization-extra-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  user-select: none;
}

.personalization-extra-row input {
  width: 18px;
  height: 18px;
  accent-color: #d5e300;
  cursor: pointer;
  flex-shrink: 0;
}

.personalization-extra-row:last-of-type {
  margin-bottom: 0;
}

/* Блок «нужно войти» */
.auth-required-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 48px 32px;
  text-align: center;
  border: 1px solid rgba(213, 227, 0, 0.3);
}

.auth-required-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #313131 0%, #454545 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d5e300;
  font-size: 28px;
}

.auth-required-card h3 {
  font-size: 22px;
  color: #313131;
  margin-bottom: 10px;
}

.auth-required-card p {
  color: #555;
  margin-bottom: 24px;
  font-size: 15px;
}

.auth-required-card .btn-accent {
  display: inline-block;
  background: #d5e300;
  color: #313131;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.auth-required-card .btn-accent:hover {
  background: #c4d000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(213, 227, 0, 0.4);
}

/* Секции */
.personalization-section {
  margin-bottom: 40px;
}

.section-heading {
  font-size: 20px;
  font-weight: 700;
  color: #313131;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 3px solid #d5e300;
  width: fit-content;
}

.section-heading i {
  color: #d5e300;
}

/* Карточка формы */
.form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 32px;
  border: 1px solid #eee;
}

.personalization-form .form-group {
  margin-bottom: 22px;
}

.personalization-form label {
  display: block;
  font-weight: 600;
  color: #313131;
  margin-bottom: 8px;
  font-size: 14px;
}

.personalization-form .required {
  color: #c62828;
}

.personalization-form input[type="text"],
.personalization-form input[type="number"],
.personalization-form select,
.personalization-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.personalization-form input:focus,
.personalization-form select:focus,
.personalization-form textarea:focus {
  outline: none;
  border-color: #d5e300;
  box-shadow: 0 0 0 3px rgba(213, 227, 0, 0.2);
}

.personalization-form textarea {
  resize: vertical;
  min-height: 88px;
}

.personalization-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 560px) {
  .personalization-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Зона загрузки файла */
.file-group .file-upload-zone {
  position: relative;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
  border-color: #d5e300;
  background: rgba(213, 227, 0, 0.06);
}

.file-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-text {
  display: block;
  font-size: 16px;
  color: #555;
  margin-bottom: 6px;
}

.file-upload-text i {
  margin-right: 8px;
  color: #d5e300;
}

.file-upload-hint {
  font-size: 13px;
  color: #888;
}

.file-upload-zone.has-file .file-upload-text {
  color: #2e7d32;
  font-weight: 600;
}

.file-upload-zone.has-file .file-upload-text::before {
  content: '✓ ';
  color: #d5e300;
}

/* Кнопка отправки */
.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  background: #d5e300;
  color: #313131;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover:not(:disabled) {
  background: #c4d000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(213, 227, 0, 0.4);
}

.btn-submit:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Список заявок */
.requests-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.request-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.request-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.request-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.request-filename {
  font-weight: 600;
  color: #313131;
  word-break: break-all;
  font-size: 15px;
}

.request-status {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.request-status--new { background: #e3f2fd; color: #1565c0; }
.request-status--review { background: #fff3e0; color: #e65100; }
.request-status--quote { background: #f3e5f5; color: #6a1b9a; }
.request-status--accepted { background: #e8f5e9; color: #2e7d32; }
.request-status--printing { background: #e0f7fa; color: #006064; }
.request-status--done { background: #c8e6c9; color: #1b5e20; }
.request-status--cancelled { background: #ffebee; color: #c62828; }

.request-card-body {
  padding: 20px;
}

.request-card-body p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #555;
}

.request-card-body p:last-of-type {
  margin-bottom: 0;
}

.request-card-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.btn-delete-request {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(198, 40, 40, 0.1);
  color: #c62828;
  border: 1px solid rgba(198, 40, 40, 0.3);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-delete-request:hover {
  background: rgba(198, 40, 40, 0.15);
  border-color: #c62828;
}

.btn-delete-request:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.request-date {
  margin-top: 12px !important;
  font-size: 13px !important;
  color: #888 !important;
}

.requests-empty,
.requests-error {
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #ddd;
  color: #666;
  font-size: 15px;
}

.requests-error {
  color: #c62828;
  border-color: #ffcdd2;
  background: #ffebee;
}

@media (max-width: 600px) {
  .personalization-page {
    padding: 32px 0 60px;
  }

  .personalization-container {
    padding: 0 16px;
  }

  .personalization-title {
    font-size: 26px;
  }

  .personalization-intro {
    font-size: 15px;
  }

  .form-card {
    padding: 24px 20px;
  }

  .section-heading {
    font-size: 18px;
  }

  .file-upload-zone {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .personalization-page {
    padding: 24px 0 48px;
  }

  .personalization-container {
    padding: 0 14px;
  }

  .personalization-title {
    font-size: 22px;
    gap: 8px;
  }

  .personalization-intro {
    font-size: 14px;
  }

  .form-card {
    padding: 20px 16px;
  }

  .section-heading {
    font-size: 16px;
  }

  .btn-submit {
    padding: 14px 20px;
    font-size: 15px;
  }
}
