/* ── Scrollable form card ── */
.edm-form-scroll-wrap {
    position: relative;
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #F97316 #f0f0f0;
}

.edm-form-scroll-wrap::-webkit-scrollbar {
    width: 5px;
}
.edm-form-scroll-wrap::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}
.edm-form-scroll-wrap::-webkit-scrollbar-thumb {
    background: #F97316;
    border-radius: 10px;
}

/* ── Scroll indicator ── */
.edm-scroll-indicator {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 32px 0 14px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.97) 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    margin-top: -44px;
}
.edm-scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}
.edm-scroll-indicator__arrow {
    width: 30px;
    height: 30px;
    border: 2px solid #F97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: edm-bounce 1.4s infinite;
}
.edm-scroll-indicator__arrow svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #F97316;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.edm-scroll-indicator__text {
    font-size: 11px;
    color: #F97316;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
@keyframes edm-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
    .edm-form-scroll-wrap {
        max-height: 70vh !important;
    }
}

/* ── Mobile (≤767px) — form expands fully, no scroll needed ── */
@media (max-width: 767px) {
    .edm-form-scroll-wrap {
        max-height: none !important;
        overflow-y: visible !important;
    }
    .edm-scroll-indicator {
        display: none !important;
    }
}