/* ============================================
   ATME CF7 Form Styles (shared)
   Used by: OTC modal, SaaS deploy section
   NOT used by: /contact/ page (different author)
   ============================================ */

.atme-cf7 {
  color: var(--color-navy, #19144B);
}

/* CF7 inserts <br> between controls; hide to avoid extra vertical gaps */
.atme-cf7 br {
  display: none;
}

.atme-cf7__hint {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 16px 24px 16px 20px;
  margin: 0 0 24px;
  background: #f3f3f5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--color-navy, #19144B);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}

.atme-cf7__hint-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-navy, #19144B);
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

/*
 * CF7 validation banner (modal-base.js / AtmeCf7Banner).
 * Same as .atme-cv-error-banner in style.css — landing template dequeues child theme style,
 * so these rules must live here for /saas-platform/ etc.
 */
.atme-cf7 .atme-cv-error-banner,
.atme-cv-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  background: #fef2f2;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #dc2626;
  line-height: 1.4;
}

.atme-cf7 .atme-cv-error-icon,
.atme-cv-error-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.atme-cf7 .atme-cv-error-icon svg,
.atme-cv-error-icon svg {
  display: block;
}

/*
 * CF7 success screen (modal-base.js / AtmeCf7SuccessScreen).
 * Same as .atme-cv-success-* in style.css — landing template dequeues child style.
 */
.atme-cv-success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 32px;
}

.atme-cv-success-icon {
  margin-bottom: 24px;
}

.atme-cv-success-title {
  font-family: 'Aeonik Pro', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #19144b;
  margin: 0 0 4px;
  line-height: 1.3;
}

.atme-cv-success-text {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 32px;
  line-height: 1.5;
}

.atme-cv-success-btn {
  background: #19144b;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.atme-cv-success-btn:hover {
  background: #2d2566;
}

/* Deploy card: center success screen vertically */
.atme-section-deploy__form-card:has(.atme-cv-success-screen) {
  justify-content: center;
  min-height: 400px;
}

.atme-cf7__grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 8px;
  margin-bottom: 24px;
}

.atme-cf7__grid2 + .atme-cf7__grid2 {
  margin-top: 0;
}

