@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   NIGHT THEME – ngjyra të qarta dhe të lexueshme
========================= */
:root {
  --night-bg: #0f172a;
  --night-bg-soft: #1e293b;
  --night-card: #1e293b;
  --night-card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --placeholder: #94a3b8;
  --input-bg: #0f172a;
  --input-border: rgba(255, 255, 255, 0.12);
  --focus-ring: #60a5fa;
  --accent-normal: #fbbf24;
  --accent-surprise: #f472b6;
  --success-green: #22c55e;
  --success-bg: #14532d;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--night-bg);
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   LANGUAGE SWITCH – buton i vogël, ngjyrë guardian
========================= */
#lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9998;
}

#lang-switch .lang-select,
#lang-switch select,
#lang-select.lang-select {
  appearance: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 28px 8px 12px;
  border-radius: 10px;
  border: none;
  background: rgba(250, 204, 21, 0.95);
  color: #1c1917;
  min-width: 0;
  width: auto;
  max-width: 140px;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

#lang-switch .lang-select:hover,
#lang-switch select:hover,
#lang-select.lang-select:hover {
  background: rgba(253, 224, 71, 0.98);
  box-shadow: 0 3px 10px rgba(250, 204, 21, 0.45);
}

#lang-switch .lang-select:active,
#lang-switch select:active,
#lang-select.lang-select:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px rgba(250, 204, 21, 0.4);
}

#lang-switch .lang-select:focus,
#lang-switch select:focus,
#lang-select.lang-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.6);
}

#lang-switch .lang-select,
#lang-switch select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231c1917' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

@media (max-width: 600px) {
  #lang-switch {
    top: 12px;
    right: 12px;
  }
  #lang-switch .lang-select,
  #lang-switch select,
  #lang-select.lang-select {
    padding: 10px 28px 10px 12px;
    font-size: 12px;
    max-width: 120px;
    min-height: 44px;
    min-width: 44px;
  }
}

/* =========================
   CONTAINER – night card
========================= */
.order-container {
  max-width: 760px;
  margin: 48px auto;
  padding: 36px;
  background: var(--night-card);
  border-radius: 18px;
  border: 1px solid var(--night-card-border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* =========================
   HEADINGS – të lexueshme, hierarki i qartë
========================= */
h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 16px;
  color: var(--text-primary);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.section-title {
  margin-top: 32px;
}

/* =========================
   INTRO – teksti dytësor i lexueshëm
========================= */
.order-intro {
  margin-bottom: 36px;
}

.order-intro p {
  color: var(--text-secondary);
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
}

/* =========================================================
   ORDER TYPE – CARDS (YELLOW + PINK | DARK KNIGHT)
========================================================= */
.order-type {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin: 48px 0;
}

@media (max-width: 768px) {
  .order-type {
    grid-template-columns: 1fr;
  }
}

.order-type input {
  display: none;
}

/* BASE CARD */
.order-type label {
  position: relative;
  padding: 34px 30px;
  border-radius: 22px;
  background: var(--night-bg);
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.order-type label:hover {
  transform: translateY(-6px);
}

.order-type label strong {
  font-size: 22px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}

.order-type label small {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* =========================
   NORMAL – YELLOW GUARDIAN
========================= */
.order-type label[data-type="normal"] {
  box-shadow:
    inset 0 0 0 1px rgba(250,204,21,.40),
    0 25px 50px rgba(0,0,0,.7);
}

.order-type label[data-type="normal"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(250,204,21,.38),
    transparent 60%
  );
  pointer-events: none;
}

/* =========================
   SURPRISE – PINK GUARDIAN
========================= */
.order-type label[data-type="surprise"] {
  box-shadow:
    inset 0 0 0 1px rgba(236,72,153,.40),
    0 25px 50px rgba(0,0,0,.7);
}

.order-type label[data-type="surprise"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(244, 114, 182, 0.2),
    transparent 65%
  );
  pointer-events: none;
}

/* Kartat pas zgjedhjes minimizohen me .minimized (kontrollohet nga JS) */

/* =========================================================
   FORM
========================================================= */
form {
  margin-top: 48px;
}

/* =========================
   FORM SECTIONS – GLOW FRAME
========================= */
form section {
  position: relative;
  padding: 24px 22px 28px;
  margin-bottom: 34px;
  border-radius: 18px;
}

form section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid var(--night-card-border);
  pointer-events: none;
}

/* NORMAL – kornizë e dallueshme */
#normal-form section::before {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.1);
}

