/* =========================================================
   School Trip – Ultra Premium (Sparkys Theme)
   :root --brand (#841a78)  |  --accent (#E0C5DD)
   ========================================================= */

/* ─── Container ─── */
.st-container {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}
@media (min-width: 768px) {
    .st-container { padding: 0 2rem; }
}

/* ─── Page Shell ─── */
.st-page {
    background: #fdfbfc;
    overflow-x: hidden;
}

/* =========================================================
   1. HERO – Rounded card with gradient + particles (PP style)
   ========================================================= */
.st-hero {
    position: relative;
    margin: 1rem .75rem 0;
    border-radius: 28px;
    min-height: 38vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(132,26,120,.20),
        0 8px 24px rgba(0,0,0,.10);
}

@media (min-width: 768px) {
    .st-hero {
        margin: 1.25rem 1.5rem 0;
        border-radius: 36px;
        min-height: 40vh;
        box-shadow:
            0 40px 100px rgba(132,26,120,.22),
            0 12px 32px rgba(0,0,0,.08);
    }
}

@media (min-width: 1024px) {
    .st-hero {
        margin: 1.5rem 2rem 0;
        min-height: 38vh;
    }
}

/* Background */
.st-hero__bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 130% 90% at 50% 15%,
            color-mix(in srgb, var(--accent) 30%, var(--brand)),
            var(--brand) 65%,
            color-mix(in srgb, var(--brand) 85%, #1a0520) 100%);
    z-index: 0;
}

/* Floating orbs */
.st-hero__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    will-change: transform;
}
.st-hero__orb--1 {
    width: 280px; height: 280px;
    top: -60px; left: -40px;
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    animation: stOrb1 8s ease-in-out infinite;
}
.st-hero__orb--2 {
    width: 200px; height: 200px;
    bottom: -30px; right: -30px;
    background: rgba(255,255,255,.06);
    animation: stOrb2 10s ease-in-out infinite;
}

@keyframes stOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, 18px) scale(1.08); }
}
@keyframes stOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -15px) scale(1.1); }
}

/* Particles */
.st-hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.st-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    animation: stFloat linear infinite;
    will-change: transform;
}

@keyframes stFloat {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-35px) scale(1.3); }
    100% { transform: translateY(0) scale(1); }
}

/* Content */
.st-hero__content {
    position: relative;
    z-index: 2;
    padding: 4.5rem 1.5rem 3rem;
    max-width: 42rem;
}
@media (min-width: 768px) {
    .st-hero__content {
        padding: 5rem 2rem 3.5rem;
    }
}

/* Badge */
.st-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: .5rem 1.25rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .04em;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    animation: stBadgeIn .8s ease .3s both;
}

@keyframes stBadgeIn {
    from { opacity: 0; transform: translateY(14px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Title */
.st-hero__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin: 0 0 1rem;
    text-shadow: 0 4px 40px rgba(0,0,0,.28);
    animation: stTitleIn 1s cubic-bezier(.16,1,.3,1) .5s both;
}

@keyframes stTitleIn {
    from { opacity: 0; transform: translateY(32px) scale(.95); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Tagline */
.st-hero__tagline {
    margin: 0 auto;
    font-size: clamp(.9rem, 1.8vw, 1.05rem);
    color: rgba(255,255,255,.84);
    line-height: 1.8;
    animation: stTagIn .8s ease .9s both;
}

@keyframes stTagIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   2. INTRO SECTION – About the program (glass card)
   ========================================================= */
.st-intro {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin: 2.5rem auto;
    padding: 1.75rem 1.75rem;
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(132,26,120,.06);
    box-shadow:
        0 16px 44px rgba(132,26,120,.06),
        0 4px 12px rgba(0,0,0,.03),
        0 1px 0 rgba(255,255,255,.85) inset;
    overflow: hidden;
    position: relative;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}

.st-intro::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity .3s ease;
}

.st-intro:hover {
    transform: translateY(-5px);
    border-color: rgba(132,26,120,.12);
    box-shadow:
        0 24px 60px rgba(132,26,120,.10),
        0 8px 20px rgba(0,0,0,.04),
        0 1px 0 rgba(255,255,255,.85) inset;
}

.st-intro:hover::before {
    opacity: 1;
}

/* Shimmer */
.st-intro__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.3) 42%, transparent 58%);
    transform: translateX(-140%);
    transition: transform .75s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
    border-radius: 22px;
    z-index: 0;
}
.st-intro:hover .st-intro__shimmer {
    transform: translateX(140%);
}

