@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500&display=swap');

:root {
  --qvc-maroon:       #8D1B3D;
  --qvc-maroon-dark:  #5C1028;
  --qvc-maroon-light: #B5224E;
  --qvc-cream:        #FAF6F0;
  --qvc-gold:         #C9A96E;
}

/* ── Wrapper ───────────────────────────────────────────── */
.qvc-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0;
  background: transparent;
}

/* ── Card ──────────────────────────────────────────────── */
.qvc-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid rgba(141, 27, 61, 0.25);
  border-radius: 4px;
  padding: 44px 40px 40px;
  position: relative;
  overflow: hidden;
  font-family: 'Jost', sans-serif;
  animation: qvcCardIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

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

.qvc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--qvc-maroon-light), var(--qvc-gold), var(--qvc-maroon-light));
}

/* ── Emblem ────────────────────────────────────────────── */
.qvc-emblem {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.qvc-flag {
  width: 44px;
  height: 29px;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.qvc-flag-white {
  width: 30%;
  background: #ffffff;
}

.qvc-flag-maroon {
  flex: 1;
  background: var(--qvc-maroon);
  clip-path: polygon(8px 0%,100% 0%,100% 100%,8px 100%,0% 87.5%,8px 75%,0% 62.5%,8px 50%,0% 37.5%,8px 25%,0% 12.5%);
}

.qvc-emblem-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--qvc-maroon-dark);
  letter-spacing: 0.03em;
  line-height: 1.1;
  display: block;
}

.qvc-emblem-sub {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--qvc-gold);
  margin-top: 3px;
  display: block;
}

/* ── Divider ───────────────────────────────────────────── */
.qvc-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141,27,61,0.2), transparent);
  margin-bottom: 28px;
}

/* ── Form Fields ───────────────────────────────────────── */
.qvc-group {
  margin-bottom: 18px;
}

.qvc-label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qvc-maroon);
  margin-bottom: 7px;
}

.qvc-input,
.qvc-select {
  width: 100%;
  background: rgba(141, 27, 61, 0.04);
  border: 1px solid rgba(141, 27, 61, 0.2);
  border-radius: 3px;
  padding: 12px 15px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #2a0a14;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.qvc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238D1B3D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: rgba(141, 27, 61, 0.04);
  padding-right: 36px;
  cursor: pointer;
}

.qvc-input::placeholder {
  color: rgba(90, 30, 50, 0.3);
}

.qvc-input:focus,
.qvc-select:focus {
  border-color: var(--qvc-maroon);
  background: rgba(141, 27, 61, 0.06);
  box-shadow: 0 0 0 3px rgba(141,27,61,0.08);
}

/* ── CAPTCHA ───────────────────────────────────────────── */
.qvc-captcha-box {
  background: rgba(141, 27, 61, 0.04);
  border: 1px solid rgba(141, 27, 61, 0.2);
  border-radius: 3px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.25s;
}

.qvc-captcha-box.qvc-verified {
  border-color: var(--qvc-maroon);
}

.qvc-captcha-checkbox {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(141, 27, 61, 0.35);
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.qvc-captcha-checkbox:hover {
  border-color: var(--qvc-maroon);
  background: rgba(141,27,61,0.06);
}

.qvc-captcha-checkbox.qvc-checked {
  background: var(--qvc-maroon);
  border-color: var(--qvc-maroon-dark);
}

.qvc-checkmark {
  display: none;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  animation: qvcPop 0.2s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes qvcPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.qvc-captcha-checkbox.qvc-checked .qvc-checkmark {
  display: flex;
}

.qvc-captcha-label {
  font-size: 13px;
  color: rgba(42, 10, 20, 0.6);
  flex: 1;
  user-select: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
}

.qvc-captcha-logo {
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(141, 27, 61, 0.35);
  text-align: right;
  line-height: 1.5;
  font-family: 'Jost', sans-serif;
}

/* ── Submit Button ─────────────────────────────────────── */
.qvc-submit {
  width: 100%;
  margin-top: 26px;
  padding: 14px;
  background: linear-gradient(135deg, var(--qvc-maroon) 0%, var(--qvc-maroon-light) 100%);
  border: 1px solid rgba(141,27,61,0.4);
  border-radius: 3px;
  color: #ffffff;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.qvc-submit:hover:not(:disabled) {
  opacity: 0.88;
  box-shadow: 0 4px 18px rgba(141,27,61,0.3);
}

.qvc-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qvc-submit.qvc-loading span {
  visibility: hidden;
}

.qvc-submit.qvc-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: qvcSpin 0.7s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes qvcSpin {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ── Processing Overlay ────────────────────────────────── */
.qvc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(58, 10, 26, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: qvcFadeIn 0.3s ease;
}

.qvc-overlay.qvc-active {
  display: flex;
}

@keyframes qvcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.qvc-proc-ring {
  width: 52px; height: 52px;
  border: 2px solid rgba(201,169,110,0.25);
  border-top-color: var(--qvc-gold);
  border-radius: 50%;
  animation: qvcSpin 0.9s linear infinite;
}

.qvc-proc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--qvc-cream);
  letter-spacing: 0.05em;
}

.qvc-proc-sub {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qvc-gold);
  opacity: 0.7;
}

.qvc-progress-track {
  width: 200px;
  height: 2px;
  background: rgba(201,169,110,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.qvc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--qvc-maroon-light), var(--qvc-gold));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Footer ────────────────────────────────────────────── */
.qvc-footer {
  margin-top: 22px;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(141, 27, 61, 0.35);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
  .qvc-card {
    padding: 32px 20px 28px;
  }
  .qvc-emblem-title {
    font-size: 17px;
  }
}
