/* Contact form styles, lifted from the CRM's own design system so the
   embedded form keeps its appearance without pulling in that site's
   Bootstrap and resetting this theme.
   Every rule here is .ldcf-* / .tel-* except the token block, which is
   scoped to .ldw-contact-form so the variables cannot leak out.
   Regenerate from https://my.lightdegree.com/static/styles/ld-design-system.css
   if that form is restyled. */

/* The CRM's page gets border-box from the Bootstrap it loads, which is
   deliberately not imported here. Without it .ldcf-shell is 100%
   wide *plus* 40px of padding and the page scrolls sideways below
   1024px. Scoped to the form so the theme's own sizing is untouched. */
.ldw-contact-form,
.ldw-contact-form *,
.ldw-contact-form *::before,
.ldw-contact-form *::after { box-sizing: border-box; }

/* On the CRM's own page this comes from a global body rule, which is
   deliberately not imported — it would restyle this whole theme. Scoped
   to the wrapper instead. Without it form controls fall back to the
   browser default, which renders the textarea in monospace. */
.ldw-contact-form,
.ldw-contact-form input,
.ldw-contact-form select,
.ldw-contact-form textarea,
.ldw-contact-form button { font-family: var(--ld-font); }

.ldw-contact-form{
    
    --ld-primary:        #59ADA8;
    --ld-primary-hover:  #45b3ab;
    --ld-primary-active: #65BB99;
    --ld-primary-soft:   #C9D0CA;   

    
    --ld-danger:   #E15A58;
    --ld-warning:  #f6a821;
    --ld-success:  #65BB99;
    --ld-success-dark: #4fa882;   
    --ld-info:     #5bc0de;
    --ld-hard:     #234C5A;   
    --ld-hard-dark:#1b3a46;   

    
    --ld-ld-warning:       #F6CC9F;
    --ld-ld-warning-hover: #f0bd86;   

    
    --ld-text:        #3a3a3a;
    --ld-text-muted:  #8a8f99;
    --ld-border:      #e3e6ea;
    --ld-bg-soft:     #f7f9fa;
    --ld-white:       #ffffff;

    
    --ld-radius:        6px;
    --ld-radius-pill:   50px;
    --ld-shadow-sm:     0 1px 3px rgba(0, 0, 0, .12);
    --ld-shadow:        0 2px 10px rgba(0, 0, 0, .08);

    
    --ld-font: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.ldcf-page{
    --ldcf-accent: var(--ld-primary);
    
    --ldcf-masthead-bg: #d7dbdb;
    
    --ldcf-accent-on-dark: #4ecdc0;
    --ldcf-ink: #0f3050;
    --ldcf-canvas: #e9f4f2;
    background: var(--ldcf-canvas);
    color: var(--ld-text);
    font-family: var(--ld-font);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.ldcf-shell{
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: 0 20px;
}
.ldcf-masthead{
    background: var(--ldcf-masthead-bg);
    border-bottom: 3px solid var(--ldcf-accent);
    padding: 18px 0;
    text-align: center;
}
.ldcf-logo-card{
    display: inline-block;
    background: var(--ld-white);
    border: 1px solid var(--ld-border);
    border-radius: 4px;
    padding: 14px 26px;
    min-width: 180px;
}
.ldcf-logo-card img{
    max-height: 60px;
    max-width: 260px;
    width: auto;
    height: auto;
}
.ldcf-logo-name{
    font-size: 14px;
    font-weight: 700;
    color: var(--ldcf-ink);
    margin: 0;
}
.ldcf-main{
    flex: 1 0 auto;
    padding: 44px 0 56px;
}
.ldcf-eyebrow{
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
    margin: 0 0 6px;
}
.ldcf-title{
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--ldcf-ink);
    margin: 0 0 14px;
}
.ldcf-lede{
    font-size: 14px;
    line-height: 1.65;
    color: var(--ld-text-muted);
    max-width: 520px;
    margin: 0 0 18px;
}
.ldcf-rule{
    display: block;
    width: 54px;
    height: 3px;
    background: var(--ldcf-accent);
    margin-bottom: 32px;
}
.ldcf-layout{
    display: flex;
    align-items: flex-start;
    gap: 22px;
}
.ldcf-details{
    flex: 0 0 260px;
    background: var(--ld-hard);
    border-radius: 8px;
    padding: 26px 22px;
    color: #dce7ee;
}
.ldcf-form-card{
    flex: 1 1 auto;
    min-width: 0;
    background: var(--ld-white);
    border: 1px solid var(--ld-border);
    border-radius: 8px;
    padding: 26px 26px 22px;
}
.ldcf-details-name{
    font-size: 17px;
    font-weight: 700;
    color: var(--ld-white);
    margin: 0 0 8px;
    line-height: 1.3;
}
.ldcf-details-tag{
    font-size: 12px;
    line-height: 1.55;
    color: #9fb4c4;
    margin: 0 0 22px;
}
.ldcf-detail{
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ldcf-detail-label{
    display: block;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ldcf-accent-on-dark);
    margin-bottom: 6px;
}
.ldcf-detail-label i{ margin-right: 6px; }
.ldcf-detail-value{
    font-size: 13px;
    line-height: 1.55;
    color: var(--ld-white);
    word-wrap: break-word;
}
.ldcf-detail-value a{
    color: var(--ld-white);
    text-decoration: underline;
}
.ldcf-detail-value a:hover,
.ldcf-detail-value a:focus{
    color: var(--ldcf-accent-on-dark);
}
.ldcf-section{
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
}
.ldcf-grid + .ldcf-section{ margin-top: 16px; }
.ldcf-step{
    display: inline-block;
    background: var(--ldcf-accent);
    color: var(--ld-white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 3px;
    padding: 3px 6px;
}
.ldcf-section-title{
    font-size: 14px;
    font-weight: 700;
    color: var(--ldcf-ink);
    margin: 0;
}
.ldcf-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
}
.ldcf-field{
    flex: 1 1 100%;
    margin-bottom: 16px;
}
.ldcf-field-half{
    flex: 1 1 calc(50% - 9px);
    min-width: 200px;
}
.ldcf-label{
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ld-text);
    margin-bottom: 6px;
}
.ldcf-req{
    color: var(--ld-danger);
    margin-left: 2px;
}
.ldcf-optional{
    color: var(--ld-text-muted);
    font-weight: 400;
    margin-left: 4px;
}
.ldcf-page .ldcf-input,
.ldcf-page select.ldcf-input,
.ldcf-page textarea.ldcf-input{
    display: block;
    width: 100%;
    background: var(--ld-bg-soft);
    border: 1px solid var(--ld-border);
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 13.5px;
    color: var(--ld-text);
    box-shadow: none;
    height: auto;
}
.ldcf-page textarea.ldcf-input{
    min-height: 120px;
    resize: vertical;
}
.ldcf-page .ldcf-input:focus{
    outline: none;
    border-color: var(--ldcf-accent);
    background: var(--ld-white);
}
.ldcf-page .ldcf-input::placeholder{ color: #9aa9b2; }
.ldcf-help{
    font-size: 11.5px;
    color: var(--ld-text-muted);
    margin: 6px 0 0;
}
.ldcf-field-error .ldcf-input{ border-color: var(--ld-danger); }
.ldcf-error{
    font-size: 11.5px;
    color: var(--ld-danger);
    margin: 5px 0 0;
}
.ldcf-page #id_telephone_0{ display: none; }
.ldcf-page .bootstrap-datepicker-date-widget,
.ldcf-page .bootstrap-datepicker-datetime-widget{ display: block; }
.ldcf-page .bootstrap-datepicker-date-widget input,
.ldcf-page .bootstrap-datepicker-datetime-widget input{
    display: block;
    width: 100%;
    background: var(--ld-bg-soft);
    border: 1px solid var(--ld-border);
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 13.5px;
    color: var(--ld-text);
    box-shadow: none;
    height: auto;
}
.ldcf-page .bootstrap-datepicker-date-widget input:focus,
.ldcf-page .bootstrap-datepicker-datetime-widget input:focus{
    outline: none;
    border-color: var(--ldcf-accent);
    background: var(--ld-white);
}
.ldcf-page .bootstrap-datepicker-date-widget .add-on,
.ldcf-page .bootstrap-datepicker-datetime-widget .add-on{ display: none; }
.ldcf-page .ldcf-field input[type="checkbox"].ldcf-input{
    display: inline-block;
    width: auto;
    height: auto;
}
.ldcf-counter-label{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.ldcf-counter{
    font-size: 11px;
    color: var(--ld-text-muted);
    font-weight: 400;
}
.ldcf-captcha{ margin: 4px 0 22px; }
.ldcf-captcha-error{
    display: block;
    font-size: 12px;
    color: var(--ld-danger);
    margin-bottom: 8px;
}
.ldcf-actions{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ldcf-page .ldcf-btn{
    display: inline-block;
    border-radius: 5px;
    padding: 9px 22px;
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}
.ldcf-page .ldcf-btn-back{
    background: var(--ld-white);
    border-color: var(--ld-border);
    color: var(--ld-text-muted);
}
.ldcf-page .ldcf-btn-back:hover,
.ldcf-page .ldcf-btn-back:focus{
    border-color: var(--ld-text-muted);
    color: var(--ld-text);
}
.ldcf-page .ldcf-btn-send{
    background: var(--ldcf-accent);
    color: var(--ld-white);
}
.ldcf-page .ldcf-btn-send:hover,
.ldcf-page .ldcf-btn-send:focus{
    filter: brightness(0.93);
    color: var(--ld-white);
}
.ldcf-privacy{
    font-size: 11.5px;
    color: var(--ld-text-muted);
    margin: 16px 0 0;
}
.ldcf-alert{
    border-radius: var(--ld-radius);
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
}
.ldcf-alert ul{
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}
.ldcf-alert-error{
    background: #fdecec;
    border: 1px solid #f2c2c4;
    color: #98333a;
}
.ldcf-alert-success{
    background: #e6f6f2;
    border: 1px solid #b6e2d8;
    color: #1d6b5c;
}
.ldcf-footer{
    flex-shrink: 0;
    background: #dbeae7;
    border-top: 1px solid #c8dcd8;
    padding: 18px 0;
    font-size: 11.5px;
    color: var(--ld-text-muted);
}
.ldcf-footer-inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ldcf-footer a{
    color: var(--ld-text-muted);
    margin-left: 16px;
}
.ldcf-footer a:hover,
.ldcf-footer a:focus{ color: var(--ldcf-ink); }
@media (max-width: 767px){
.ldcf-layout{ flex-direction: column; }
.ldcf-details{
        flex: 1 1 auto;
        width: 100%;
    }
.ldcf-title{ font-size: 30px; }
.ldcf-field-half{ flex: 1 1 100%; }
}

/* The location map carries no styling of its own, so it sits at the
   HTML default 300x150 — a fixed width that overflows a 360px
   screen. Fluid instead, which also fills the panel properly on
   wider screens. */
.ldw-contact-form .ldcf-map iframe { display: block; width: 100%; max-width: 100%; border: 0; }

/* ---- narrow screens -------------------------------------------------
   The reCAPTCHA widget is a fixed 302px and cannot reflow, so the width
   has to be found in the padding around it. Below 700px this theme's
   section padding is dropped (the CRM shell already supplies 20px
   gutters), and below 480px the card padding shrinks and the widget is
   scaled down to fit a 360px screen. */
@media (max-width: 700px) {
  section[data-screen-label].ldw-contact-form { padding-left: 0 !important; padding-right: 0 !important; }
}

@media (max-width: 480px) {
  .ldw-contact-form .ldcf-form-card { padding: 18px 16px 16px; }
  .ldw-contact-form .ldcf-detail { padding-left: 16px; padding-right: 16px; }
  /* scale() keeps the widget's original box, so the height is pinned to
     the scaled size to avoid a gap underneath it. */
  .ldw-contact-form .g-recaptcha { transform: scale(0.86); transform-origin: 0 0; height: 68px; }
}