.atme-cf7 label {
  display: block;
  margin: 0 0 24px;
  padding-left: 4px;
  color: var(--color-navy, #19144B);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}

/* Labels inside grid should not have bottom margin */
.atme-cf7__grid2 label {
  margin-bottom: 0;
}

.atme-cf7 label > input,
.atme-cf7 label > textarea,
.atme-cf7 label .wpcf7-form-control {
  margin-top: 8px;
}

.atme-cf7 input[type="text"],
.atme-cf7 input[type="email"],
.atme-cf7 textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  font-family: var(--font-body, 'Aeonik Pro', sans-serif);
  font-size: 18px;
  line-height: 28px;
  color: var(--color-navy, #19144B);
  outline: none;
}

.atme-cf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.atme-cf7 input::placeholder,
.atme-cf7 textarea::placeholder {
  font-family: var(--font-body, 'Aeonik Pro', sans-serif);
  color: color-mix(in srgb, var(--color-navy, #19144B) 50%, transparent);
}

@supports not (color: color-mix(in srgb, #000 50%, transparent)) {
  .atme-cf7 input::placeholder,
  .atme-cf7 textarea::placeholder {
    opacity: 0.5;
  }
}

.atme-cf7 input:focus,
.atme-cf7 textarea:focus {
  border-color: var(--color-deep-violet, #5F19C8);
}

.atme-cf7__footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.atme-cf7__submit input[type="submit"] {
  background: var(--color-deep-violet, #5F19C8);
  border: none;
  border-radius: 200px;
  padding: 15px 35px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.atme-cf7__submit input[type="submit"]:hover {
  opacity: 0.9;
}

.atme-cf7__disclaimer {
  margin: 0;
  color: var(--color-navy, #19144B);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
}

.atme-cf7__disclaimer a {
  color: var(--color-deep-violet, #5F19C8);
  text-decoration: none;
}

.atme-cf7__disclaimer a:hover {
  text-decoration: underline;
}

.atme-cf7 p {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Last label before footer should not have bottom margin */
.atme-cf7__footer {
  margin-top: 0;
}

/* Remove margin from last standalone label (Message field) */
.atme-cf7 > label:last-of-type {
  margin-bottom: 0;
}

/* Validation */
.atme-cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 400;
  color: #E3493E;
  box-shadow: none;
}

.atme-cf7 .wpcf7-not-valid {
  border-color: #E3493E;
}

.atme-cf7 .wpcf7-spinner {
  display: none !important;
}

.atme-cf7 .wpcf7-response-output {
  display: none;
}

/* Hide CF7 response output for forms containing .atme-cf7 wrapper */
form.wpcf7-form:has(> .atme-cf7) .wpcf7-response-output,
form.wpcf7-form:has(.atme-cf7) .wpcf7-response-output {
  display: none !important;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
  .atme-cf7__grid2 {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  /* CF7 оборачивает поля в <p> (не соседние label); второй столбец при 1 колонке */
  .atme-cf7 .atme-cf7__grid2 > p + p {
    margin-top: 24px !important;
  }

  .atme-cf7__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .atme-cf7__disclaimer {
    order: 1;
    text-align: center;
  }

  .atme-cf7__submit {
    order: 2;
    width: 100%;
  }

  .atme-cf7__submit input[type="submit"] {
    width: 100%;
    display: block;
  }
}

/* ============================================
   CV Modal Styles (for ATME landing pages)
   Duplicated from style.css because landing template
   dequeues salient-child-style
   ============================================ */
.atme-cv-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.atme-cv-modal--visible {
  opacity: 1;
}

.atme-cv-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.atme-cv-modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  max-width: 740px;
  width: 92%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.atme-cv-modal-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  max-height: 90vh;
  padding: 42px 28px 43px;
}

.atme-cv-modal--visible .atme-cv-modal-content {
  transform: translateY(0);
}

.atme-cv-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 20px !important;
  line-height: 1 !important;
  color: #6B7280;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  vertical-align: middle !important;
  transition: color 0.2s, border-color 0.2s;
  z-index: 2;
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  border: 1.5px solid #D1D5DB !important;
  background: #fff !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.atme-cv-modal-close:hover {
  color: #19144b;
}

.atme-cv-modal-title {
  font-family: 'Aeonik Pro', 'Inter', sans-serif;
  font-size: 34px;
  font-weight: 600;
  color: #19144b;
  margin: 0 0 20px 0;
  padding: 0;
  line-height: 1.3;
}

/* ============================================
   CV Modal Mobile Styles
   ============================================ */
@media (max-width: 768px) {
  .atme-cv-modal {
    align-items: flex-start;
  }

  .atme-cv-modal-content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: none !important;
    border-radius: 0;
  }

  .atme-cv-modal-scroll {
    padding: 16px 20px calc(24px + max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)));
    max-height: 100% !important;
  }

  .atme-cv-modal-close {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    border: 1.5px solid #D1D5DB !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding: 0 !important;
    background: #fff !important;
  }
}

/* ============================================
   CV Modal Form Styles (ID-specific)
   Duplicated from style.css because landing template
   dequeues salient-child-style
   ============================================ */

/* Перебиваем body[data-button-style^="rounded"] button { border-radius: 200px } из темы Salient */
#atme-cv-modal .atme-cv-modal-close,
#atme-rc-modal .atme-cv-modal-close,
#atme-otc-modal .atme-cv-modal-close {
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  border: 1.5px solid #D1D5DB !important;
  background: #fff !important;
  padding: 0 !important;
  box-shadow: none !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Info bar */
.atme-cv-info-bar {
  background: #F3F4F6;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #4B5563;
  line-height: 1.4;
}
.atme-cv-info-bar p {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

.atme-cv-info-bar .info-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.atme-cv-info-bar .info-icon svg {
  display: block;
}

/* Two-column layout */
.atme-cv-two-col {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 0;
}

.atme-cv-two-col .atme-cv-field {
  flex: 1;
  min-width: 0;
}

/* Field wrapper */
.atme-cv-field {
  margin-bottom: 15px;
}
#atme-cv-modal .wpcf7-form > p,
#atme-rc-modal .wpcf7-form > p {
  margin-bottom: 15px !important;
}
#atme-cv-modal .wpcf7-form > .atme-cv-field,
#atme-rc-modal .wpcf7-form > .atme-cv-field {
  margin-bottom: 15px !important;
}
#atme-cv-modal .atme-cv-field p,
#atme-cv-modal .wpcf7-form .atme-cv-field p,
#atme-rc-modal .atme-cv-field p,
#atme-rc-modal .wpcf7-form .atme-cv-field p {
  padding: 0 !important;
  margin: 0 !important;
}

.atme-cv-field label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #19144B;
  margin-bottom: 8px;
  line-height: 1.2;
}

/* Input styling */
#atme-cv-modal .wpcf7-form-control-wrap,
#atme-rc-modal .wpcf7-form-control-wrap {
  display: block;
}

#atme-cv-modal input[type="text"],
#atme-cv-modal input[type="email"],
#atme-cv-modal textarea,
#atme-rc-modal input[type="text"],
#atme-rc-modal input[type="email"],
#atme-rc-modal textarea {
  width: 100% !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  font-size: 18px !important;
  font-family: 'Montserrat', sans-serif !important;
  color: #19144b !important;
  background: #fff !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

#atme-cv-modal input[type="text"]:focus,
#atme-cv-modal input[type="email"]:focus,
#atme-cv-modal textarea:focus,
#atme-rc-modal input[type="text"]:focus,
#atme-rc-modal input[type="email"]:focus,
#atme-rc-modal textarea:focus {
  border-color: #5f19c8 !important;
}

#atme-cv-modal input::placeholder,
#atme-cv-modal textarea::placeholder,
#atme-rc-modal input::placeholder,
#atme-rc-modal textarea::placeholder {
  color: #9CA3AF !important;
}

