/* HMP Verzoekplaten — frontend card */

/* ── Card container ── */
.hmp-vp-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin: 32px 0 0;
    color: #fff;
    isolation: isolate;
}

/* Blurred background from album art */
.hmp-vp-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.38) saturate(2.4);
    transform: scale(2.8);
    z-index: 0;
}

/* Dark base fallback */
.hmp-vp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #0d1320;
    z-index: -1;
}

/* Depth gradient overlay */
.hmp-vp-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,0,0,.22) 0%, transparent 70%),
        linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
}

/* Floating album covers layer */
.hmp-vp-floats {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hmp-vp-float {
    position: absolute;
    border-radius: 14px;
    object-fit: cover;
    box-shadow:
        0 24px 56px -8px rgba(0,0,0,.75),
        0 0 0 1px rgba(255,255,255,.12),
        0 0 30px -4px rgba(255,255,255,.18);
    will-change: transform;
}

.hmp-vp-float:nth-child(1) {
    width: 162px; height: 162px;
    top: -22px; left: -28px;
    opacity: .72;
    animation: hmpFloat1 13s ease-in-out infinite;
}
.hmp-vp-float:nth-child(2) {
    width: 148px; height: 148px;
    top: -18px; right: -22px;
    opacity: .68;
    animation: hmpFloat2 17s ease-in-out infinite;
    animation-delay: -6s;
}
.hmp-vp-float:nth-child(3) {
    width: 152px; height: 152px;
    bottom: -26px; left: -18px;
    opacity: .65;
    animation: hmpFloat3 11s ease-in-out infinite;
    animation-delay: -9s;
}
.hmp-vp-float:nth-child(4) {
    width: 158px; height: 158px;
    bottom: -22px; right: -26px;
    opacity: .7;
    animation: hmpFloat4 15s ease-in-out infinite;
    animation-delay: -3s;
}
.hmp-vp-float:nth-child(5) {
    width: 118px; height: 118px;
    top: 50%; left: -32px;
    margin-top: -59px;
    opacity: .55;
    animation: hmpFloat5 19s ease-in-out infinite;
    animation-delay: -11s;
}
.hmp-vp-float:nth-child(6) {
    width: 112px; height: 112px;
    top: 38%; right: -28px;
    margin-top: -56px;
    opacity: .58;
    animation: hmpFloat6 14s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes hmpFloat1 {
    0%,100% { transform: rotate(-22deg) translateY(0); }
    50%     { transform: rotate(-17deg) translateY(-20px); }
}
@keyframes hmpFloat2 {
    0%,100% { transform: rotate(18deg) translateY(0); }
    50%     { transform: rotate(22deg) translateY(-17px); }
}
@keyframes hmpFloat3 {
    0%,100% { transform: rotate(24deg) translateY(0); }
    35%     { transform: rotate(20deg) translateY(-19px); }
    70%     { transform: rotate(26deg) translateY(-8px); }
}
@keyframes hmpFloat4 {
    0%,100% { transform: rotate(-14deg) translateY(0); }
    50%     { transform: rotate(-10deg) translateY(-22px); }
}
@keyframes hmpFloat5 {
    0%,100% { transform: rotate(13deg) translateY(0); }
    40%     { transform: rotate(9deg) translateY(-14px); }
    75%     { transform: rotate(16deg) translateY(-6px); }
}
@keyframes hmpFloat6 {
    0%,100% { transform: rotate(-19deg) translateY(0); }
    50%     { transform: rotate(-23deg) translateY(-16px); }
}

/* Hide floats when form is open */
.hmp-vp-floats {
    transition: opacity .4s ease;
}
.hmp-vp-card.hmp-vp--form .hmp-vp-floats {
    opacity: 0;
}

.hmp-vp-inner {
    position: relative;
    z-index: 3;
    padding: 36px 28px 28px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

/* ── Override theme heading and link styles ── */
.hmp-vp-card h1,
.hmp-vp-card h2,
.hmp-vp-card h3,
.hmp-vp-card h4,
.hmp-vp-card h5,
.hmp-vp-card h6 {
    color: #fff;
}

.hmp-vp-card a,
.hmp-vp-card a:visited,
.hmp-vp-card a:hover,
.hmp-vp-card a:focus {
    color: #fff;
    text-decoration: none !important;
}

/* ── Eyebrow ── */
.hmp-vp-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: 6px;
}

/* ── Title ── */
.hmp-vp-card .hmp-vp-title {
    font-family: 'Fraunces', serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.5px;
    color: #fff;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 32px rgba(0,0,0,.7), 0 0 80px rgba(0,0,0,.35);
}

/* ── Views — carousel visible by default, form hidden ── */
.hmp-vp-carousel-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    animation: hmpVpFadeIn .3s ease both;
}

.hmp-vp-carousel-view.is-hidden {
    display: none;
}

.hmp-vp-form-view {
    display: none;
    flex-direction: column;
    flex: 1;
}

.hmp-vp-form-view.is-active {
    display: flex;
    animation: hmpVpFadeIn .3s ease both;
}

@keyframes hmpVpFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* ── Carousel center layout ── */
.hmp-vp-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 32px 110px;
    gap: 20px;
}

