.im-contact-section,
.im-contact-section * {
    box-sizing: border-box;
}

html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
}

.elementor-widget-html:has(.im-contact-section),
.elementor-widget-html:has(.im-contact-section) > .elementor-widget-container,
.elementor-widget-container:has(.im-contact-section),
.e-con:has(.im-contact-section),
.e-con-inner:has(.im-contact-section) {
    margin: 0 !important;
    padding: 0 !important;
    background: #0f172a !important;
}

.im-contact-full-width {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin: -1px -50vw !important;
}

.im-contact-section {
    position: relative;
    min-height: 720px;
    padding: 5rem 1rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(160deg, #0f172a 0%, #16213f 55%, #0f172a 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.im-contact-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.im-contact-bg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.im-contact-bg-shade,
.im-contact-bg-gradient {
    position: absolute;
    inset: 0;
}

.im-contact-bg-shade {
    background: rgba(15, 23, 42, 0.6);
    mix-blend-mode: multiply;
}

.im-contact-bg-gradient {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.86), rgba(30, 64, 175, 0.8));
}

.im-contact-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
}

.im-contact-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    box-shadow:
        0 30px 80px rgba(2, 6, 23, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.im-contact-info {
    position: relative;
    padding: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    backdrop-filter: blur(24px);
}

.im-contact-info-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.im-contact-info-content {
    position: relative;
    z-index: 1;
}

.im-contact-kicker {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.45rem 1.25rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.im-contact-info h2 {
    margin: 0 0 1.25rem;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.im-contact-info p {
    margin: 0 0 3rem;
    color: rgba(219, 234, 254, 0.9);
    font-size: 1rem;
    line-height: 1.7;
}

.im-contact-details {
    display: grid;
    gap: 2rem;
}

.im-contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.im-contact-icon {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.im-contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.im-contact-detail span {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(191, 219, 254, 0.75);
    font-size: 0.875rem;
    font-weight: 600;
}

.im-contact-detail strong {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.4;
    word-break: break-word;
}

.im-contact-form-panel {
    position: relative;
    padding: 2.5rem;
    background: #ffffff;
}

.im-contact-form-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.im-contact-form {
    margin: 0 !important;
    display: grid;
    gap: 1.5rem;
}

.im-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.im-contact-field {
    display: grid;
    gap: 0.5rem;
}

.im-contact-field label {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 700;
}

.im-contact-field label span {
    color: #ef4444;
}

.im-contact-field input,
.im-contact-field select,
.im-contact-field textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    color: #1f2937;
    padding: 0.9rem 1rem;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.im-contact-field textarea {
    min-height: 130px;
    resize: vertical;
}

.im-contact-field input:focus,
.im-contact-field select:focus,
.im-contact-field textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.im-contact-select {
    position: relative;
}

.im-contact-select select {
    appearance: none;
    padding-right: 3rem;
    cursor: pointer;
}

.im-contact-select-arrow {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 1rem;
    height: 1rem;
    color: #6b7280;
    pointer-events: none;
}

.im-contact-submit-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-top: 1rem;
}

.im-contact-submit-row button {
    border: 1px solid #2563eb;
    border-radius: 0.75rem;
    background: #2563eb;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.im-contact-submit-row button:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

.im-contact-submit-row p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.im-contact-submit-row a {
    color: inherit;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .im-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .im-contact-submit-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .im-contact-submit-row p {
        max-width: 13rem;
        text-align: right;
    }
}

@media (min-width: 1024px) {
    .im-contact-section {
        padding: 8rem 1rem;
    }

    .im-contact-card {
        flex-direction: row;
    }

    .im-contact-info {
        width: 40%;
        padding: 3.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 0;
    }

    .im-contact-form-panel {
        width: 60%;
        padding: 3.5rem;
    }
}

@media (max-width: 520px) {
    .im-contact-section {
        padding: 4rem 0.85rem;
    }

    .im-contact-info,
    .im-contact-form-panel {
        padding: 1.5rem;
    }

    .im-contact-info h2 {
        font-size: 1.75rem;
    }
}

/* =========================================================
   Global Hero / Page Contact Form
   ========================================================= */

.im-global-contact-section,
.im-global-contact-section * {
    box-sizing: border-box;
}

.im-global-hero-with-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 26.5rem) !important;
    gap: clamp(2rem, 5vw, 4rem) !important;
    align-items: center !important;
    margin-bottom: 5rem;
}

.student-hero,
.grad-hero,
.skilled-hero,
.pf-hero,
.visitor-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(2rem, 5vw, 4rem) !important;
}

.emp-hero-layout,
.cit-hero-layout,
.aat-hero-layout,
.edu-hero-layout {
    align-items: center !important;
}

@media (min-width: 1025px) {
    .emp-hero-layout,
    .cit-hero-layout,
    .aat-hero-layout,
    .edu-hero-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: clamp(2rem, 5vw, 4rem) !important;
    }
}

