.phone-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--color-cream, #faf6f2);
  border: 2px solid var(--color-placeholder, #bababa);
  border-radius: var(--radius, 5px);
  transition: border-color 0.2s ease;
}

.phone-field:focus-within {
  border-color: var(--color-primary, #28333e);
}

.phone-field__prefix,
.phone-field input[type="tel"] {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.21;
  letter-spacing: 0;
  color: var(--color-primary, #28333e);
  -webkit-text-size-adjust: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
}

.phone-field__prefix {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 1rem 0.35rem 1rem 1.5rem;
  margin: 0;
  user-select: none;
}

.phone-field input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  padding: 1rem 1.5rem 1rem 0.25rem !important;
  margin: 0;
  text-align: left;
  border-radius: 0 !important;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.phone-field input[type="tel"]:focus {
  outline: none;
}

.phone-field input[type="tel"]::placeholder {
  color: var(--color-placeholder, #bababa);
}

.form-row .phone-field {
  width: 100%;
  max-width: 100%;
}

.form-card .form-row .phone-field {
  width: 100%;
  min-width: 0;
  min-height: 61px;
  box-sizing: border-box;
}

.form-card .form-row input[name="name"] {
  min-height: 61px;
  box-sizing: border-box;
}

.form-card .phone-field input[type="tel"] {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.form-card .phone-field {
  min-height: 61px;
}

.section--dark .form-card .phone-field__prefix,
.section--dark .form-card .phone-field input[type="tel"] {
  font-size: 17px;
  font-weight: 400;
}

.form-card input[type="text"][name="name"],
.form-card input:not([type="checkbox"])[name="name"] {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.21;
}

.section--dark .form-card input[type="text"][name="name"],
.section--dark .form-card input:not([type="checkbox"])[name="name"] {
  font-size: 17px;
  font-weight: 400;
}

.hero-form-wrap .form-card input[name="name"] {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.21;
}

.hero-form-wrap .form-card .phone-field {
  min-width: 0;
  width: 100%;
}

.hero-form-wrap .phone-field input[type="tel"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

@media (min-width: 600px) {
  .hero-form-wrap .form-card input[name="name"] {
    font-size: 16px;
  }
}

.form-card .form input[type="text"][name="name"] {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.21;
}

.section--dark .form-card .form input[type="text"][name="name"] {
  font-size: 17px;
  font-weight: 400;
}

/* Сброс стилей форм для поля с маской (главная, услуги, модалки) */
.contact-form .phone-field input[type="tel"],
.hero-form .phone-field input[type="tel"],
.modal .phone-field input[type="tel"],
.form-group .phone-field input[type="tel"] {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.contact-form .form-group .phone-field,
.modal .contact-form .form-group .phone-field {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
}

.contact-form .form-group .phone-field:focus-within,
.modal .contact-form .form-group .phone-field:focus-within {
  border-color: #9b7dd4;
}

.hero-form .form-group .phone-field {
  width: 100%;
  border: 2px solid var(--border-color, #e0e0e0);
  border-radius: 10px;
}

.hero-form .form-group .phone-field:focus-within {
  border-color: var(--accent-color, #c9a227);
}

.contact-form .form-group .phone-field,
.hero-form .form-group .phone-field {
  min-height: auto;
}