/* ── CTA descriptive text ── */
.hmp-vp-cta-text {
    font-size: 14.5px;
    color: rgba(255,255,255,.88);
    line-height: 1.7;
    max-width: 38ch;
    margin: 0;
    text-shadow: 0 1px 12px rgba(0,0,0,.55);
}

/* ── CTA footer ── */
.hmp-vp-footer {
    display: flex;
    justify-content: center;
}

.hmp-vp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.22);
    border: 2px solid rgba(255,255,255,.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .18s, box-shadow .2s;
    letter-spacing: .3px;
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
    text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

.hmp-vp-cta-btn:hover {
    background: rgba(255,255,255,.33);
    border-color: rgba(255,255,255,.75);
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(0,0,0,.45);
}

.hmp-vp-cta-btn svg,
.hmp-vp-back-btn svg,
.hmp-vp-submit-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── Form view ── */
.hmp-vp-form-header .hmp-vp-title {
    font-size: 30px;
    text-align: center;
    text-shadow: none;
}

.hmp-vp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgba(255,255,255,.65);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 18px;
    transition: color .15s;
}

.hmp-vp-back-btn:hover { color: #fff; }

.hmp-vp-form-header { margin-bottom: 20px; text-align: center; }

.hmp-vp-lead {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ── Form fields ── */
.hmp-vp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hide form body once confirmation is shown */
.hmp-vp-form-view.hmp-vp-confirmed .hmp-vp-form-body {
    display: none;
}

.hmp-vp-field-row {
    display: flex;
    gap: 10px;
}

.hmp-vp-field-row .hmp-vp-field {
    flex: 1;
    min-width: 0;
}

.hmp-vp-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.hmp-vp-opt {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    opacity: .7;
}

.hmp-vp-form input[type="text"],
.hmp-vp-form input[type="email"],
.hmp-vp-form input[type="tel"],
.hmp-vp-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    padding: 10px 14px;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
    -webkit-appearance: none;
}

.hmp-vp-form input::placeholder,
.hmp-vp-form textarea::placeholder { color: rgba(255,255,255,.35); }

.hmp-vp-form input:focus,
.hmp-vp-form textarea:focus {
    border-color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.15);
    box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}

.hmp-vp-form textarea { resize: vertical; min-height: 72px; }

/* ── Song search ── */
.hmp-vp-search-wrap {
    position: relative;
}

.hmp-vp-search-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    stroke: rgba(255,255,255,.45);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.hmp-vp-search-input { padding-left: 38px !important; }

.hmp-vp-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.2);
    border-top-color: rgba(255,255,255,.7);
    border-radius: 50%;
    animation: hmpVpSpin .7s linear infinite;
    display: none;
}

@keyframes hmpVpSpin { to { transform: translateY(-50%) rotate(360deg); } }

.hmp-vp-results {
    list-style: none;
    margin: 6px 0 0;
    padding: 5px;
    background: rgba(20,26,36,.95);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(8px);
}

.hmp-vp-results.is-open { display: block; animation: hmpVpFadeIn .2s ease; }

.hmp-vp-results li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s;
}

.hmp-vp-results li:hover,
.hmp-vp-results li.is-active { background: rgba(255,255,255,.1); }

.hmp-vp-results img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex: 0 0 auto;
    background: rgba(255,255,255,.1);
}

