/* ==========================================================================
   Base: reset, typography, shared utilities
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh; /* mobile browsers: height without the address bar */
}

body > main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-6);
  border: 0;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.15s;
}

.btn--primary { background: var(--color-pink-strong); color: #FFFFFF; }
.btn--primary:hover { background: var(--color-pink-strong-hover); }

/* Form controls ---------------------------------------------------------- */

.select {
  width: 100%;
  min-height: 48px;
  padding: 0 40px 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23172027' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: 1.0625rem;
  color: var(--color-text);
  appearance: none;
  cursor: pointer;
}

.select--with-icon { padding-left: 44px; }

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  color: var(--color-pink);
  pointer-events: none;
}

/* Star rating row ---------------------------------------------------------- */

.stars { display: flex; gap: 2px; flex-shrink: 0; color: var(--color-star); }
.stars .icon { width: 18px; height: 18px; }
.stars .is-empty { color: var(--color-star-empty); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