#atme-cv-modal textarea,
#atme-rc-modal textarea {
  min-height: 80px !important;
  max-height: 120px !important;
  height: 80px !important;
  resize: vertical !important;
}

#atme-rc-modal .atme-cv-field textarea.wpcf7-textarea[name="industry"] {
  min-height: 100px !important;
  max-height: 160px !important;
  height: 100px !important;
}

/* Submit row */
.atme-cv-submit-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: nowrap;
}
.atme-cv-submit-row > p {
  margin: 0 !important;
  padding: 0 !important;
}
.atme-cv-submit-row > p:first-child {
  flex-shrink: 0;
  width: 115px;
  display: flex;
  align-items: center;
}

#atme-rc-modal .atme-cv-submit-row > p:first-child {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  align-items: center;
}

#atme-cv-modal .atme-cv-submit-row > p:first-child {
  width: 150px;
}

#atme-cv-modal .wpcf7-submit,
#atme-rc-modal .wpcf7-submit {
  background: #5f19c8 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 200px !important;
  padding: 16px 23px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  font-family: 'Montserrat', sans-serif !important;
  line-height: 1 !important;
  flex-shrink: 0;
}

#atme-cv-modal .wpcf7-submit:hover,
#atme-rc-modal .wpcf7-submit:hover {
  background: #4f14a8 !important;
}

.atme-cv-disclaimer {
  font-family: "Montserrat", sans-serif;
  font-size: 16px !important;
  font-weight: 400;
  color: #6B7280 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  flex: 1;
  min-width: 0;
}

#atme-cv-modal .atme-cv-disclaimer {
  line-height: 2 !important;
}

.atme-cv-disclaimer a {
  color: #5f19c8 !important;
  text-decoration: underline !important;
}

.atme-cv-disclaimer a:hover {
  color: #4f14a8 !important;
}

/* Dropzone */
.atme-cv-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #D1D5DB;
  border-radius: 10px;
  padding: 14px 12px;
  background: #F9FAFB;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.atme-cv-dropzone:hover,
.atme-cv-dropzone--dragover {
  border-color: #8633E9;
  background: #F9F5FF;
}

.atme-cv-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.atme-cv-dropzone-icon {
  margin-bottom: 2px;
}

.atme-cv-dropzone-text {
  font-size: 13px;
  color: #4B5563;
  margin: 0;
  line-height: 1.4;
}

.atme-cv-dropzone-link {
  font-size: 13px;
  color: #8633E9 !important;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.atme-cv-dropzone-hint {
  font-size: 12px;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.4;
}

/* File preview */
.atme-cv-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  padding: 12px 16px;
  background: #F9FAFB;
}

.atme-cv-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.atme-cv-file-ext {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #8633E9;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 6px 8px;
  min-width: 36px;
  flex-shrink: 0;
}

.atme-cv-file-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.atme-cv-file-name {
  font-size: 13px;
  font-weight: 500;
  color: #19144b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atme-cv-file-size {
  font-size: 12px;
  color: #9CA3AF;
}

.atme-cv-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.atme-cv-file-remove:hover {
  color: #EF4444;
}

/* Validation errors */
#atme-cv-modal input[type="text"].wpcf7-not-valid,
#atme-cv-modal input[type="email"].wpcf7-not-valid,
#atme-cv-modal textarea.wpcf7-not-valid,
#atme-cv-modal input[type="file"].wpcf7-not-valid,
#atme-rc-modal input[type="text"].wpcf7-not-valid,
#atme-rc-modal input[type="email"].wpcf7-not-valid,
#atme-rc-modal textarea.wpcf7-not-valid {
  border-color: #EF4444 !important;
}

#atme-cv-modal .wpcf7-not-valid-tip,
#atme-rc-modal .wpcf7-not-valid-tip {
  display: block;
  color: #EF4444;
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.4;
  box-shadow: none !important;
  text-shadow: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}
