.gopy-wrap {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a2744;
  padding: 14px 16px 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.gopy-wrap *,
.gopy-wrap *::before,
.gopy-wrap *::after {
  box-sizing: border-box;
}

.gopy-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #152a4a;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}

.gopy-sub {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.35;
  color: #5b6577;
  font-weight: 500;
  flex: 0 0 auto;
}

.gopy-sub em {
  font-style: normal;
  color: #f16833;
  font-weight: 700;
}

#gopy-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.gopy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 8px;
}

.gopy-field {
  margin: 0 0 8px;
}

.gopy-row .gopy-field {
  margin: 0;
}

.gopy-field label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #243552;
  line-height: 1.2;
}

.gopy-req {
  color: #e53935;
  font-weight: 700;
}

.gopy-opt {
  font-weight: 500;
  color: #6b7588;
}

.gopy-field input,
.gopy-field textarea {
  width: 100%;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.3;
  color: #1a2744;
  background: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gopy-field input::placeholder,
.gopy-field textarea::placeholder {
  color: #a0a8b8;
}

.gopy-field input:focus,
.gopy-field textarea:focus {
  border-color: #f16833;
  box-shadow: 0 0 0 2px rgba(241, 104, 51, 0.15);
}

.gopy-field textarea {
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  resize: none;
}

.gopy-actions {
  margin-top: 2px;
  flex: 0 0 auto;
}

.gopy-submit {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #f16833;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.gopy-submit:hover {
  background: #e05520;
}

.gopy-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.gopy-hint {
  margin: 6px 0 0;
  text-align: center;
  font-size: 11px;
  color: #8b93a3;
  line-height: 1.3;
  flex: 0 0 auto;
}

.gopy-msg {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  min-height: 0;
}

.gopy-msg:empty {
  display: none;
}

.gopy-msg.ok {
  color: #0a7a3e;
}

.gopy-msg.err {
  color: #c62828;
}

@media (max-width: 520px) {
  .gopy-row {
    grid-template-columns: 1fr;
  }

  .gopy-title {
    font-size: 16px;
  }

  .gopy-wrap {
    padding: 12px;
    border-radius: 12px;
    overflow: auto;
  }

  .gopy-field textarea {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
  }
}
