/* ============================================================
   Puneet Academy of Music — Get Your Named Hoodie Popup
   ============================================================ */

:root {
    --hp-maroon: #5e0d14;
    --hp-maroon-dark: #3d070c;
    --hp-maroon-light: #82151f;
    --hp-gold: #e2b65a;
    --hp-gold-soft: rgba(226, 182, 90, 0.18);
    --hp-cream: #faf6ef;
    --hp-surface: #ffffff;
    --hp-text: #1c1717;
    --hp-text-muted: #665c5c;
    --hp-border: #e7dfd4;
    --hp-error: #c62828;
    --hp-whatsapp: #1fa855;
    --hp-whatsapp-hover: #188c46;
}

.hp-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 7, 8, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.32s ease;
    font-family: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

.hp-overlay.hp-open {
    display: flex;
    opacity: 1;
}

.hp-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    background: var(--hp-surface);
    border-radius: 24px;
    border: 1px solid rgba(226, 182, 90, 0.45);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    transition:
        transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s ease;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.hp-overlay.hp-open .hp-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.hp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(28, 12, 14, 0.75);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.22s ease, transform 0.22s ease;
    backdrop-filter: blur(6px);
}

.hp-close:hover {
    background: var(--hp-maroon);
    transform: rotate(90deg) scale(1.06);
}

.hp-close:focus-visible {
    outline: 2px solid var(--hp-gold);
    outline-offset: 2px;
}

/* Step views & transitions */
.hp-step {
    display: none;
    animation: hpFadeSlide 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hp-step.hp-active {
    display: block;
}

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

/* ============================================================
   Step 1: Promotional View
   ============================================================ */

.hp-promo-hero {
    position: relative;
    background: radial-gradient(circle at 50% 35%, #7c1620 0%, #3d070c 78%, #260407 100%);
    padding: 32px 24px 24px;
    text-align: center;
    overflow: hidden;
}

.hp-promo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 15%, rgba(226, 182, 90, 0.2), transparent 55%);
    pointer-events: none;
}

.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(226, 182, 90, 0.16);
    border: 1px solid rgba(226, 182, 90, 0.45);
    color: var(--hp-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hp-hoodie-visual {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-hoodie-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: 1.5px solid rgba(226, 182, 90, 0.45);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    display: block;
    transition: transform 0.35s ease;
}

.hp-modal:hover .hp-hoodie-img {
    transform: translateY(-2px) scale(1.02);
}

.hp-price-pill {
    position: absolute;
    right: -12px;
    bottom: 8px;
    background: linear-gradient(135deg, #f3cd7a 0%, #c89432 100%);
    color: #2a0a0c;
    font-weight: 800;
    font-size: 15px;
    padding: 7px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.3px;
}

.hp-promo-body {
    padding: 26px 28px 30px;
    text-align: center;
    background: var(--hp-surface);
}

.hp-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--hp-text);
    letter-spacing: -0.02em;
}

.hp-subtitle {
    margin: 0 auto 22px;
    max-width: 390px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--hp-text-muted);
}

.hp-subtitle strong {
    color: var(--hp-maroon);
    font-weight: 700;
}

.hp-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hp-highlight-chip {
    font-size: 12px;
    font-weight: 500;
    color: var(--hp-maroon-dark);
    background: var(--hp-cream);
    border: 1px solid var(--hp-border);
    padding: 6px 12px;
    border-radius: 999px;
}

.hp-cta-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hp-maroon) 0%, var(--hp-maroon-light) 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(94, 13, 20, 0.32);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.hp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(94, 13, 20, 0.42);
    filter: brightness(1.06);
}

.hp-cta-btn:active {
    transform: translateY(0);
}

/* ============================================================
   Step 2: Customization Form
   ============================================================ */

.hp-form-header {
    background: linear-gradient(135deg, var(--hp-maroon-dark) 0%, var(--hp-maroon) 100%);
    padding: 22px 26px 20px;
    color: #ffffff;
    position: relative;
}

.hp-form-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 42px;
    margin-bottom: 8px;
}

