/* =========================================================
   DESIGN TOKENS
========================================================= */
:root{
  --bg: #0f172a;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --accent: #f59e0b;
  --card-bg: rgba(17,24,39,.85);
  --panel-bg: #0b1024;
  --input-bg: #0b1020;
  --border-soft: rgba(229,231,235,.12);
}

/* =========================================================
   BASE / RESET
========================================================= */
html, body {
  height: 100%;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial;
  background: linear-gradient(135deg, #0b1024, #1f2937 60%, #0b1024);
  color: var(--ink);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px;
}

/* =========================================================
   LAYOUT
========================================================= */
.wrap{
  width: 100%;
  max-width: 980px;
}

.card{
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 16px;
  padding: 24px 28px 36px;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
header{
  padding: 28px 28px 0;
}

header h1{
  margin: 0 0 6px;
  font-size: 28px;
}

header p{
  margin: 0 0 18px;
  color: var(--muted);
}

.muted{
  color: var(--muted);
  font-size: 14px;
}

.required{
  color: var(--accent);
}

/* =========================================================
   FORM ELEMENTS (kept for reuse)
========================================================= */
form{
  padding: 24px 28px 28px;
}

fieldset{
  border: 1px solid rgba(229,231,235,.08);
  border-radius: 14px;
  padding: 18px;
  margin: 18px 0;
}

legend{
  padding: 0 8px;
  color: var(--accent);
  font-weight: 600;
}

label{
  display: block;
  margin: 10px 0 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
input[type="file"]{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--input-bg);
  color: var(--ink);
  outline: none;
}

textarea{
  min-height: 120px;
  resize: vertical;
}

.options{
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 10px;
  margin-top: 8px;
}

.opt{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1px solid rgba(229,231,235,.08);
}

.actions{
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* =========================================================
   BUTTONS
========================================================= */
button{
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--accent);
  color: #0b0b0b;
  font-weight: 700;
  cursor: pointer;
}

button.secondary{
  background: transparent;
  color: var(--ink);
}

/* =========================================================
   LANGUAGE GRID (FLAGS)
========================================================= */
.flag{
  padding: 10px 14px;
  border-radius: 999px;
  background: #0b1224;
  border: 1px solid var(--border-soft);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition:
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.flag:hover{
  transform: translateY(-4px) scale(1.03);
  background: linear-gradient(
    135deg,
    rgba(245,158,11,.18),
    rgba(245,158,11,.05)
  );
  border-color: rgba(245,158,11,.5);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
}

.flag:active{
  transform: translateY(-1px) scale(1.01);
}

.flag:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(245,158,11,.5);
}

/* =========================================================
   GALLERY
========================================================= */
.gallery-section{
  padding: 0 28px 32px;
}

.gallery-section h2{
  margin: 10px 0 6px;
  font-size: 22px;
}

.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 14px;
  margin-top: 14px;
}

.gallery img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery img:hover{
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.85);
  z-index: 999;
}

.lightbox.active{
  display: flex;
}

.lightbox img{
  max-width: 90%;
  max-height: 85%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.lightbox-close{
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  font-size: 36px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
}

.lightbox-nav.left{ left: 20px; }
.lightbox-nav.right{ right: 20px; }

.lightbox-nav:hover{
  background: rgba(0,0,0,.7);
}
