:root {
    --hot-pink: #FF3B93;
    --hot-pink-top: #FF4FA3;
    --hot-pink-dark: #F71C7D;
    --light-pink: #FFF6F9;
    --card-pink: #FDF0F5;
    --accent-pink: #FF7CB8;
    --lavender: #E8D8FF;
    --text: #1E1E1E;
    --gray: #666666;
    --white: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-script: 'Allura', cursive;
    --font-body: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--light-pink);
    color: var(--text);
    font-family: var(--font-body);
}

a {
    color: inherit;
}

.site-header {
    height: 86px;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo img {
    height: auto;
    width: 140px;
    display: block;
}

.site-nav {
    display: flex;
    gap: 32px;
    font-size: .95rem;
    font-weight: 700;
}

.site-nav a {
    text-decoration: none;
}

.nav-cta,
.btn-primary {
    background: linear-gradient(180deg, var(--hot-pink-top), var(--hot-pink-dark));
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary {
    background: #fff;
    color: var(--hot-pink);
    border: 2px solid var(--hot-pink);
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 800;
    text-decoration: none;
}

.wide {
    width: 100%;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
    align-items: center;
    padding: 72px 64px;
    background: linear-gradient(135deg, #fff 0%, #ffe5f0 100%);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 1;
    margin: 0 0 28px;
}

.hero h1 span,
.script {
    font-family: var(--font-script);
    color: var(--hot-pink);
    font-weight: 400;
}

.hero p {
    max-width: 520px;
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 32px;
}

.hero-image img,
.split-section img,
.box-choice img {
    width: 100%;
    border-radius: 32px;
    background: var(--card-pink);
}

.section {
    padding: 80px 48px;
}

.center {
    text-align: center;
}

.section h2,
.page-hero h1,
.wizard-header h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 16px;
}

.feature-grid,
.plan-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card,
.plan-card,
.education-card,
.faq-card,
.box-choice,
.stripe-placeholder {
    background: var(--card-pink);
    border: 1px solid rgba(255, 59, 147, .22);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(255, 59, 147, .08);
}

/* Feature cards on homepage */
.feature-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 28px 20px;
}

.feature-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card p {
    margin: 0;
    color: var(--text);
    font-size: .9rem;
    line-height: 1.45;
    max-width: 180px;
}

.education-card {
    text-decoration: none;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 80px 64px;
    align-items: center;
    background: #fff;
}

.page-hero,
.wizard-page {
    padding: 72px 48px;
    max-width: 1180px;
    margin: 0 auto;
}

.wizard-header {
    text-align: center;
    margin-bottom: 48px;
}

.box-choice {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
}

.box-choice.selected {
    border: 3px solid var(--hot-pink);
}

.coming-tag {
    display: inline-block;
    background: var(--lavender);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
    margin-top: 12px;
}

.herbox-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.herbox-input {
    width: 100%;
    border: 2px solid rgba(255, 59, 147, .35);
    border-radius: 16px;
    padding: 16px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.herbox-input:focus {
    outline: none;
    border-color: var(--hot-pink);
    box-shadow: 0 0 0 4px rgba(255, 59, 147, .12);
}

.full {
    grid-column: 1 / -1;
}

.alert-error {
    background: #fff;
    border: 2px solid #b00020;
    color: #b00020;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

.faq-list {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 48px;
    display: grid;
    gap: 18px;
}

.site-footer {
    padding: 48px;
    background: var(--text);
    color: #fff;
    display: flex;
    justify-content: space-between;
}

.site-footer a {
    color: #fff;
    margin-left: 24px;
    text-decoration: none;
}

.split-section h2 {
    font-size: 3.2em;
}

.split-section h2 .script {
    font-size: 1.5em;
}

/* ==========================================================
   ABOUT PAGE
========================================================== */

.hero-intro{
    font-size:1.45rem;
    color:var(--gray);
    margin-top:18px;
}

.about-section{
    max-width:1200px;
    margin:90px auto;
    padding:0 48px;

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}

.about-section.reverse .about-image{
    order:1;
}

.about-section.reverse .about-text{
    order:2;
}

.about-image img{
    width:100%;
    border-radius:28px;
}

.about-text h2{
    font-size:2.6rem;
    margin-bottom:24px;
}

.about-text p{
    color:var(--gray);
    line-height:1.9;
    margin-bottom:20px;
}

.about-highlight{
    color:var(--text)!important;
    font-size:1.35rem;
    font-weight:700;
}

.about-list{
    padding-left:24px;
    margin:30px 0;
}

.about-list li{
    margin-bottom:14px;
    line-height:1.8;
}

.about-wide{
    max-width:850px;
    margin:18px auto;
    line-height:1.8;
}

.motto-section{
    padding-bottom:110px;
}

.motto{
    font-family:var(--font-heading);
    font-size:3.5rem;
    margin:45px 0;
}

/* HOW IT WORKS PAGE */

.how-steps {
    max-width: 1180px;
    margin: 0 auto 80px;
    padding: 0 48px;
    display: grid;
    gap: 28px;
}

.how-step {
    background: var(--card-pink);
    border: 1px solid rgba(255, 59, 147, .22);
    border-radius: 30px;
    padding: 34px;
    display: grid;
    grid-template-columns: 70px 1fr 120px;
    gap: 28px;
    align-items: center;
    box-shadow: 0 16px 40px rgba(255, 59, 147, .08);
}

.step-number {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--hot-pink-top), var(--hot-pink-dark));
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h2 {
    margin: 0 0 12px;
    font-size: 2rem;
}

.step-content p {
    color: var(--gray);
    line-height: 1.7;
    margin: 0 0 10px;
}

.step-tagline {
    color: var(--hot-pink) !important;
    font-weight: 800;
}

.step-icon {
    width: 105px;
    height: 105px;
    object-fit: contain;
    justify-self: center;
}

.inline-heart {
    width: 42px;
    height: 42px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 8px;
}

.coming-soon-step {
    border: 3px solid var(--hot-pink);
    background: #fff;
}

.coming-soon-label {
    color: var(--hot-pink) !important;
    font-weight: 800;
    font-size: 1.2rem;
}

.coming-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.coming-options span {
    background: var(--light-pink);
    border: 1px solid rgba(255, 59, 147, .25);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
}

.why-curate {
    background: #fff;
}

.how-benefits {
    background: #fff;
    padding: 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.benefit-item {
    text-align: center;
}

.benefit-item img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 14px;
}

.benefit-item h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.benefit-item p {
    margin: 0;
    color: var(--gray);
    line-height: 1.5;
}

/* Password styling for the input page */

.password-wrapper{
    position:relative;
}

.password-wrapper .herbox-input{
    padding-right:48px;
}

.toggle-password{
    position:absolute;
    top:18px;
    right:16px;
    background:none;
    border:none;
    cursor:pointer;
    font-size:18px;
}

.password-strength{
    margin-top:14px;
    display:grid;
    gap:6px;
}

.password-rule{
    color:#888;
    font-size:.9rem;
    transition:.2s;
}

.password-rule span{
    display:inline-block;
    width:18px;
    font-weight:bold;
}

.password-rule.valid{
    color:var(--hot-pink-dark);
    font-weight:600;
}

.password-rule.valid span{
    color:var(--hot-pink-dark);
}

/* ==========================================================================
   Password Introduction
   --------------------------------------------------------------------------
   Small explanatory text displayed above the password field on the account
   creation screen. Helps explain why the customer is creating an account.
   ========================================================================== */
.password-intro {
    margin: 20px 0 12px;
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Build My Box - Plan Selection Cards
   --------------------------------------------------------------------------
   Styles the Step 3 subscription plan cards as selectable options.
   The selected card receives a stronger pink border and subtle emphasis.
   ========================================================================== */

.plan-selection-grid {
    margin-bottom: 36px;
}

.selectable-plan {
    position: relative;
    cursor: pointer;
    text-align: center;
    border: 2px solid rgba(255, 59, 147, .22);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.selectable-plan:hover {
    transform: translateY(-3px);
    border-color: var(--accent-pink);
}

.selectable-plan.selected {
    border: 3px solid var(--hot-pink);
    box-shadow: 0 18px 48px rgba(255, 59, 147, .16);
}

/* ==========================================================================
   Build My Box - Hidden Plan Radio Inputs
   --------------------------------------------------------------------------
   Keeps the native radio buttons accessible to the browser while visually
   hiding them so the entire card can act as the selectable plan option.
   ========================================================================== */

.selectable-plan input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

/* end selectable plan radio input styling */

.plan-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--lavender);
    color: var(--text);
    font-size: .8rem;
    font-weight: 800;
}

.plan-price {
    color: var(--hot-pink);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 16px 0 8px;
}

.plan-description {
    color: var(--gray);
    margin: 0;
}

/* ==========================================================================
   Build My Box - Subscription Plan Grid
   --------------------------------------------------------------------------
   Overrides the default 4-column layout used elsewhere on the site.
   Centers the three subscription plan cards on the page while maintaining
   consistent spacing and responsiveness.
   ========================================================================== */

.plan-selection-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    margin: 48px auto 36px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Build My Box - Subscription Plan Cards
   --------------------------------------------------------------------------
   Keeps each subscription card the same size regardless of content.
   ========================================================================== */

.selectable-plan {
    width: 260px;
    min-height: 390px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.selectable-plan.selected {
    border: 3px solid var(--hot-pink);
    background: #fff8fb;
    box-shadow: 0 18px 48px rgba(255, 59, 147, .16);
}


/* ==========================================================================
   Customer Portal
   --------------------------------------------------------------------------
   Styles customer account pages under /site/customer, including dashboard
   cards, subscription summary, shipping address, messages, and charge history.
   ========================================================================== */

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.portal-card {
    background: var(--card-pink);
    border: 1px solid rgba(255, 59, 147, .22);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(255, 59, 147, .08);
}

.portal-card h2 {
    margin-top: 0;
}

.portal-card a {
    display: block;
    margin-top: 12px;
    font-weight: 700;
    color: var(--hot-pink);
    text-decoration: none;
}

.portal-card .btn-primary,
.portal-card .btn-secondary {
    text-align: center;
}

.portal-card-wide {
    max-width: 850px;
    margin: 0 auto;
}

.portal-section {
    margin-top: 48px;
}

.portal-table-wrap {
    overflow-x: auto;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.portal-table th,
.portal-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 59, 147, .15);
}

.portal-table th {
    background: var(--card-pink);
}

.message-item {
    border-bottom: 1px solid rgba(255, 59, 147, .18);
    padding: 20px 0;
}

.message-item:last-child {
    border-bottom: 0;
}

/* ==========================================================================
   Customer Portal - Subscription Actions
   --------------------------------------------------------------------------
   Styles action buttons on the customer subscription detail page.
   The cancel button is intentionally softer than a destructive red button
   so it fits HerBox styling while still signaling caution.
   ========================================================================== */

.subscription-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.danger-action {
    color: #b00020;
    border-color: #b00020;
}

.danger-action:hover {
    background: #fff5f7;
}

/* ==========================================================================
   Build My Box - Email Availability Message
   --------------------------------------------------------------------------
   Displays a warning below the email field when the email already belongs to
   an existing HerBox customer account.
   ========================================================================== */

.email-wrapper {
    position: relative;
}

.email-check-message {
    position: absolute;
    top: 100%;
    left: 0;

    display: none;

    margin-top: 4px;

    color: #c62828;
    font-size: .85rem;
    font-weight: 600;
}

.email-check-message.show {
    display: block;
}

/* ==========================================================================
   Wrapping the address input so it moves when the error message appears
   --------------------------------------------------------------------------
   Keeps everything clean
   ========================================================================== */

#address-wrapper {
    transition: margin-top .15s ease;
}

#address-wrapper.email-error {
    margin-top: 6px;
}

/* ==========================================================================
   Disabled Primary Button
   --------------------------------------------------------------------------
   Makes disabled form buttons visibly inactive and prevents interaction.
   ========================================================================== */

.btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 900px) {
    .site-header {
        height: auto;
        padding: 20px;
        flex-direction: column;
        gap: 18px;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero,
    .split-section,
    .box-choice {
        grid-template-columns: 1fr;
        padding: 48px 24px;
    }

    .feature-grid,
    .plan-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .feature-card h3 {
        min-height: auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section{
        grid-template-columns:1fr;
        padding:0 24px;
    }

    .about-section.reverse .about-image,
    .about-section.reverse .about-text{
        order:initial;
    }    
    
    .how-steps {
        padding: 0 24px;
    }

    .how-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .how-benefits {
        grid-template-columns: 1fr;
    }

    .coming-options {
        justify-content: center;
    }

    .site-footer {
        flex-direction: column;
        gap: 20px;
    }
}