.im-global-hero-with-form > *,
.student-hero > *,
.grad-hero > *,
.skilled-hero > *,
.pf-hero > *,
.visitor-hero > *,
.emp-hero-layout > *,
.cit-hero-layout > *,
.aat-hero-layout > *,
.edu-hero-layout > * {
    min-width: 0 !important;
}

.services-header,
.student-hero-copy,
.grad-hero > :first-child,
.skilled-hero-copy,
.pf-hero > :first-child,
.visitor-hero-copy,
.emp-hero-copy,
.cit-hero-copy,
.aat-hero-copy,
.edu-hero-copy {
    max-width: 100% !important;
    overflow-wrap: break-word;
}

.im-global-hero-with-form .services-header {
    margin: 0 !important;
    text-align: left !important;
}

.im-global-hero-with-form .services-header p {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.services-header h1,
.student-hero-copy h1,
.grad-hero h1,
.skilled-hero-copy h1,
.pf-hero h1,
.visitor-hero-copy h1,
.emp-hero-copy h1,
.cit-hero-copy h1,
.aat-hero-copy h1,
.edu-hero-copy h1 {
    max-width: 100% !important;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.im-global-contact-form-card-hero {
    width: min(100%, 26.5rem);
    min-width: 0;
    max-width: 100%;
    flex: 0 0 min(100%, 26.5rem);
    justify-self: end;
    align-self: center;
    position: relative;
    z-index: 2;
}

/* Specificity note: the hero card always carries the base
   .im-global-contact-form-card class too (equal specificity, tied source
   order), so the structural look below must be pinned to the combined
   selector or the base card's flat background/blur silently wins. */
.im-global-contact-form-card.im-global-contact-form-card-hero {
    border-color: rgba(147, 197, 253, 0.28);
    border-radius: 1.7rem;
    background:
        radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.22), transparent 14rem),
        linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(39, 55, 84, 0.9));
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.23);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Batch 1 hero form card has no glassy corner blob - replace the base
   .im-global-contact-form-card decorative blob with a refined top accent
   bar for this variant instead. */
.im-global-contact-form-card.im-global-contact-form-card-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    width: auto;
    top: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0), #2563eb, #60a5fa, #2563eb, rgba(37, 99, 235, 0));
    filter: none;
    opacity: 0.9;
    pointer-events: none;
}

.im-global-contact-form-card-hero .im-global-contact-mini-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    color: #93c5fd;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.im-global-contact-form-card-hero .im-global-contact-mini-eyebrow::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #60a5fa;
    box-shadow: 0 0 0 0.35rem rgba(96, 165, 250, 0.13);
}

.im-global-contact-form-card-hero h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.im-global-contact-form-card-hero > p {
    font-size: 0.92rem;
}

.im-global-contact-form-card.im-global-contact-form-card-hero > p {
    margin-bottom: 1.1rem;
    color: rgba(219, 234, 254, 0.82) !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
}

.im-global-contact-form-card-hero .im-global-contact-form {
    gap: 0.75rem;
}