.st-intro__icon {
    position: relative; z-index: 1;
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--accent)));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 22%, transparent);
    transition: transform .3s ease, box-shadow .3s ease;
}

.st-intro:hover .st-intro__icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 30%, transparent);
}

.st-intro__body {
    position: relative; z-index: 1;
    flex: 1;
    min-width: 0;
}

.st-intro__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand);
    margin: 0 0 .65rem;
    letter-spacing: -.01em;
}

.st-intro__text {
    margin: 0;
    font-size: .9rem;
    line-height: 1.85;
    color: rgba(30,41,59,.82);
}

.st-intro__text p {
    margin: 0 0 .75rem;
}

.st-intro__text p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   3. HIGHLIGHTS – Feature cards grid
   ========================================================= */
.st-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 auto 2rem;
}

@media (min-width: 640px) {
    .st-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .st-highlights {
        grid-template-columns: repeat(3, 1fr);
    }
}

.st-highlight {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .75rem;
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(132,26,120,.06);
    box-shadow:
        0 12px 32px rgba(132,26,120,.05),
        0 3px 10px rgba(0,0,0,.02),
        0 1px 0 rgba(255,255,255,.85) inset;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}

.st-highlight::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity .3s ease;
}

.st-highlight:hover {
    transform: translateY(-5px);
    border-color: rgba(132,26,120,.12);
    box-shadow:
        0 20px 48px rgba(132,26,120,.09),
        0 6px 16px rgba(0,0,0,.04),
        0 1px 0 rgba(255,255,255,.85) inset;
}

.st-highlight:hover::before {
    opacity: 1;
}

.st-highlight__icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--accent)));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 22%, transparent);
    transition: transform .3s ease, box-shadow .3s ease;
}

.st-highlight:hover .st-highlight__icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 30%, transparent);
}

.st-highlight__title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--brand);
    margin: 0;
    letter-spacing: -.01em;
}

.st-highlight__text {
    margin: 0;
    font-size: .82rem;
    line-height: 1.7;
    color: rgba(30,41,59,.72);
}

/* =========================================================
   4. NOTE CARD – Glass callout
   ========================================================= */
.st-note {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin: 0 auto 2.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(132,26,120,.08);
    box-shadow:
        0 16px 40px rgba(132,26,120,.07),
        0 4px 12px rgba(0,0,0,.03),
        0 1px 0 rgba(255,255,255,.8) inset;
}

.st-note__icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--accent)));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent);
}

.st-note__body {
    flex: 1;
    min-width: 0;
}

.st-note__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand);
    margin: 0 0 .4rem;
    letter-spacing: -.01em;
}

.st-note__text {
    margin: 0;
    font-size: .9rem;
    line-height: 1.8;
    color: rgba(30,41,59,.82);
}

/* =========================================================
   5. FORM SECTION – Glassmorphism card
   ========================================================= */
.st-form-card {
    position: relative;
    padding: 2rem 1.75rem;
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(132,26,120,.06);
    box-shadow:
        0 16px 44px rgba(132,26,120,.06),
        0 4px 12px rgba(0,0,0,.03),
        0 1px 0 rgba(255,255,255,.85) inset;
    overflow: hidden;
    margin: 0 auto 2rem;
}

.st-form-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.st-form-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.st-form-card__icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--accent)));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 22%, transparent);
}

.st-form-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand);
    margin: 0;
    letter-spacing: -.01em;
}

.st-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .st-form-card {
        padding: 2.5rem 2.25rem;
    }

    .st-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.st-form-group--full {
    grid-column: 1 / -1;
}

/* Labels */
.st-label {
    display: block;
    font-size: .82rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: .02em;
    margin-bottom: .5rem;
}

/* Inputs */
.st-input {
    width: 100%;
    border-radius: 14px;
    border: 2px solid color-mix(in srgb, var(--accent) 50%, #fff);
    background: rgba(255,255,255,.96);
    padding: .85rem 1rem;
    outline: none;
    font-size: .9rem;
    font-weight: 600;
    color: #1e293b;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.st-input::placeholder {
    color: rgba(30,41,59,.38);
    font-weight: 500;
}

.st-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent);
    transform: translateY(-1px);
}

.st-textarea {
    resize: none;
    min-height: 130px;
}

/* Helper text */
.st-help {
    font-size: .75rem;
    color: rgba(30,41,59,.52);
    line-height: 1.6;
    margin-top: .4rem;
}