/* SURPRISE – kornizë e dallueshme */
#surprise-form section::before {
  border-color: rgba(244, 114, 182, 0.4);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.1);
}

/* =========================
   INPUTS – night, të lexueshëm
========================= */
input,
select,
textarea {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

/* =========================
   BUTTON
========================= */
button {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 20px 40px rgba(99,102,241,.35);
}

button:hover {
  background: linear-gradient(135deg, #818cf8, #6366f1);
}

/* =========================
   FILE INPUT
========================= */
input[type="file"] {
  background: var(--input-bg);
}

/* =========================
   HIDDEN
========================= */
[hidden] {
  display: none !important;
}

/* =========================
   MOBILE
========================= */
/* Tablet: container pak më i ngushtë */
@media (max-width: 1024px) {
  .order-container {
    margin: 32px auto;
    padding: 30px 28px;
  }
}

/* =========================
   TELEFON – lexueshmëri maksimale
========================= */
@media (max-width: 600px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .order-container {
    margin: 16px;
    padding: 24px 20px;
  }

  h1 {
    font-size: 26px;
    margin-bottom: 14px;
    line-height: 1.3;
  }

  h2 {
    font-size: 21px;
    margin-bottom: 14px;
    line-height: 1.35;
  }

  h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .order-intro p {
    font-size: 16px;
    line-height: 1.6;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    padding: 14px 16px;
    min-height: 48px;
  }

  .order-type label strong {
    font-size: 20px;
  }

  .order-type label small {
    font-size: 15px;
  }

  .section-title {
    margin-top: 28px;
  }

  .transport-btn {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 16px;
  }
}

/* Telefon shumë i vogël */
@media (max-width: 380px) {
  .order-container {
    margin: 12px;
    padding: 18px 16px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 19px;
  }

  form section {
    padding: 18px 16px 22px;
  }
}
/* =========================
   ORDER TYPE – MINIMIZED MODE
========================= */
.order-type.minimized {
  margin: 20px 0 40px;
  gap: 12px;
}

.order-type.minimized label {
  padding: 14px 18px;
  border-radius: 14px;
  transform: scale(0.92);
  box-shadow: none;
  opacity: 0.75;
  cursor: pointer;
}

/* karta aktive */
.order-type.minimized label.active {
  transform: scale(1);
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.25),
    0 10px 25px rgba(0,0,0,0.6);
}

/* më pak glow në minimized */
.order-type.minimized label::after {
  opacity: 0.25;
}

/* animacion për formën */
form {
  animation: formIn 0.45s ease both;
}

@keyframes formIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   TRANSPORT DETAILS – ANIM
========================= */
.transport-details {
  margin-top: 16px;
  animation: transportIn .35s ease both;
}

@keyframes transportIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   TRANSPORT TOGGLE BUTTON
========================= */
.transport-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 10px;
  padding: 8px 14px;

  font-size: 15px;
  font-weight: 500;

  border-radius: 999px;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);

  border: 1px solid var(--input-border);

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

.transport-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.transport-btn.active {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Small press */
.transport-btn:active {
  transform: scale(0.96);
}
/* =========================
   SUBMIT BUTTON – ONLY "NISE POROSINË"
========================= */
#submit-normal,
#submit-surprise {
  background: linear-gradient(
    135deg,
    #16a34a,   /* green */
    #064e3b    /* dark knight green */
  );

  color: #ecfdf5;
  font-weight: 600;
  font-size: 16px;

  border-radius: 14px;
  border: 1px solid rgba(34,197,94,0.45); /* green thin frame */

  box-shadow:
    0 0 0 1px rgba(34,197,94,0.25),
    0 14px 34px rgba(34,197,94,0.35);

  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

/* Hover */
#submit-normal:hover,
#submit-surprise:hover {
  background: linear-gradient(
    135deg,
    #22c55e,
    #15803d
  );

  box-shadow:
    0 0 0 2px rgba(34,197,94,0.45),
    0 18px 44px rgba(34,197,94,0.45);
}

/* Active (press) */
#submit-normal:active,
#submit-surprise:active {
  transform: scale(0.97);
}
/* =========================
   SUCCESS OVERLAY
========================= */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* CARD – night, e qartë */
.success-card {
  background: var(--night-card);
  padding: 40px 32px;
  border-radius: 20px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  margin: 16px;
  border: 1px solid var(--night-card-border);

  animation: popIn 0.5s ease forwards;

  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.35),
    0 25px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 380px) {
  .success-card {
    width: calc(100% - 24px);
    padding: 32px 20px;
    margin: 12px;
  }
}