.im-global-contact-form-card-hero .im-global-contact-field label {
    gap: 0.35rem;
    font-size: 0.76rem;
}

.im-global-contact-form-card-hero .im-global-contact-field input,
.im-global-contact-form-card-hero .im-global-contact-field select,
.im-global-contact-form-card-hero .im-global-contact-field textarea {
    border-radius: 0.95rem;
    font-size: 0.88rem;
    padding: 0.82rem 0.95rem;
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: none;
}

.im-global-contact-form-card-hero .im-global-contact-field input:focus,
.im-global-contact-form-card-hero .im-global-contact-field select:focus,
.im-global-contact-form-card-hero .im-global-contact-field textarea:focus {
    border-color: rgba(96, 165, 250, 0.82);
    background: rgba(21, 32, 56, 0.88);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.22),
        0 0 22px rgba(37, 99, 235, 0.16);
}

.im-global-contact-form-card-hero .im-global-contact-field textarea {
    min-height: 5.25rem;
}

.im-global-contact-form-card-hero .im-global-contact-submit {
    min-height: 3rem;
    border-radius: 0.95rem;
    font-size: 0.75rem;
}

.im-global-contact-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 1rem;
    background:
        radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.12), transparent 30rem),
        linear-gradient(135deg, #0f172a 0%, #172554 48%, #0f172a 100%);
    color: #ffffff;
    font-family: "Inter", Arial, sans-serif;
}

.im-global-contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.18;
    pointer-events: none;
}

.im-global-contact-container {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 76rem);
    margin: 0 auto;
    grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
    gap: 3rem;
    align-items: center;
}

.im-global-contact-copy {
    max-width: 36rem;
}

.im-global-contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.im-global-contact-eyebrow::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #3b82f6;
    box-shadow: 0 0 0 0.45rem rgba(59, 130, 246, 0.14);
}

.im-global-contact-copy h2 {
    margin: 0 0 1.5rem;
    color: #ffffff;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
    text-transform: uppercase;
}

.im-global-contact-copy h2 span {
    display: inline-block;
    color: #60a5fa;
    font-style: italic;
}

.im-global-contact-copy p {
    margin: 0;
    color: rgba(219, 234, 254, 0.78);
    font-size: 1.08rem;
    font-weight: 300;
    line-height: 1.8;
}

.im-global-contact-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.im-global-contact-proof span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(239, 246, 255, 0.88);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.im-global-contact-form-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 2rem;
    background: rgba(15, 23, 42, 0.72);
    box-shadow:
        0 30px 90px rgba(2, 6, 23, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: clamp(1.4rem, 4vw, 2.5rem);
}

.im-global-contact-form-card::before {
    content: "";
    position: absolute;
    top: -8rem;
    right: -8rem;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.24);
    filter: blur(60px);
    pointer-events: none;
}

.im-global-contact-form-card h3 {
    position: relative;
    margin: 0 0 0.45rem;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
}

.im-global-contact-form-card > p {
    position: relative;
    margin: 0 0 1.65rem;
    color: rgba(219, 234, 254, 0.72);
    line-height: 1.7;
}

.im-global-contact-form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.im-global-contact-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.45rem;
}

.im-global-contact-field-full {
    grid-column: 1 / -1;
}

.im-global-contact-field label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.82rem;
    font-weight: 800;
}

.im-global-contact-field input,
.im-global-contact-field select,
.im-global-contact-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.1rem;
    background: rgba(8, 13, 24, 0.78);
    color: #ffffff;
    font: inherit;
    font-size: 0.96rem;
    outline: none;
    padding: 1rem 1.1rem;
    box-shadow: inset 0 1px 3px rgba(2, 6, 23, 0.35);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.im-global-contact-field textarea {
    min-height: 7rem;
    resize: vertical;
}

.im-global-contact-field input::placeholder,
.im-global-contact-field textarea::placeholder {
    color: rgba(203, 213, 225, 0.56);
}

