/* =========================================================
   TOTO TUẤN TÚ - WARRANTY REQUEST
   ========================================================= */

.tt-warranty-page,
.tt-warranty-page * {
  box-sizing: border-box;
}

.tt-warranty-page {
  --tt-gold: #a47f36;
  --tt-gold-dark: #866527;
  --tt-black: #171717;
  --tt-text: #444;
  --tt-soft: #747474;
  --tt-border: #e6e2da;
  --tt-bg: #f7f6f3;
  --tt-white: #fff;
  --tt-danger: #b42318;
  --tt-success: #16794b;

  width: 100%;
  margin: 0;
  background: #fff;
  color: var(--tt-text);
  font-family: inherit;
}

.tt-warranty-page input,
.tt-warranty-page textarea,
.tt-warranty-page select,
.tt-warranty-page button {
  font-family: inherit;
}

.tt-warranty-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   HERO
   ========================= */

.tt-warranty-hero {
  padding: 70px 0 54px;
  border-bottom: 1px solid #ece8e1;
  background: linear-gradient(180deg, #faf9f7 0%, #fff 100%);
  text-align: center;
}

.tt-warranty-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--tt-gold);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tt-warranty-hero h1 {
  max-width: 800px;
  margin: 0 auto !important;
  color: var(--tt-black) !important;
  font-size: clamp(34px, 5vw, 52px) !important;
  line-height: 1.16 !important;
  font-weight: 600 !important;
  letter-spacing: -1px !important;
}

.tt-warranty-hero p {
  max-width: 720px;
  margin: 18px auto 0 !important;
  color: #696969 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

.tt-warranty-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding: 9px 14px;
  border: 1px solid #e5ded0;
  border-radius: 999px;
  background: #fff;
  color: #656565;
  font-size: 12px;
}

/* =========================
   BODY
   ========================= */

.tt-warranty-body {
  padding: 52px 0 80px;
}

.tt-warranty-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

/* =========================
   FORM CARD
   ========================= */

.tt-warranty-form-card {
  overflow: hidden;
  border: 1px solid var(--tt-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.045);
}

.tt-warranty-section {
  padding: 32px;
  border-bottom: 1px solid #ece9e3;
}

.tt-warranty-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 25px;
}

.tt-warranty-number {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4efe5;
  color: var(--tt-gold);
  font-size: 13px;
  font-weight: 700;
}

.tt-warranty-section-head h2 {
  margin: 0 !important;
  color: #222 !important;
  font-size: 21px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}

