/* =========================================================
   GAR – BASE (shared)
   reset-ish + typography + forms base + flash
   ========================================================= */

/* ---------- FLASH ---------- */
/* ---------- FLASH ---------- */
.gar-flash {
  padding: 12px 16px;
  margin: 12px 0 16px;
  border-radius: 10px;
  font-weight: 600;
  background: #e6f7ec;
  border: 1px solid #badbcc;

  /* smooth fade + collapse */
  transition:
     opacity .9s cubic-bezier(.25,.8,.25,1),
  transform .4s ease,
  margin .4s ease,
  padding .4s ease,
  height .4s ease;
}


/* hidden = znika + NIE ZOSTAWIA PRZERWY */
.gar-flash--hide {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;

    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    border-width: 0 !important;
    overflow: hidden !important;
}

/* ---------- LINKS ---------- */
/* Text links (use this class for normal inline links) */
.gar-text-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}
.gar-text-link:hover {
    opacity: 0.85;
}

/* ---------- FORMS (base) ---------- */
.gar-form {
    width: 100%;
    max-width: 1100px;
    margin: 10px auto 0;
    padding: 0 16px; /* safe desktop breathing room */
    box-sizing: border-box;
}

.gar-label {
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.65);
    opacity: 0.75;
}

.gar-input,
.gar-select,
.gar-textarea {
    width: 100%;
    padding: 12px 14px;
    min-height: 50px; /* 🔴 KLUCZOWE */
    line-height: 1.4; /* 🔴 KLUCZOWE */

    border-radius: var(--gar-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-sizing: border-box;

    appearance: none; /* 🔴 reset browser differences */
    -webkit-appearance: none; /* 🔴 Safari / Chrome */
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.05s ease,
        background 0.18s ease;
}

.gar-input:focus,
.gar-select:focus,
.gar-textarea:focus {
    outline: none;
    border-color: rgba(47, 95, 191, 0.45);
    box-shadow: var(--gar-ring);
}

.gar-hint {
    margin: 8px 0 0;
    font-size: 12.5px;
    opacity: 0.75;
    line-height: 1.5;
}

/* Professional dropdown arrow */
.gar-select {
    padding: 12px 44px 12px 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.5 7.5L10 12l4.5-4.5 1.4 1.4L10 14.8 4.1 8.9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
}
.gar-select:disabled {
    opacity: 0.65;
    background-color: #f3f4f6;
}

/* Grid helpers */
.gar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* Make each grid cell behave like a consistent field stack */
.gar-grid > div {
    display: flex;
    flex-direction: column;
}

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

/* FIX: Create Order form should not be max-width centered */
form#gar_campaign_form.gar-form,
form#gar-campaign-form.gar-form {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