.im-global-contact-field select {
    appearance: none;
}

.im-global-contact-field input:focus,
.im-global-contact-field select:focus,
.im-global-contact-field textarea:focus {
    border-color: rgba(96, 165, 250, 0.82);
    background: rgba(4, 8, 16, 0.92);
    box-shadow:
        inset 0 1px 3px rgba(2, 6, 23, 0.35),
        0 0 0 4px rgba(37, 99, 235, 0.22),
        0 0 22px rgba(37, 99, 235, 0.16);
}

.im-global-contact-select {
    position: relative;
}

.im-global-contact-select::after {
    content: "";
    position: absolute;
    right: 1.1rem;
    bottom: 1.25rem;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid rgba(191, 219, 254, 0.8);
    border-bottom: 2px solid rgba(191, 219, 254, 0.8);
    transform: rotate(45deg);
    pointer-events: none;
}

.im-global-contact-submit {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.4rem;
    border: 0;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #60a5fa 100%);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.im-global-contact-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 62%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.im-global-contact-submit:hover::after {
    transform: translateX(120%);
}

.im-global-contact-submit:hover {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .im-global-hero-with-form,
    .emp-hero-layout,
    .cit-hero-layout,
    .aat-hero-layout,
    .edu-hero-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .student-hero,
    .grad-hero,
    .skilled-hero,
    .pf-hero,
    .visitor-hero {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 2rem !important;
    }

    .im-global-contact-form-card-hero {
        width: 100%;
        max-width: 34rem;
        flex-basis: auto;
        justify-self: center;
        align-self: center;
    }

    .im-global-hero-with-form .services-header {
        text-align: center !important;
    }

    .im-global-hero-with-form .services-header p {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 900px) {
    .im-global-contact-container {
        grid-template-columns: 1fr;
    }

    .im-global-contact-copy {
        max-width: none;
        text-align: center;
    }

    .im-global-contact-proof {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .im-global-contact-section {
        padding: 4rem 1rem;
    }

    .im-global-contact-form {
        grid-template-columns: 1fr;
    }

    .im-global-contact-proof span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Education Counselling hero: keep words intact beside the form */
@media (min-width: 1025px) {
    .edu-hero-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 26.5rem) !important;
    }

    .edu-hero-copy h1 {
        max-width: 48rem !important;
        font-size: clamp(3.1rem, 5.6vw, 5.35rem) !important;
    }
}

/* Visitor hero with enquiry form: reduce oversized top whitespace */
.visitor-section.visitor-section-soft {
    padding-top: clamp(3rem, 5vw, 5rem) !important;
}

@media (max-width: 1024px) {
    .visitor-section.visitor-section-soft {
        padding-top: 3.25rem !important;
    }
}

@media (max-width: 640px) {
    .visitor-section.visitor-section-soft {
        padding-top: 2.25rem !important;
    }
}

/* Visitor page form layout: keep heading vertically centered beside tall form */
.visitor-hero:has(.im-global-contact-form-card-hero) {
    align-items: center !important;
}

.visitor-hero:has(.im-global-contact-form-card-hero) .im-global-contact-form-card-hero {
    align-self: center !important;
}

/* Desktop service-page hero consistency */
@media (min-width: 1025px) {
    .services-section:has(.im-global-contact-form-card-hero),
    .student-section:has(.im-global-contact-form-card-hero),
    .grad-section:has(.im-global-contact-form-card-hero),
    .skilled-section:has(.im-global-contact-form-card-hero),
    .emp-section:has(.im-global-contact-form-card-hero),
    .pf-section:has(.im-global-contact-form-card-hero),
    .visitor-section:has(.im-global-contact-form-card-hero),
    .cit-section:has(.im-global-contact-form-card-hero),
    .aat-section:has(.im-global-contact-form-card-hero),
    .edu-section:has(.im-global-contact-form-card-hero) {
        padding-top: 4.75rem !important;
    }

    .im-global-hero-with-form,
    .student-hero,
    .grad-hero,
    .skilled-hero,
    .pf-hero,
    .visitor-hero,
    .emp-hero-layout,
    .cit-hero-layout,
    .aat-hero-layout,
    .edu-hero-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 26.5rem) !important;
        gap: clamp(2.5rem, 5vw, 4.5rem) !important;
        align-items: start !important;
        margin-bottom: 5rem !important;
    }

    .services-header,
    .student-hero-copy,
    .grad-hero > :first-child,
    .skilled-hero-copy,
    .pf-hero > :first-child,
    .visitor-hero-copy,
    .emp-hero-copy,
    .cit-hero-copy,
    .aat-hero-copy,
    .edu-hero-copy {
        align-self: start !important;
        max-width: 52rem !important;
    }

    .services-header h1,
    .student-hero-copy h1,
    .grad-hero h1,
    .skilled-hero-copy h1,
    .pf-hero h1,
    .visitor-hero-copy h1,
    .emp-hero-copy h1,
    .cit-hero-copy h1,
    .aat-hero-copy h1,
    .edu-hero-copy h1 {
        font-size: clamp(4.25rem, 6vw, 6.25rem) !important;
        line-height: 0.92 !important;
        letter-spacing: 0 !important;
        max-width: 100% !important;
    }

    .im-global-contact-form-card-hero {
        width: 100% !important;
        max-width: 26.5rem !important;
        flex: none !important;
        justify-self: end !important;
        align-self: start !important;
    }
}