.tt-warranty-section-head p {
  margin: 5px 0 0 !important;
  color: #888 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* =========================
   FORM
   ========================= */

.tt-warranty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.tt-warranty-field {
  min-width: 0;
}

.tt-warranty-field--full {
  grid-column: 1 / -1;
}

.tt-warranty-label {
  display: block;
  margin-bottom: 7px;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.tt-required {
  color: #c02b20;
}

.tt-warranty-input,
.tt-warranty-select,
.tt-warranty-textarea {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 7px !important;
  outline: none !important;
  background: #fff !important;
  color: #333 !important;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tt-warranty-input,
.tt-warranty-select {
  height: 48px !important;
  padding: 0 13px !important;
  font-size: 14px !important;
}

.tt-warranty-textarea {
  min-height: 145px !important;
  padding: 12px 13px !important;
  resize: vertical;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.tt-warranty-input:focus,
.tt-warranty-select:focus,
.tt-warranty-textarea:focus {
  border-color: #b79b67 !important;
  box-shadow: 0 0 0 3px rgba(164, 127, 54, .08) !important;
}

.tt-warranty-input::placeholder,
.tt-warranty-textarea::placeholder {
  color: #aaa;
  opacity: 1;
}

.tt-warranty-help {
  margin-top: 6px;
  color: #999;
  font-size: 11.5px;
  line-height: 1.55;
}

/* =========================
   ISSUE OPTIONS
   ========================= */

.tt-issue-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tt-issue-option {
  position: relative;
  margin: 0 !important;
}

.tt-issue-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tt-issue-option span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: all .2s ease;
}

.tt-issue-option:hover span {
  border-color: #c4af86;
}

.tt-issue-option input:checked + span {
  border-color: var(--tt-gold);
  background: #f8f4ec;
  color: #866527;
  font-weight: 600;
}

/* =========================
   UPLOAD
   ========================= */

.tt-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tt-upload-box {
  min-height: 175px;
  padding: 25px 18px;
  border: 1.5px dashed #cec7bb;
  border-radius: 10px;
  background: #faf9f7;
  text-align: center;
  transition: .2s ease;
}

.tt-upload-box:hover {
  border-color: var(--tt-gold);
  background: #fcfaf6;
}

.tt-upload-icon {
  display: flex;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eee9df;
  color: var(--tt-gold);
  font-size: 21px;
}

.tt-upload-title {
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

.tt-upload-desc {
  max-width: 290px;
  margin: 7px auto 0;
  color: #888;
  font-size: 11.5px;
  line-height: 1.6;
}

.tt-upload-button {
  display: inline-flex !important;
  min-height: 37px;
  margin-top: 13px !important;
  padding: 7px 14px !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6d0c5 !important;
  border-radius: 5px;
  background: #fff;
  color: #555 !important;
  font-size: 12px !important;
  font-weight: 600;
  cursor: pointer;
}

.tt-upload-button:hover {
  border-color: var(--tt-gold) !important;
  color: var(--tt-gold) !important;
}

.tt-upload-input {
  display: none !important;
}

.tt-upload-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.tt-upload-preview:empty {
  display: none;
}

.tt-upload-preview-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #eee;
}

.tt-upload-preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-upload-file-name {
  margin-top: 11px;
  color: #555;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-word;
}

/* =========================
   CONSENT
   ========================= */

.tt-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tt-consent input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0 !important;
  flex: 0 0 17px;
}

.tt-consent label {
  margin: 0 !important;
  color: #666;
  font-size: 12.5px;
  line-height: 1.7;
  cursor: pointer;
}

/* =========================
   SUBMIT
   ========================= */

.tt-warranty-submit-wrap {
  padding: 28px 32px 32px;
  background: #faf9f7;
}

.tt-warranty-submit {
  display: flex !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 6px !important;
  background: #1e1e1e !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .5px;
  cursor: pointer;
  transition: .25s ease;
}

.tt-warranty-submit:hover {
  background: var(--tt-gold-dark) !important;
  transform: translateY(-1px);
}

.tt-warranty-submit:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.tt-submit-note {
  margin-top: 10px;
  color: #999;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

/* =========================
   SIDEBAR
   ========================= */

.tt-warranty-sidebar {
  position: sticky;
  top: 100px;
}

.tt-side-card {
  margin-bottom: 18px;
  padding: 23px;
  border: 1px solid #e4e0d7;
  border-radius: 10px;
  background: #fff;
}

.tt-side-card--dark {
  border-color: #1d1d1d;
  background: #1d1d1d;
  color: #fff;
}

.tt-side-label {
  margin-bottom: 7px;
  color: var(--tt-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.tt-side-card h3 {
  margin: 0 0 10px !important;
  color: #222 !important;
  font-size: 17px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
}

.tt-side-card--dark h3 {
  color: #fff !important;
}

.tt-side-card p {
  margin: 0 !important;
  color: #737373 !important;
  font-size: 12.5px !important;
  line-height: 1.75 !important;
}

.tt-side-card--dark p {
  color: #bbb !important;
}

.tt-side-list {
  margin: 15px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tt-side-list li {
  position: relative;
  margin: 0 0 10px !important;
  padding-left: 20px !important;
  color: #666;
  font-size: 12px;
  line-height: 1.6;
}

.tt-side-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--tt-gold);
  content: "✓";
  font-weight: 700;
}

/* =========================
   ERROR / SUCCESS
   ========================= */

.tt-form-status {
  display: none;
  margin-bottom: 20px;
  padding: 15px 17px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.6;
}

.tt-form-status.is-error {
  display: block;
  border: 1px solid #efc5c0;
  background: #fff5f4;
  color: var(--tt-danger);
}

.tt-form-status.is-success {
  display: block;
  border: 1px solid #badfcd;
  background: #f1fbf6;
  color: var(--tt-success);
}

.tt-warranty-success {
  display: none;
  padding: 60px 30px;
  text-align: center;
}

.tt-warranty-success.is-visible {
  display: block;
}

.tt-success-icon {
  display: flex;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf8f2;
  color: #188553;
  font-size: 28px;
}

.tt-warranty-success h2 {
  margin: 0 !important;
  color: #222 !important;
  font-size: 25px !important;
  font-weight: 600 !important;
}

.tt-ticket-code {
  display: inline-block;
  margin: 18px 0;
  padding: 10px 15px;
  border: 1px solid #ddd4c2;
  border-radius: 5px;
  background: #faf7f0;
  color: #785d28;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.tt-warranty-success p {
  max-width: 560px;
  margin: 0 auto !important;
  color: #777 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {
  .tt-warranty-layout {
    grid-template-columns: 1fr;
  }

  .tt-warranty-sidebar {
    position: static;
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 640px) {
  .tt-warranty-container {
    width: calc(100% - 24px);
  }

  .tt-warranty-hero {
    padding: 43px 0 37px;
  }

  .tt-warranty-hero h1 {
    font-size: 31px !important;
  }

  .tt-warranty-hero p {
    font-size: 14px !important;
  }

  .tt-warranty-hero-note {
    border-radius: 8px;
    line-height: 1.55;
  }

  .tt-warranty-body {
    padding: 28px 0 55px;
  }

  .tt-warranty-section {
    padding: 24px 18px;
  }

  .tt-warranty-grid,
  .tt-upload-grid {
    grid-template-columns: 1fr;
  }

  .tt-warranty-field--full {
    grid-column: auto;
  }

  .tt-warranty-submit-wrap {
    padding: 22px 18px 25px;
  }

  .tt-upload-preview {
    grid-template-columns: repeat(3, 1fr);
  }

  .tt-warranty-section-head h2 {
    font-size: 19px !important;
  }
}
/* =========================================================
   TURNSTILE
   ========================================================= */

.tt-turnstile-wrap {
  margin-top: 22px;
  max-width: 420px;
}

.tt-turnstile-wrap .cf-turnstile {
  width: 100%;
}

@media (max-width: 640px) {
  .tt-turnstile-wrap {
    max-width: 100%;
  }
}