.tged-contact-wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.tged-contact-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fb 100%);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 28px;
  padding: 32px;
  box-shadow:
    0 10px 30px rgba(17, 24, 39, 0.06),
    0 2px 10px rgba(17, 24, 39, 0.04);
}

.tged-contact-box::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 85, 1, 0.14) 0%, rgba(234, 85, 1, 0.04) 42%, rgba(234, 85, 1, 0) 72%);
  pointer-events: none;
}

.tged-contact-box::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 24, 39, 0.06) 0%, rgba(17, 24, 39, 0.02) 45%, rgba(17, 24, 39, 0) 72%);
  pointer-events: none;
}

.tged-contact-form {
  position: relative;
  z-index: 2;
  display: block;
}

.tged-contact-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.96rem;
  line-height: 1.5;
}

.tged-contact-message-error {
  background: #fff4f2;
  border: 1px solid #ffd7cf;
  color: #b42318;
}

.tged-contact-message-success {
  background: #eefbf3;
  border: 1px solid #b7ebc7;
  color: #1f7a3d;
}

.tged-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tged-contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tged-contact-field-full {
  grid-column: 1 / -1;
}

.tged-contact-field label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.tged-contact-field input,
.tged-contact-field select,
.tged-contact-field textarea {
  width: 100%;
  border: 1.5px solid #d9dee5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-size: 0.98rem;
  box-sizing: border-box;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
  appearance: none;
}

.tged-contact-field input,
.tged-contact-field select {
  min-height: 56px;
  height: 56px;
  padding: 0 16px;
}

.tged-contact-field textarea {
  min-height: 150px;
  padding: 16px;
  resize: vertical;
}

.tged-contact-field input::placeholder,
.tged-contact-field textarea::placeholder,
.tged-contact-field select {
  color: #8b93a1;
}

.tged-contact-field input:hover,
.tged-contact-field select:hover,
.tged-contact-field textarea:hover {
  border-color: #c7ced8;
  background: #ffffff;
}

.tged-contact-field input:focus,
.tged-contact-field select:focus,
.tged-contact-field textarea:focus {
  outline: none;
  border-color: #ea5501;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(234, 85, 1, 0.12);
  transform: translateY(-1px);
}

.tged-contact-field select {
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f6368 50%),
    linear-gradient(135deg, #5f6368 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 25px,
    calc(100% - 14px) 25px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Drag & Drop */
.tged-contact-upload-field label[for="tged_contact_files"] {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 4px;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border: 0;
  white-space: normal;
}

.tged-contact-dropzone {
  position: relative;
  border: 1.5px dashed rgba(234, 85, 1, 0.38);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(234, 85, 1, 0.05) 0%, rgba(255, 255, 255, 0.96) 100%);
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.tged-contact-dropzone:hover {
  border-color: #ea5501;
  background: linear-gradient(180deg, rgba(234, 85, 1, 0.08) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: 0 12px 30px rgba(234, 85, 1, 0.08);
  transform: translateY(-1px);
}

.tged-contact-dropzone:focus {
  outline: none;
  border-color: #ea5501;
  box-shadow: 0 0 0 4px rgba(234, 85, 1, 0.12);
}

.tged-contact-dropzone.is-dragover {
  border-color: #ea5501;
  background: linear-gradient(180deg, rgba(234, 85, 1, 0.12) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: 0 0 0 4px rgba(234, 85, 1, 0.10);
}

.tged-contact-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.tged-contact-dropzone-inner {
  text-align: center;
  pointer-events: none;
  max-width: 520px;
  width: 100%;
}

.tged-contact-dropzone-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 85, 1, 0.10);
  color: #ea5501;
  font-size: 1.6rem;
  font-weight: 800;
}

.tged-contact-dropzone-title {
  color: #111827;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}

.tged-contact-dropzone-subtitle {
  color: #4b5563;
  font-size: 0.96rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.tged-contact-dropzone-meta {
  color: #6b7280;
  font-size: 0.87rem;
  line-height: 1.45;
}

.tged-contact-file-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.tged-contact-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.04);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.tged-contact-file-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tged-contact-file-name {
  color: #111827;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.tged-contact-file-size {
  color: #6b7280;
  font-size: 0.85rem;
  white-space: nowrap;
}

.tged-contact-file-remove {
  appearance: none;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: #ffffff;
  color: #b42318;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.tged-contact-file-remove:hover,
.tged-contact-file-remove:focus {
  border-color: rgba(180, 35, 24, 0.28);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.tged-contact-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.03);
  border: 1px solid rgba(17, 24, 39, 0.06);
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tged-contact-checkbox input {
  margin-top: 4px;
  flex: 0 0 auto;
}

.tged-contact-actions {
  margin-top: 24px;
}

.tged-contact-submit {
  appearance: none;
  border: none;
  width: 100%;
  min-height: 58px;
  padding: 16px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ea5501 0%, #ff6a13 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 14px 30px rgba(234, 85, 1, 0.24),
    0 4px 12px rgba(234, 85, 1, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.tged-contact-submit:hover,
.tged-contact-submit:focus {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(234, 85, 1, 0.28),
    0 6px 14px rgba(234, 85, 1, 0.20);
  filter: brightness(1.02);
}

.tged-contact-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tged-contact-error {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff2f0;
  border: 1px solid #ffd5cf;
  color: #b42318;
  font-size: 0.88rem;
  line-height: 1.35;
}

.tged-contact-field input.is-error,
.tged-contact-field select.is-error,
.tged-contact-field textarea.is-error,
.tged-contact-dropzone.is-error,
.tged-contact-checkbox.is-error {
  border-color: #d92d20;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.10);
}

@media (max-width: 767px) {
  .tged-contact-box {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .tged-contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tged-contact-field input,
  .tged-contact-field select {
    min-height: 52px;
    height: 52px;
    font-size: 0.97rem;
  }

  .tged-contact-field textarea {
    min-height: 130px;
  }

  .tged-contact-dropzone {
    min-height: 180px;
    padding: 18px;
    border-radius: 18px;
  }

  .tged-contact-dropzone-icon {
    width: 54px;
    height: 54px;
    font-size: 1.35rem;
  }

  .tged-contact-dropzone-title {
    font-size: 1rem;
  }

  .tged-contact-dropzone-subtitle {
    font-size: 0.92rem;
  }

  .tged-contact-dropzone-meta {
    font-size: 0.84rem;
  }

  .tged-contact-checkbox {
    margin-top: 18px;
    font-size: 0.93rem;
    line-height: 1.55;
    padding: 12px 14px;
  }

  .tged-contact-submit {
    min-height: 54px;
    font-size: 0.98rem;
  }

  .tged-contact-file-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .tged-contact-file-size {
    white-space: normal;
  }

  .tged-contact-file-remove {
    width: 100%;
    justify-content: center;
  }
}

.tged-contact-field label[for="tged_contact_last_name"],
.tged-contact-field label[for="tged_contact_first_name"],
.tged-contact-field label[for="tged_contact_phone"],
.tged-contact-field label[for="tged_contact_email"],
.tged-contact-field label[for="tged_contact_company_name"],
.tged-contact-field label[for="tged_contact_department_code"],
.tged-contact-field label[for="tged_contact_message"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}