/* Desktop service-page hero consistency */
@media (min-width: 1025px) {
    .services-section:has(.im-global-contact-form-card-hero),
    .student-section:has(.im-global-contact-form-card-hero),
    .grad-section:has(.im-global-contact-form-card-hero),
    .skilled-section:has(.im-global-contact-form-card-hero),
    .emp-section:has(.im-global-contact-form-card-hero),
    .pf-section:has(.im-global-contact-form-card-hero),
    .visitor-section:has(.im-global-contact-form-card-hero),
    .cit-section:has(.im-global-contact-form-card-hero),
    .aat-section:has(.im-global-contact-form-card-hero),
    .edu-section:has(.im-global-contact-form-card-hero) {
        padding-top: 4.75rem !important;
    }

    .im-global-hero-with-form,
    .student-hero,
    .grad-hero,
    .skilled-hero,
    .pf-hero,
    .visitor-hero,
    .emp-hero-layout,
    .cit-hero-layout,
    .aat-hero-layout,
    .edu-hero-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 26.5rem) !important;
        gap: clamp(2.5rem, 5vw, 4.5rem) !important;
        align-items: start !important;
        margin-bottom: 5rem !important;
    }

    .services-header,
    .student-hero-copy,
    .grad-hero > :first-child,
    .skilled-hero-copy,
    .pf-hero > :first-child,
    .visitor-hero-copy,
    .emp-hero-copy,
    .cit-hero-copy,
    .aat-hero-copy,
    .edu-hero-copy {
        align-self: start !important;
        max-width: 52rem !important;
    }

    .im-global-contact-form-card-hero {
        width: 100% !important;
        max-width: 26.5rem !important;
        flex: none !important;
        justify-self: end !important;
        align-self: start !important;
    }
}

