/* UDIT custom lead form ([udit_lead_form] from the udit-lead-form plugin). */

.udit-lf {
    --lf-ink: #000;
    --lf-placeholder: #8a8a8a;
    --lf-maroon: #751f3c;
    --lf-error: #b4362f;
    display: grid;
    gap: 15px;
    padding: 20px 21px 24px;
    font-family: "Inter", sans-serif;
    color: var(--lf-ink);
}

.udit-lf label { display: block; margin: 0; }

/* Labels kept for screen readers; the design uses placeholders. */
.udit-lf-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- inputs + selects ---- */
.udit-lf input[type=text],
.udit-lf input[type=email],
.udit-lf input[type=tel],
.udit-lf select {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1.5px solid var(--lf-ink);
    border-radius: 3px;
    background-color: #fff;
    font: 400 16px/1.2 "Inter", sans-serif;
    color: var(--lf-ink);
    box-shadow: none;
    outline: none;
}

.udit-lf ::placeholder { color: var(--lf-placeholder); opacity: 1; }

.udit-lf input:focus-visible,
.udit-lf select:focus-visible { outline: 2px solid var(--lf-maroon); outline-offset: 2px; }

.udit-lf select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M1 1l11 11L23 1' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 13px 8px;
    background-position: right 12px center;
}

.udit-lf select:disabled { cursor: not-allowed; color: var(--lf-ink); opacity: 1; }

/* ---- +91 phone ---- */
.udit-lf-phone {
    display: flex !important;
    align-items: stretch;
    border: 1.5px solid var(--lf-ink);
    border-radius: 3px;
}

.udit-lf-cc {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 12px;
    border-right: 1.5px solid var(--lf-ink);
    font-size: 13px;
}

.udit-lf-cc-val::after { content: ""; display: inline-block; margin-left: 5px; border: 4px solid transparent; border-top: 5px solid var(--lf-ink); border-bottom: 0; vertical-align: middle; }
/* The real select sits invisibly on top: tapping the code opens the native country list. */
.udit-lf .udit-lf-cc select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; background: none; }
.udit-lf .udit-lf-phone input[type=tel] { flex: 1; min-width: 0; border: 0; border-radius: 0; }

/* ---- Course | Programme ---- */
.udit-lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---- image captcha: [code + refresh] [input] ---- */
.udit-lf-captcha { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.udit-lf-cap-img {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 44px;
    padding: 0 2px 0 6px;
    border: 1.5px solid var(--lf-ink);
    border-radius: 3px;
    background: #fff;
}
.udit-lf-cap-img img { display: block; width: 120px; height: 35px; }
.udit-lf-cap-new { padding: 4px; border: 0; background: none; color: var(--lf-ink); font-size: 22px; line-height: 1; cursor: pointer; }

/* ---- consent ---- */
.udit-lf-consent {
    display: grid !important;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #464545;
    cursor: pointer;
}

.udit-lf-consent span {
    font-size: 11px;
    line-height: 120%;
}

.udit-lf-consent input[type=checkbox] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--lf-maroon);
    cursor: pointer;
}

/* ---- submit: maroon slab, cut bottom-right corner ---- */
.udit-lf button[type=submit] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 62px;
    margin: 4px 0 0;
    padding: 0 24px;
    border: 0;
    border-radius: 0;
    background: var(--lf-maroon);
    color: #fff;
    font: 800 18px/1 "Inter", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

/* UDIT button states: black overlay 0 / 10% hover / 20% pressed */
.udit-lf button[type=submit]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    transition: opacity .15s;
}
.udit-lf button[type=submit]:hover::after { opacity: .1; }
.udit-lf button[type=submit]:active::after { opacity: .2; }
.udit-lf button[type=submit]:disabled { cursor: wait; opacity: .7; }
.udit-lf button[type=submit] img { display: block; width: 24px; height: 24px; margin-left: auto; position: relative; z-index: 1; }

/* ---- errors + message ---- */
/* Red border made heavier with an inset shadow (no layout shift) + a light red fill. */
.udit-lf label.has-error input,
.udit-lf label.has-error select,
.udit-lf label.has-error.udit-lf-phone {
    border-color: var(--lf-error);
    box-shadow: inset 0 0 0 1px var(--lf-error);
    background-color: #fdeeed;
}
/* Phone: the outer box draws the heavy border + fill; the inner input must be see-through or it hides them. */
.udit-lf label.has-error.udit-lf-phone input { box-shadow: none; background-color: transparent; }
.udit-lf label.has-error.udit-lf-consent { color: var(--lf-error); }

.udit-lf-msg { margin: 0; font-size: 14px; }
.udit-lf-msg:empty { display: none; }
.udit-lf-msg.is-error { color: var(--lf-error); }
.udit-lf-msg.is-ok { color: #2d6a5c; }

.udit-lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- small phones: stack Course / Programme ---- */
@media only screen and (max-width: 400px) {
    .udit-lf-row { grid-template-columns: 1fr; gap: 15px; }
}

/* ---- remarks ---- */
.udit-lf textarea {
    display: block;
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 10px 12px;
    border: 1.5px solid var(--lf-ink);
    border-radius: 3px;
    background: #fff;
    font: 400 16px/1.4 "Inter", sans-serif;
    color: var(--lf-ink);
    resize: vertical;
    box-shadow: none;
    outline: none;
}
.udit-lf textarea:focus-visible { outline: 2px solid var(--lf-maroon); outline-offset: 2px; }

/* ---- after submit: thank-you image replaces the form ---- */
.udit-lf[hidden] { display: none; }
.udit-lf-thanks { padding: 20px 21px 24px; }
.udit-lf-thanks img { display: block; width: 100%; height: auto; }