/* CHECK */
.success-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;

  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  color: #22c55e;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 36px;
  font-weight: bold;

  box-shadow:
    0 0 0 6px rgba(34,197,94,0.15),
    0 0 25px rgba(34,197,94,0.45);

  animation: pulse 1.4s infinite;
}

.success-card h2 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.35;
}

.success-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* BUTTON */
.success-card button {
  background: linear-gradient(135deg, #16a34a, #064e3b);
  border: 1px solid rgba(34,197,94,0.45);
  color: #ecfdf5;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
}

/* ANIMATIONS */
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  70% { box-shadow: 0 0 0 18px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* =========================
   FLEXIBLE FRAMES (AUTO HEIGHT)
========================= */

/* Section frames – zgjerohen sipas tekstit */
form section {
  height: auto;
  min-height: unset;
  padding: 26px 22px 30px; /* pak më shumë hapësirë */
  align-items: stretch;
}

/* Korniza (before) – ndjek madhësinë e section */
form section::before {
  height: auto;
  min-height: 100%;
}

/* Tekstet brenda frame */
form section h3,
form section small,
form section label {
  line-height: 1.45;
}

/* Input & textarea – mos e kufizo lartësinë */
input,
textarea {
  height: auto;
  min-height: 48px;
}

/* Textarea rritet natyrshëm */
textarea {
  resize: vertical;
}

/* Order cards – lejo zgjerim vertikal */
.order-type label {
  height: auto;
  min-height: 120px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* ===== TEXTAREA SIZE FIX ===== */
textarea {
  min-height: 95px;     /* rritja fillestare */
  resize: vertical;     /* lejo rritje vetëm poshtë */
  line-height: 1.5;
}
/* ===== SUCCESS CLOSE (X) ===== */
.success-card {
  position: relative;
}

.success-close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--night-card-border);
  background: rgba(255, 255, 255, 0.06);

  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background .2s ease, transform .15s ease;
}

@media (max-width: 600px) {
  .success-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    top: 10px;
    right: 10px;
    font-size: 20px;
  }
}

.success-close:hover {
  background: rgba(255,255,255,0.12);
}

.success-close:active {
  transform: scale(0.92);
}
/* =========================
   HELPER TEXT – të lexueshëm
========================= */
.helper-text {
  margin: 10px 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* =========================
   UPLOAD WRAPPER
========================= */
.upload-wrapper {
  position: relative;
  margin-top: 10px;
}

/* REMOVE PHOTO (X) – touch target min 44px në mobile */
.remove-photo {
  position: absolute;
  top: 8px;
  right: 8px;

  width: 28px;
  height: 28px;

  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: rgba(220,38,38,0.15);
  color: #fecaca;
  font-size: 16px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background .2s ease, transform .15s ease;
}

@media (max-width: 600px) {
  .remove-photo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    top: 6px;
    right: 6px;
    font-size: 18px;
  }
}

.remove-photo:hover {
  background: rgba(220,38,38,0.35);
}

.remove-photo:active {
  transform: scale(0.9);
}

/* =========================
   ADDONS (Surprise extra gifts) – një në një rresht, upload brenda kartës
========================= */
.addons-section {
  position: relative;
}

.addons-section .addons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.addon-card {
  border-radius: 12px;
  border: 1px solid var(--night-card-border);
  background: var(--night-bg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.addon-card:hover {
  border-color: rgba(244, 114, 182, 0.35);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.1);
}

.addon-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  padding: 10px 14px;
}

.addon-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--accent-surprise, #f472b6);
  flex-shrink: 0;
}

.addon-option span {
  line-height: 1.35;
}

.addons-empty {
  font-size: 14px;
  margin-top: 4px;
  color: var(--text-secondary);
}

.addon-photos-container {
  display: none;
}

.addon-card .addon-photo-wrap {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--night-card-border);
  background: rgba(0, 0, 0, 0.2);
}

.addon-card .addon-photo-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.addon-card .addon-photo-label input[type="file"] {
  margin-top: 4px;
  font-size: 13px;
  padding: 8px 10px;
}

@media (max-width: 600px) {
  .addon-option {
    padding: 12px 14px;
    font-size: 14px;
    gap: 10px;
  }
  .addon-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }
  .addon-card .addon-photo-wrap {
    padding: 10px 14px 12px;
  }
}
