/* =========================
   MobilePrices Form System
========================= */

.form {
  display: block;
}

.form__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .form__grid {
    grid-template-columns: 1fr 1fr;
  }

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

.label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  font-size: 15px;
  line-height: 1.35;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.select {
  /* Custom dropdown caret (lets us control spacing) */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px; /* space for caret */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center; /* increase 16px -> more left */
  background-size: 16px 16px;
}


.textarea {
  min-height: 120px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-gray-400);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(17, 17, 17, .55);
  box-shadow: var(--focus-ring);
}

.field__hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Checkbox / radio */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-gray-700);
}

.check input {
  margin-top: 2px;
}

/* Inline icon buttons (e.g. password toggle) */
.btn-icon {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--surface);
}

.btn-icon:hover {
  background: var(--soft);
}

/* Mobile: make fields easier to tap */
@media (max-width: 768px) {

  .input,
  .select,
  .textarea {
    padding: 10px 14px;
    font-size: 15px;
  }
}

/* Mini search (used in header and multiple pages) */
.mini-search {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.mini-search .input {
  flex: 1;
}


/* Hide default caret in old IE/Edge */
.select::-ms-expand{ display:none; }
