﻿/* Form */
.form-group {
  margin-bottom: var(--pw-space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--pw-deep-ocean);
  margin-bottom: var(--pw-space-sm);
}

.form-group .hint {
  font-size: 0.8125rem;
  color: var(--pw-river-stone);
  margin-top: var(--pw-space-xs);
  line-height: 1.75;
  letter-spacing: 0.025em;
  word-spacing: 0.05em;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: var(--pw-space-md);
  background: var(--pw-pure-white);
  border: 1px solid var(--pw-ice-frost);
  border-radius: var(--pw-radius-soft);
  transition: border-color var(--pw-transition), box-shadow var(--pw-transition);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.form-control:focus {
  outline: none;
  border-color: var(--pw-crystal-blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

.form-control.is-invalid {
  border-color: var(--pw-coral-red);
}

.form-error {
  color: var(--pw-coral-red);
  font-size: 0.8125rem;
  margin-top: var(--pw-space-xs);
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-row {
  display: grid;
  gap: var(--pw-space-lg);
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Switcher */
.product-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--pw-space-sm);
  margin-bottom: var(--pw-space-2xl);
}

@media (min-width: 640px) {
  .product-switcher {
    grid-template-columns: repeat(4, 1fr);
  }
}

.switcher-btn {
  min-height: 56px;
  padding: var(--pw-space-md);
  border-radius: var(--pw-radius-fluid);
  background: var(--pw-pure-white);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--pw-deep-ocean);
  transition: all var(--pw-transition);
  text-align: center;
}

.switcher-btn:hover {
  border-color: var(--pw-ice-frost);
  background: var(--pw-ice-frost);
}

.switcher-btn.is-active {
  border-color: var(--pw-crystal-blue);
  background: var(--pw-ice-frost);
  color: var(--pw-crystal-blue);
  box-shadow: var(--pw-shadow-soft);
}

/* Qty stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--pw-space-md);
  background: var(--pw-pure-white);
  border-radius: var(--pw-radius-pill);
  padding: var(--pw-space-xs) var(--pw-space-md);
  border: 1px solid var(--pw-ice-frost);
}

.qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pw-ice-frost);
  color: var(--pw-crystal-blue);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--pw-transition);
}

.qty-btn:hover {
  background: var(--pw-crystal-blue);
  color: white;
}

.qty-value {
  width: 3rem;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 600;
}

.qty-value {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--pw-deep-ocean);
}

/* Radio pills */
.radio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pw-space-sm);
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--pw-space-lg);
  border-radius: var(--pw-radius-pill);
  background: var(--pw-pure-white);
  border: 2px solid var(--pw-ice-frost);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--pw-transition);
  margin: 0;
}

.radio-pill input:checked + label {
  border-color: var(--pw-crystal-blue);
  background: var(--pw-ice-frost);
  color: var(--pw-crystal-blue);
}