/* Submit button */
.st-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--accent)));
    box-shadow: 0 18px 46px color-mix(in srgb, var(--brand) 28%, transparent);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, filter .25s ease;
}

.st-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--brand) 35%, transparent);
    filter: brightness(1.04);
}

.st-submit:active {
    transform: translateY(0) scale(.99);
}

.st-submit__icon {
    margin-inline-end: .5rem;
}

.st-form-consent {
    margin-top: .75rem;
    font-size: .78rem;
    color: rgba(30,41,59,.52);
    text-align: center;
    line-height: 1.7;
}

/* =========================================================
   6. FOOTER NOTE – Glass card
   ========================================================= */
.st-foot {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, #fff);
    box-shadow: 0 8px 24px rgba(132,26,120,.04);
}

.st-foot__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--brand);
    opacity: .7;
}

.st-foot__text {
    margin: 0;
    font-size: .85rem;
    line-height: 1.7;
    color: rgba(30,41,59,.72);
    font-weight: 600;
}

/* =========================================================
   7. THANK YOU MODAL – Premium glass overlay
   ========================================================= */
.st-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.st-modal--visible {
    opacity: 1;
    pointer-events: auto;
}

.st-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(132,26,120,.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.st-modal__card {
    position: relative;
    width: min(90%, 440px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(132,26,120,.08);
    box-shadow:
        0 40px 100px rgba(132,26,120,.18),
        0 12px 32px rgba(0,0,0,.08),
        0 1px 0 rgba(255,255,255,.9) inset;
    text-align: center;
    transform: translateY(20px) scale(.96);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.st-modal--visible .st-modal__card {
    transform: translateY(0) scale(1);
}

.st-modal__card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.st-modal__icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--accent)));
    box-shadow: 0 12px 32px color-mix(in srgb, var(--brand) 25%, transparent);
}

.st-modal__icon-wrap i {
    font-size: 1.75rem;
    color: #fff;
}

.st-modal__title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--brand);
    margin: 0 0 .6rem;
    letter-spacing: -.02em;
}

.st-modal__text {
    margin: 0 0 1.5rem;
    font-size: .92rem;
    line-height: 1.8;
    color: rgba(30,41,59,.72);
}

.st-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    border: none;
    cursor: pointer;
    border-radius: 14px;
    padding: .9rem 1.5rem;
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--accent)));
    box-shadow: 0 14px 36px color-mix(in srgb, var(--brand) 25%, transparent);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}

.st-modal__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px color-mix(in srgb, var(--brand) 32%, transparent);
}

.st-modal__btn:active {
    transform: translateY(0) scale(.99);
}

/* =========================================================
   8. SCROLL REVEAL (same as PP)
   ========================================================= */
.st-reveal {
    opacity: 0;
    transform: translateY(30px) scale(.98);
    transition:
        opacity .65s cubic-bezier(.16,1,.3,1),
        transform .65s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--reveal-delay, 0ms);
}
.st-reveal.st-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================================
   9. RESPONSIVE
   ========================================================= */
@media (max-width: 767px) {
    .st-hero {
        min-height: 34vh;
        margin: .5rem .5rem 0;
        border-radius: 22px;
    }
    .st-hero__content {
        padding: 3.5rem 1rem 2.5rem;
    }
    .st-intro {
        flex-direction: column;
        gap: .75rem;
        padding: 1.5rem 1.25rem;
    }
    .st-note {
        flex-direction: column;
        gap: .75rem;
        padding: 1.25rem;
    }
    .st-form-card {
        padding: 1.5rem 1.25rem;
    }
    .st-form-card__header {
        margin-bottom: 1.25rem;
    }
    .st-foot {
        flex-direction: column;
        text-align: center;
        gap: .5rem;
        padding: 1rem 1.25rem;
    }
    .st-modal__card {
        padding: 2rem 1.5rem;
    }
}

/* =========================================================
   10. RTL SUPPORT
   ========================================================= */
[dir="rtl"] .st-intro {
    text-align: right;
}

[dir="rtl"] .st-note {
    text-align: right;
}

[dir="rtl"] .st-form-card {
    text-align: right;
}

[dir="rtl"] .st-form-consent {
    text-align: center;
}

/* =========================================================
   11. REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .st-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .st-particle,
    .st-hero__orb,
    .st-hero__badge,
    .st-hero__title,
    .st-hero__tagline {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .st-intro__shimmer { display: none !important; }
    .st-modal__card {
        transition: none !important;
    }
}