/* Desktop service-page hero consistency: keep heading and form in the same place page-to-page */
@media (min-width: 1025px) {
    .services-section:has(.im-global-contact-form-card-hero),
    .student-section:has(.im-global-contact-form-card-hero),
    .grad-section:has(.im-global-contact-form-card-hero),
    .skilled-section:has(.im-global-contact-form-card-hero),
    .emp-section:has(.im-global-contact-form-card-hero),
    .pf-section:has(.im-global-contact-form-card-hero),
    .visitor-section:has(.im-global-contact-form-card-hero),
    .cit-section:has(.im-global-contact-form-card-hero),
    .aat-section:has(.im-global-contact-form-card-hero),
    .edu-section:has(.im-global-contact-form-card-hero) {
        padding-top: 4.75rem !important;
    }

    .im-global-hero-with-form,
    .student-hero,
    .grad-hero,
    .skilled-hero,
    .pf-hero,
    .visitor-hero,
    .emp-hero-layout,
    .cit-hero-layout,
    .aat-hero-layout,
    .edu-hero-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 26.5rem) !important;
        gap: clamp(2.5rem, 5vw, 4.5rem) !important;
        align-items: center !important;
        margin-bottom: 5rem !important;
    }

    .services-header,
    .student-hero-copy,
    .grad-hero > :first-child,
    .skilled-hero-copy,
    .pf-hero > :first-child,
    .visitor-hero-copy,
    .emp-hero-copy,
    .cit-hero-copy,
    .aat-hero-copy,
    .edu-hero-copy {
        align-self: center !important;
        max-width: 52rem !important;
    }

    .im-global-contact-form-card-hero {
        width: 100% !important;
        max-width: 26.5rem !important;
        flex: none !important;
        justify-self: end !important;
        align-self: center !important;
    }
}

/* Final desktop alignment override: keep hero forms locked to the same top line */
@media (min-width: 1025px) {
    .im-global-hero-with-form,
    .student-hero,
    .grad-hero,
    .skilled-hero,
    .pf-hero,
    .visitor-hero,
    .emp-hero-layout,
    .cit-hero-layout,
    .aat-hero-layout,
    .edu-hero-layout {
        align-items: start !important;
    }

    .im-global-contact-form-card-hero {
        align-self: start !important;
        margin-top: 0 !important;
    }
}

/* Hero quick enquiry typography lock.
   This keeps the reused form visually identical across all service pages,
   even when individual page CSS uses different hero text sizing. */
.im-global-contact-form-card-hero,
.im-global-contact-form-card-hero input,
.im-global-contact-form-card-hero select,
.im-global-contact-form-card-hero textarea,
.im-global-contact-form-card-hero button {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

.im-global-contact-form-card-hero .im-global-contact-mini-eyebrow {
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.22em !important;
}

.im-global-contact-form-card-hero h3 {
    margin: 0 0 1rem !important;
    color: #ffffff !important;
    font-size: clamp(2rem, 2.8vw, 2.55rem) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
}

.im-global-contact-form-card.im-global-contact-form-card-hero > p {
    margin: 0 0 1.15rem !important;
    color: rgba(219, 234, 254, 0.82) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
}

.im-global-contact-form-card-hero .im-global-contact-field label {
    gap: 0.34rem !important;
    color: rgba(241, 245, 249, 0.92) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.im-global-contact-form-card-hero .im-global-contact-field input,
.im-global-contact-form-card-hero .im-global-contact-field select,
.im-global-contact-form-card-hero .im-global-contact-field textarea {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

.im-global-contact-form-card-hero .im-global-contact-field input::placeholder,
.im-global-contact-form-card-hero .im-global-contact-field textarea::placeholder {
    font: inherit !important;
    color: rgba(203, 213, 225, 0.56) !important;
}

.im-global-contact-form-card-hero .im-global-contact-submit {
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.16em !important;
}

@media (max-width: 640px) {
    .im-global-contact-form-card-hero h3 {
        font-size: 1.75rem !important;
    }

    .im-global-contact-form-card.im-global-contact-form-card-hero > p {
        font-size: 0.92rem !important;
    }

    .im-global-contact-form-card-hero .im-global-contact-field input,
    .im-global-contact-form-card-hero .im-global-contact-field select,
    .im-global-contact-form-card-hero .im-global-contact-field textarea {
        font-size: 0.9rem !important;
    }
}

/* AAT Appeals repaint fix.
   Chrome can show stray shadow blocks over the hero form when backdrop-filter
   sits inside the AAT clipped section. Keep the same form styling but remove
   the glass blur only on this page. */
.aat-section .im-global-contact-form-card-hero {
    isolation: isolate !important;
    contain: paint !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
