*,
*::before,
*::after {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.02rem;
    background: -webkit-linear-gradient(90deg, #0f5739, #3d8e66, #45c9a4, #46b5a9, #52c9eb);
    background: linear-gradient(135deg, #0f5739, #2e7f63,#46b5a9);


}

.application {
    padding: 20px 0;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-radius: 10px;
    background: #1f1f1f;
    color: #eaeaea;
    max-width: 520px;
    margin: 0 auto;
}

fieldset {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.personal {
    gap: 5px;
}

.personal__label {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

label {
  color: #d0d0d0;
}


.personal__label:focus-within,
.service__choice:focus-within,
.service__text:focus-within {
  background-color: rgba(70, 181, 169, 0.08);
}


.personal__input {
    max-width: 280px;
    padding: 10px 20px;
    border: 1px solid #555;
    background-color: #2b2b2b;
    color: #fff;
    transition: border-color 0.2s ease;
}

.personal__input:focus {
    border-color: #46b5a9;
    outline: none;
}

.service {
    gap: 20px;
}

.service__choice {
    margin-bottom: 10px;
}

.service__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service__textarea {
    max-width: 280px;
}

select {
  background-color: #2b2b2b;
  color: #eaeaea;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 10px 40px 10px 10px; 
  appearance: none;
  -webkit-appearance: none;
}

select:focus {
  border-color: #46b5a9;
  outline: none;
}


textarea {
  background-color: #2b2b2b;
  color: #eaeaea;
  border: 1px solid #555;
  border-radius: 6px;
  resize: vertical;
  min-height: 80px;
}

textarea:focus {
  border-color: #46b5a9;
  outline: none;
}


.form__actions {
  display: flex;
  justify-content: center;
  padding: 15px;
}


.button {
    width: fit-content;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.2s ease;
    cursor: pointer;
    font-weight: 600;
    background: #46b5a9;
    color: #1f1f1f;
    border: 1px solid #46b5a9;
}

.button__form:hover {
    background: #89eed9;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.field--error {
  background-color: rgba(224, 108, 117, 0.08);
}

.field--error .personal__input,
.field--error select {
  border-color: #e06c75;
}

.field__error {
  min-height: 1em;
  font-size: 0.85rem;
  color: #e06c75;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success h2 {
  color: #46b5a9;
  margin-bottom: 10px;
}

.form-success p {
  color: #d0d0d0;
}

.form--success .form__content {
  display: none;
}

.form--success .form-success {
  display: block;
}


