/* =====================
   Base
===================== */

html,
body {
  margin: 0;
  padding: 0;
  background: #f4eddf;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #0f172a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =====================
   Layout
===================== */

.border {
  background: #f4eddf;
}

.utk-form {
  max-width: 880px;
  margin: 0 auto;
  color: #0f172a;
  font-family: Arial, Helvetica, sans-serif;
  padding: 20px;
  background: #f4eddf;
}

.utk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
}

.utk-field-subject1{
  margin-bottom: 18px;
}

.utk-span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 767px) {
  .utk-form {
    padding: 16px;
  }

  .utk-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =====================
   Field wrapper
===================== */

.utk-field {
  position: relative;
  margin-bottom: 12px;
}

.utk-field label {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
}

/* =====================
   Inputs / textarea / select
===================== */

.utk-field input[type="text"],
.utk-field input[type="email"],
.utk-field select,
.utk-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8d0c2;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.utk-field textarea {
  min-height: 220px;
  resize: vertical;
  padding-top: 14px;
}

.utk-field input[type="text"]:focus,
.utk-field input[type="email"]:focus,
.utk-field select:focus,
.utk-field textarea:focus {
  outline: none;
  border-color: #5098c4;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

#utk-message::placeholder {
  color: #8a8172;
  font-style: italic;
}

#utk-message:focus::placeholder {
  opacity: 0;
}

/* =====================
   Dropdown
===================== */

.utk-dropdown {
  position: relative;
  width: 100%;
  z-index: 40;
}

.utk-dropdown-selected {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8d0c2;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease,
    border-radius .18s ease;
  position: relative;
  z-index: 2;
}

.utk-dropdown-selected:hover {
  border-color: #5098c4;
}

.utk-dropdown.open .utk-dropdown-selected {
  border-color: #5098c4;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  border-radius: 6px;
}

.utk-dropdown-selected span {
  flex: 1 1 auto;
  min-width: 0;
  color: #0f172a;
  line-height: 1.4;
}

.utk-dropdown-arrow {
  width: 18px;
  height: 18px;
  fill: #475569;
  flex: 0 0 auto;
  transform: rotate(0deg);
  transition: transform .22s ease, fill .2s ease;
}

.utk-dropdown.open .utk-dropdown-arrow {
  transform: rotate(180deg);
  fill: #0f172a;
}

.utk-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.12),
    0 4px 10px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.985);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity .18s ease,
    transform .22s ease,
    visibility .22s ease;
  visibility: hidden;
  z-index: 60;
}

.utk-dropdown.open .utk-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.utk-dropdown-option {
  padding: 13px 14px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  line-height: 1.45;
  transition: background-color .16s ease, color .16s ease;
}

.utk-dropdown-option + .utk-dropdown-option {
  border-top: 1px solid #e5dac8;
}

.utk-dropdown-option:hover {
  background: #f7f3ea;
}

.utk-dropdown-option.is-active {
  background: #f2ede4;
  color: #0f172a;
}

@media (max-width: 767px) {
  .utk-dropdown {
    z-index: 80;
  }

  .utk-dropdown-selected {
    min-height: 46px;
    padding: 11px 13px;
  }

  .utk-dropdown-menu {
    top: calc(100% + 4px);
    border-radius: 8px;
    max-height: min(260px, 50vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .utk-dropdown-option {
    padding: 14px 13px;
  }
}

/* =====================
   Textarea meta
===================== */

.utk-textarea-wrap {
  position: relative;
}

.utk-textarea-wrap textarea {
  padding-bottom: 40px !important;
}

.utk-message-meta {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 12px;
  line-height: 1;
  color: #6f6659;
  opacity: .9;
  pointer-events: none;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
}

.utk-message-limit {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #b91c1c;
}

.utk-message-limit.utk-warning-active {
  animation: utkWarningShake .35s ease;
}

/* =====================
   Checkbox
===================== */

.utk-checkrow {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400 !important;
}

.utk-checkrow input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: #5098c4;
}

.utk-checkrow span {
  line-height: 1.5;
  color: #334155;
}

#utk-gdpr {
  border-radius: 4px;
}

/* =====================
   Submit button
===================== */

#utk-submit {
  margin-top: 4px;
}

.utk-submit {
  min-width: 220px;
  min-height: 52px;
  padding: 0 22px;
  border: 1.5px solid #1f1f1b;
  border-radius: 10px;
  background: #f4eddf;
  color: #1f1f1b;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color .28s ease,
    color .28s ease,
    border-color .28s ease,
    transform .18s ease;
}

.utk-submit:hover:not(:disabled) {
  background: #1f1f1b;
  color: #ffffff;
  border-color: #1f1f1b;
  transform: translateY(-1px);
}

.utk-submit:active:not(:disabled) {
  transform: translateY(0);
}

.utk-submit:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #d8d0c2;
  color: #7a7468;
  border-color: #bdb3a3;
}

.utk-submit-label {
  display: inline-block;
}

.utk-submit-dots {
  display: inline-block;
  width: 1.6em;
  text-align: left;
}

@media (max-width: 767px) {
  .utk-submit {
    width: 100%;
    min-width: 0;
  }
}

/* =====================
   Validation
===================== */

.utk-invalid {
  animation: utkShake .35s ease;
}

.utk-invalid-field {
  border-color: #ef4444 !important;
  background: #fff5f3 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important;
}

.utk-invalid-label {
  color: #b91c1c;
}

.utk-invalid-message {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c;
}

#utk-gdpr.utk-invalid-field {
  border-radius: 4px !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important;
}

@keyframes utkShake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

@keyframes utkWarningShake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* =====================
   Success modal
===================== */

.utk-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.utk-modal[hidden] {
  display: none !important;
}

.utk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}

.utk-modal-box {
  position: relative;
  background: #f4eddf;
  border-radius: 14px;
  padding: 32px;
  width: min(520px, 90%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  animation: modalPop .35s cubic-bezier(.18, .89, .32, 1.28);
}

.utk-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.utk-modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.utk-modal-text {
  margin-bottom: 18px;
  color: #334155;
}

.utk-modal-preview {
  font-size: 14px;
  background: #f4eddf;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 20px;
}

.utk-modal-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #e5dac8;
}

.utk-modal-row:first-child {
  border-top: 1px solid #e5dac8;
}

.utk-modal-label {
  font-weight: 700;
  color: #111827;
}

.utk-modal-value {
  color: #1f2937;
  line-height: 1.65;
  min-width: 0;
  word-break: break-word;
}

.utk-modal-row-message .utk-modal-value {
  white-space: normal;
}

.utk-modal-ok {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.utk-modal-ok:hover {
  background: #1d4ed8;
}

@media (max-width: 767px) {
  .utk-modal-box {
    padding: 22px;
  }

  .utk-modal-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .utk-modal-label {
    font-size: 14px;
  }

  .utk-modal-value {
    font-size: 15px;
  }
}

@keyframes modalPop {
  0% { transform: scale(.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}   