#atme-cv-modal .wpcf7-form-control-wrap,
#atme-rc-modal .wpcf7-form-control-wrap {
  box-shadow: none !important;
}
/* CF7 <br> between fields — убираем лишние отступы во всех наших модалках */
#atme-cv-modal br,
#atme-rc-modal br,
#atme-otc-modal br {
  display: none;
}

#atme-cv-modal .wpcf7-form.invalid .atme-cv-dropzone {
  border-color: #EF4444;
  background: #FEF2F2;
}

#atme-cv-modal .wpcf7-response-output,
#atme-rc-modal .wpcf7-response-output {
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin: 16px 0 0 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  display: none !important;
}

/* Success banner */
.atme-cv-success-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F0FDF4;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #16A34A;
  line-height: 1.4;
}

/* Dropzone error state */
.atme-cv-dropzone--error {
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
}

/* Client-side file validation (cv-modal.js) */
.atme-cv-file-field .atme-cv-file-client-error {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #DC2626;
}

#atme-cv-modal .atme-cv-file-preview.atme-cv-file-preview--error {
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
}

/* CV file row: server spam / invalid file / client validation (cv-modal.js) */
#atme-cv-modal .atme-cv-file-field.atme-cv-file-field--highlight-error > label {
  color: #DC2626;
}

#atme-cv-modal .atme-cv-file-field.atme-cv-file-field--highlight-error .atme-cv-dropzone {
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
}

/* Hide CF7 default screen-reader-response and response-output */
#atme-cv-modal .screen-reader-response,
#atme-rc-modal .screen-reader-response {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* CF7 spinner */
#atme-cv-modal .wpcf7-spinner,
#atme-rc-modal .wpcf7-spinner {
  display: inline-block;
  margin-left: 8px;
}

/* Hide default CF7 file display */
#atme-cv-modal .atme-cv-file-field .wpcf7-form-control-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Yes/No toggle buttons */
.atme-cv-toggle-group {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.atme-cv-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #D1D5DB;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 14px;
  font-family: 'Inter', 'Aeonik Pro', sans-serif;
  color: #6B7280;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, font-weight 0.2s;
  line-height: 1.4;
}
.atme-cv-toggle-btn:hover {
  border-color: #9CA3AF;
}
.atme-cv-toggle-btn.active {
  background-color: #efe8f9;
  border-color: #5F19C8;
  color: #5F19C8;
  font-weight: 600;
}
.atme-cv-toggle-field .wpcf7-radio .wpcf7-list-item {
  display: none;
}

/* Admin bar offset */
.admin-bar .atme-cv-modal {
  top: 32px;
  height: calc(100% - 32px);
}
.admin-bar .atme-cv-modal-content {
  max-height: calc(90vh - 32px);
}
.admin-bar .atme-cv-modal-scroll {
  max-height: calc(90vh - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .atme-cv-modal {
    top: 46px;
    height: calc(100% - 46px);
  }
  .admin-bar .atme-cv-modal-content {
    max-height: calc(100vh - 46px);
  }
  .admin-bar .atme-cv-modal-scroll {
    max-height: calc(100vh - 46px);
  }
}

/* ============================================
   CV Modal Form Mobile Styles (ID-specific)
   ============================================ */
@media (max-width: 768px) {
  .atme-cv-two-col {
    flex-direction: column;
    gap: 0;
  }

  .atme-cv-two-col .atme-cv-field {
    width: 100%;
  }

  .atme-cv-submit-row {
    flex-direction: column;
    align-items: center;
  }

  .atme-cv-submit-row > p:first-child {
    width: 100% !important;
  }

  .wpcf7-submit {
    width: 100% !important;
    text-align: center !important;
  }

  #atme-cv-modal .atme-cv-disclaimer,
  #atme-rc-modal .atme-cv-disclaimer,
  #atme-otc-modal .atme-cv-disclaimer {
    text-align: center !important;
    font-size: 14px !important;
    padding-top: 10px !important;
  }

  #atme-cv-modal input[type="text"],
  #atme-cv-modal input[type="email"],
  #atme-cv-modal input[type="tel"],
  #atme-cv-modal textarea,
  #atme-rc-modal input[type="text"],
  #atme-rc-modal input[type="email"],
  #atme-rc-modal input[type="tel"],
  #atme-rc-modal textarea,
  #atme-otc-modal input[type="text"],
  #atme-otc-modal input[type="email"],
  #atme-otc-modal input[type="tel"],
  #atme-otc-modal textarea {
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-size: 15px !important;
  }

  .atme-cv-field label {
    font-size: 14px !important;
  }

  .atme-cv-dropzone {
    padding: 20px 12px;
  }
}
