/* Toeflyar 1.0.0 – Native Elementor Pro Form + mobile off-canvas + dark readability.
   Keep editable Elementor controls; do not set !important on typography of form fields. */
:root { --tf-consult-orange:#f26b4d; --tf-form-ink:#1f1730; --tf-form-placeholder:#a49aa9; }

/* Native Form sits in a genuine Elementor container; headings remain independent widgets. */
.tf-pro-form-card{
  background:#fff; color:var(--tf-form-ink); border-radius:26px;
  padding:24px; box-shadow:0 20px 28px -22px rgba(31,23,48,.45);
  width:100%;min-width:0;box-sizing:border-box;gap:5px!important;
}
.tf-pro-form-card .tf-pro-form-heading .elementor-heading-title {color:var(--tf-form-ink);font-size:19px;line-height:1.55;font-weight:900;text-align:right;}
.tf-pro-form-card .tf-pro-form-description p{color:#80768a;font-size:13px;line-height:1.9;margin:0 0 10px;text-align:right;}
.tf-pro-form-card .elementor-widget-form{width:100%;background:transparent;border:0;padding:0;min-width:0;}
.tf-pro-form-card .elementor-widget-form>.elementor-widget-container{padding:0;background:transparent;border:0;}
.tf-pro-form-card .elementor-form-fields-wrapper{display:flex;flex-wrap:wrap;gap:0;}
.tf-pro-form-card .elementor-form .elementor-field-group{width:100%;margin-bottom:12px;padding:0;}
.tf-pro-form-card .elementor-form .elementor-field{
  display:block;width:100%;min-height:51px;border:1px solid #e6dcdb;
  border-radius:14px;background:#fff8f3;color:var(--tf-form-ink);
  padding:13px 16px;font-family:inherit;text-align:right;box-sizing:border-box;
}
.tf-pro-form-card .elementor-form .elementor-field::placeholder{color:var(--tf-form-placeholder);opacity:1;}
.tf-pro-form-card .elementor-form .elementor-field:focus{border-color:var(--tf-consult-orange);outline:2px solid rgba(242,107,77,.15);outline-offset:1px;}
.tf-pro-form-card .elementor-form .elementor-field-type-submit{margin:0;}
.tf-pro-form-card .elementor-form .elementor-button{
  width:100%;min-height:49px;border:0;border-radius:13px;background:var(--tf-consult-orange);
  color:#fff;font-family:inherit;font-weight:800;box-shadow:0 10px 18px -14px #bd492f;
}
.tf-pro-form-card .elementor-form .elementor-button:hover{background:#da593f;color:#fff;}
.tf-pro-form-card .elementor-message{font-size:12px;text-align:right;margin:10px 0 0;line-height:1.8;}
/* Per-service exterior color comes from its existing editable Elementor Container. */
:where(.mz-ielts-form-side,.mz-toefl-form-side,.mz-gre-form-side,.mz-duolingo-form-side) .tf-pro-form-card{max-width:100%;}
:where(.mz-ielts-form-side,.mz-toefl-form-side,.mz-gre-form-side,.mz-duolingo-form-side) .tf-pro-form-fields{background:transparent;padding:0;border:0;border-radius:0;}
.tf-contact-form-card .tf-pro-form-card{padding:0;box-shadow:none;}

/* Dark-mode: these headings previously inherited hard-coded navy text. Scope
   only the non-card section headings – card text uses its own design tokens. */
html[data-mz-theme="dark"] :is(
 .mz-ielts-h1,.mz-toefl-h1,.mz-gre-h1,.mz-duolingo-h1,
 .mz-ielts-heading,.mz-toefl-heading,.mz-gre-heading,.mz-duolingo-heading
 ) .elementor-heading-title { color:#f9f5ff!important; }
html[data-mz-theme="dark"] :is(.mz-ielts-form-title,.mz-toefl-form-title,.mz-gre-form-title,.mz-duolingo-form-title) .elementor-heading-title {color:#fff!important;}
html[data-mz-theme="dark"] :is(.mz-ielts-form-subtitle,.mz-toefl-form-subtitle,.mz-gre-form-subtitle,.mz-duolingo-form-subtitle) p {color:#ebdae9;}
html[data-mz-theme="dark"] :is(.mz-ielts-h1,.mz-toefl-h1,.mz-gre-h1,.mz-duolingo-h1,
 .mz-ielts-heading,.mz-toefl-heading,.mz-gre-heading,.mz-duolingo-heading) .mz-hot{color:#ff8a65!important}
html[data-mz-theme="dark"] :is(.mz-ielts-hero-copy,.mz-toefl-hero-copy,.mz-gre-hero-copy,.mz-duolingo-hero-copy) :is(p,.elementor-widget-text-editor){color:#e4dbe9;}
html[data-mz-theme="dark"] .tf-pro-form-card,
html[data-mz-theme="dark"] .tf-pro-form-card :is(.elementor-heading-title,p){color:var(--tf-form-ink);}
html[data-mz-theme="dark"] .tf-pro-form-card .elementor-form .elementor-field{color:var(--tf-form-ink);background:#fff8f3;}
html[data-mz-theme="dark"] .tf-pro-form-card .elementor-form .elementor-button{color:#fff;}

@media (max-width:767px){
  /* Mobile slide-out is mounted under body, so neither Elementor flex overflow
     nor the sticky header backdrop-filter can clip it. */
  html.tf-mobile-menu-open,body.tf-mobile-menu-open{overflow:hidden!important;}
  .tf-menu-overlay{position:fixed;inset:0;z-index:999998;background:rgba(14,9,26,.60);backdrop-filter:blur(2px)}
  .tf-menu-sheet{
    position:fixed;top:0;bottom:0;right:0;z-index:999999;
    width:min(355px,calc(100vw - 30px));height:100dvh;box-sizing:border-box;
    background:var(--mz-card,#fff);color:var(--mz-ink,#1f1730);
    padding:20px 18px 25px;overflow-y:auto;overscroll-behavior:contain;
    border-radius:20px 0 0 20px;box-shadow:-25px 0 55px rgba(0,0,0,.19);
    direction:rtl;
  }
  .tf-menu-sheet-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid var(--mz-border,#eee);}
  .tf-menu-sheet-heading strong{font-size:21px;line-height:1.7;font-weight:900;color:var(--mz-ink,#1f1730)}
  .tf-menu-sheet-close{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--mz-border,#eee);background:var(--mz-card,#fff);color:var(--mz-ink,#1f1730);border-radius:100%;font-size:23px;cursor:pointer;}
  .tf-menu-sheet .mzui-nav-list{display:flex!important;position:static!important;inset:auto!important;max-width:none!important;width:100%!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;transform:none!important;opacity:1!important;visibility:visible!important;background:transparent!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;}
  .tf-menu-sheet .mzui-nav-list>li{width:100%;list-style:none;}
  .tf-menu-sheet .mzui-nav-list>li>a{display:block;width:100%;padding:12px 13px!important;font-size:15px!important;line-height:1.6;text-decoration:none;color:var(--mz-ink,#1f1730);background:var(--mz-soft,#fff7f1);border-radius:12px;white-space:normal;}
  .tf-menu-sheet .mzui-nav-list .sub-menu{display:flex;position:static!important;right:auto!important;top:auto!important;left:auto!important;width:100%!important;opacity:1!important;visibility:visible!important;transform:none!important;box-shadow:none!important;border:0!important;padding:5px 12px!important;margin:0!important;background:transparent!important;gap:0;}
  .tf-menu-sheet .mzui-nav-list .sub-menu li{width:100%}
  .tf-menu-sheet .mzui-nav-list .sub-menu li a{display:block;color:var(--mz-ink,#1f1730);padding:8px 10px;font-size:13px;}
  .tf-menu-sheet :is(a,button):focus-visible{outline:2px solid var(--tf-consult-orange);outline-offset:2px;}
  .mzui-global-header .mzui-header-row{width:100%!important;padding-inline:15px!important;}
.e-con:where(.mzui-global-header .mzui-header-row){--gap:10px;}

  .mzui-global-header .mzui-header-brand,.mzui-global-header .mzui-header-actions{min-width:0;}
  .mzui-global-header .mzui-menu-toggle{width:40px;height:40px;border:1px solid var(--mz-border,#ddd);border-radius:12px;padding:7px;box-sizing:border-box;}
  .mzui-global-header .mzui-menu-toggle span{margin-inline:auto;max-width:100%;}
  .tf-pro-form-card{padding:20px 16px;border-radius:22px;}
}
@media (min-width:768px){.tf-menu-overlay,.tf-menu-sheet{display:none!important}}