.hp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hp-back-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hp-header-price {
    font-size: 13px;
    font-weight: 700;
    color: #2a0a0c;
    background: linear-gradient(135deg, #f3cd7a 0%, #c89432 100%);
    padding: 4px 12px;
    border-radius: 999px;
}

.hp-form-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.hp-form-desc {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.hp-form {
    padding: 22px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--hp-surface);
}

.hp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.hp-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-text);
}

.hp-required {
    color: var(--hp-error);
    margin-left: 2px;
}

.hp-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--hp-border);
    background: var(--hp-cream);
    color: var(--hp-text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.hp-input::placeholder {
    color: #9b9090;
}

.hp-input:focus {
    border-color: var(--hp-maroon);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(94, 13, 20, 0.1);
}

.hp-input.hp-invalid {
    border-color: var(--hp-error);
    background: #fff8f8;
}

/* Size pills */
.hp-size-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.hp-size-pill {
    padding: 10px 6px;
    border-radius: 12px;
    border: 1.5px solid var(--hp-border);
    background: var(--hp-cream);
    color: var(--hp-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.hp-size-pill:hover {
    border-color: var(--hp-maroon);
    background: #ffffff;
    transform: translateY(-1px);
}

.hp-size-pill.hp-selected {
    background: var(--hp-maroon);
    border-color: var(--hp-maroon);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(94, 13, 20, 0.26);
}

/* Colour swatches */
.hp-colour-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hp-colour-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1.5px solid var(--hp-border);
    background: var(--hp-cream);
    color: var(--hp-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hp-colour-card:hover {
    border-color: var(--hp-maroon);
    background: #ffffff;
    transform: translateY(-1px);
}

.hp-colour-card.hp-selected {
    border-color: var(--hp-maroon);
    background: #fdf3f4;
    box-shadow: 0 6px 14px rgba(94, 13, 20, 0.16);
}

.hp-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.18);
    position: relative;
}

.hp-colour-card.hp-selected .hp-swatch {
    box-shadow: 0 0 0 2px var(--hp-maroon);
}

.hp-swatch--maroon {
    background-color: #6b1019;
}

.hp-swatch--black {
    background-color: #161618;
}

.hp-swatch--red {
    background-color: #c81e2b;
}

/* Consent checkbox */
.hp-consent-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--hp-cream);
    border: 1.5px solid var(--hp-border);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hp-consent-box:hover {
    border-color: var(--hp-maroon);
}

.hp-consent-box.hp-invalid {
    border-color: var(--hp-error);
    background: #fff8f8;
}

.hp-consent-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--hp-maroon);
    cursor: pointer;
    flex-shrink: 0;
}

.hp-consent-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--hp-text);
    font-weight: 500;
}

/* Error messages */
.hp-error-msg {
    display: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--hp-error);
    margin-top: 2px;
}

.hp-error-msg.hp-visible {
    display: block;
}

/* Submit WhatsApp button */
.hp-submit-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hp-whatsapp) 0%, var(--hp-whatsapp-hover) 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(31, 168, 85, 0.32);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    margin-top: 4px;
}

.hp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(31, 168, 85, 0.42);
    filter: brightness(1.04);
}

.hp-submit-btn:active {
    transform: translateY(0);
}

/* ============================================================
   Responsive Breakpoints (Tablet & Mobile)
   ============================================================ */

@media (max-width: 600px) {
    .hp-overlay {
        padding: 12px;
    }

    .hp-modal {
        border-radius: 20px;
        max-height: 94vh;
    }

    .hp-promo-hero {
        padding: 26px 18px 18px;
    }

    .hp-hoodie-visual {
        width: 148px;
        height: 148px;
    }

    .hp-promo-body {
        padding: 20px 18px 24px;
    }

    .hp-title {
        font-size: 22px;
    }

    .hp-subtitle {
        font-size: 13.5px;
        margin-bottom: 18px;
    }

    .hp-form-header {
        padding: 18px 18px 16px;
    }

    .hp-form-title {
        font-size: 19px;
    }

    .hp-form {
        padding: 18px 18px 22px;
        gap: 14px;
    }

    .hp-size-grid {
        gap: 6px;
    }

    .hp-size-pill {
        padding: 9px 4px;
        font-size: 12px;
    }

    .hp-colour-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hp-cta-btn,
    .hp-submit-btn {
        padding: 14px 18px;
        font-size: 14px;
    }
}