.hmp-vp-r-meta { display: flex; flex-direction: column; min-width: 0; }
.hmp-vp-r-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.hmp-vp-r-artist { font-size: 12px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmp-vp-r-empty { padding: 12px; text-align: center; color: rgba(255,255,255,.45); font-size: 13px; }

/* ── Chosen song ── */
.hmp-vp-chosen { margin-top: 6px; }

.hmp-vp-chosen-inner {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 12px 14px;
}

.hmp-vp-chosen-art {
    width: 72px;
    height: 72px;
    border-radius: 9px;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 8px 20px -6px rgba(0,0,0,.5);
}

.hmp-vp-chosen-meta { min-width: 0; flex: 1; }
.hmp-vp-chosen-title  { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; color: #fff; line-height: 1.2; margin-bottom: 2px; }
.hmp-vp-chosen-artist { font-size: 13px; color: rgba(255,255,255,.65); }
.hmp-vp-chosen-album  { font-size: 11.5px; color: rgba(255,255,255,.4); margin-top: 2px; }

.hmp-vp-chosen-change {
    background: none;
    border: none;
    color: rgba(255,255,255,.55);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    align-self: flex-start;
    white-space: nowrap;
}

.hmp-vp-chosen-change:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* ── Honeypot ── */
.hmp-vp-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ── Submit ── */
.hmp-vp-submit-row {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hmp-vp-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: none;
    color: #111;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

.hmp-vp-submit-btn:hover { opacity: .9; transform: translateY(-1px); }
.hmp-vp-submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.hmp-vp-form-error {
    font-size: 13px;
    color: #ffb3a7;
    background: rgba(255,100,80,.15);
    border: 1px solid rgba(255,100,80,.3);
    border-radius: 8px;
    padding: 8px 12px;
}

/* ── Confirmation — hidden until success ── */
.hmp-vp-confirm {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    gap: 10px;
    padding: 40px 20px;
}

.hmp-vp-confirm.hmp-vp-shown {
    display: flex;
    animation: hmpVpFadeIn .4s ease;
}

.hmp-vp-again-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 4px;
    transition: background .2s, border-color .2s, transform .15s;
}

.hmp-vp-again-btn:hover {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.6);
    transform: translateY(-1px);
}

.hmp-vp-confirm-icon { font-size: 48px; line-height: 1; }

.hmp-vp-confirm-art {
    display: none;
    width: 100px;
    height: 100px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 16px 48px -8px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.12);
}

.hmp-vp-card .hmp-vp-confirm-title {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.hmp-vp-confirm-text {
    color: rgba(255,255,255,.7);
    font-size: 15px;
    margin: 0;
    max-width: 30ch;
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .hmp-vp-card .hmp-vp-title { font-size: 34px; }
    .hmp-vp-inner { padding: 28px 18px 22px; min-height: 460px; }
    .hmp-vp-center { padding: 28px 70px; gap: 16px; }
    .hmp-vp-cta-text { font-size: 13.5px; }
    .hmp-vp-float:nth-child(1) { width: 110px; height: 110px; top: -14px; left: -18px; }
    .hmp-vp-float:nth-child(2) { width: 100px; height: 100px; top: -12px; right: -14px; }
    .hmp-vp-float:nth-child(3) { width: 104px; height: 104px; bottom: -18px; left: -12px; }
    .hmp-vp-float:nth-child(4) { width: 108px; height: 108px; bottom: -14px; right: -18px; }
    .hmp-vp-float:nth-child(5) { display: none; }
    .hmp-vp-float:nth-child(6) { display: none; }
}

/* ── Outside-hours shortcode variant ── */

/* Make the card a flex column so the inner can grow to fill it */
.hmp-vp-card--outside {
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

/* Inner fills the card and centres its single child both ways */
.hmp-vp-card--outside .hmp-vp-inner {
    flex: 1;
    min-height: unset;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* The content block: column, centred, with side clearance for floating covers */
.hmp-vp-outside-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 0 82px; /* 28px inner + 82px = 110px total side clearance */
}

.hmp-vp-outside-text {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .88);
    line-height: 1.75;
    max-width: 38ch;
    margin: 0;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

@media (max-width: 640px) {
    .hmp-vp-outside-content { padding: 0 24px; }
}
