/* =============================
   HPI Main Store Styles
   ============================= */

/* =============================
   Layout & Containers
   ============================= */

.hpi-main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
}

/* =============================
   Hero Section
   ============================= */

.hpi-hero {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 2rem 0;
}

.hpi-hero-left {
    flex: 1 1 50%;
    min-width: 0;
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.hpi-hero-right {
    flex: 1 1 50%;
    min-width: 0;
}

.hpi-hero-right img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    display: block;
}

.hpi-hero-title {
    line-height: 3rem !important;
    color: var(--solera-shark);
    text-wrap: pretty;
    font-weight: 700 !important;
}

.hpi-hero-description {
    color: var(--solera-mako-base);
    font-weight: 500;
}

/* =============================
   Choose Your Plan Section
   ============================= */

.hpi-choose-plan {
    text-align: center;
    padding: 0 20px;
}

.hpi-choose-plan-title {
    color: var(--solera-shark);
    font-weight: 700 !important;
}

/* =============================
   Additional Products & Services Section
   ============================= */

.hpi-additional-specs {
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.hpi-additional-specs-title {
    color: #32255F;
    margin: 0 0 15px 0 !important;
}

.hpi-additional-specs-subtitle {
    color: var(--solera-mako-base);
    margin: 0 0 1rem 0 !important;
    line-height: 1.5;
}

.hpi-additional-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 3rem;
    display: grid;
}

.hpi-additional-specs-list li {
    padding-left: 28px;
    position: relative;
    color: var(--solera-mako-base);
    line-height: 1.5;
    font-weight: 400;
    font-size: 16px;
}

.hpi-additional-specs-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--solera-shark);
    line-height: 1.4;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* =============================
   HPI Disclaimer Section
   ============================= */
.hpi-disclaimer {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    max-width: 600px;
    margin: 1rem 0 1rem 0;
}

.hpi-info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-radius: 50%;
    color: #333;
    margin-right: 0;
    line-height: 0;
    top: -5px;
    margin-left: 1px;
    padding-top: 2px;
}

.hpi-disclaimer .hpi-info-icon {
    padding-top: 1px;
}

.hpi-disclaimer .hpi-disclaimer-label {
    color: #333;
    line-height: 1.4;
}

/* =============================
   HPI Product Grid & Cards
   ============================= */

.hpi-product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    row-gap: 30px;
    column-gap: 16px;
    animation: fadeIn 0.4s ease-in-out;
    margin: 1rem 0;
}

.hpi-product-grid.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== Product Card ===== */
.hpi-product-card {
    width: 300px;
    flex: 0 0 300px;
    gap: 0.625rem;
    background: #fff;
    border: 2px solid;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 100%;
}

.hpi-product-card.goldsubscription {
    border-color: var(--solera-gold) !important;
}
.hpi-product-card.goldsubscription .hpi-card-header {
    background-color: var(--solera-gold) !important;
}

.hpi-product-card.silversubscription {
    border-color: var(--solera-silver) !important;
}
.hpi-product-card.silversubscription .hpi-card-header {
    background-color: var(--solera-silver) !important;
}

.hpi-product-card.bronzesubscription {
    border-color: var(--solera-bronze) !important;
}
.hpi-product-card.bronzesubscription .hpi-card-header {
    background-color: var(--solera-bronze) !important;
}

.hpi-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.hpi-card-header {
    text-align: center;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
}

.hpi-card-title {
    color: var(--solera-shark);
    margin: auto !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700 !important;
}

/* Card Body */
.hpi-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

/* Amount Selection Section */
.hpi-card-amount-section {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.hpi-amount-label {
    color: var(--solera-shark);
    margin: 0;
    opacity: 0.9;
}

.hpi-amount-select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--solera-jacarta);
    border-radius: 0.5rem !important;
    background-color: #fff;
    color: var(--solera-shark);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    opacity: 0.8;
}

.hpi-amount-select option {
    color: var(--solera-shark) !important;
    opacity: 0.5 !important;
}

.hpi-amount-select:hover {
    border-color: var(--solera-cobalt-500);
}

.hpi-amount-select:focus {
    outline: none;
    border-color: var(--solera-cobalt-500);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

/* Button Section */
.hpi-card-button-section {
    display: flex;
    flex-direction: column;
}

.hpi-card-button-section button,
.hpi-card-button-section a.button {
    width: 100%;
    padding: 1rem;
    background-color: var(--solera-shark);
    color: white;
    border: none;
    border-radius: 0.5rem !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.hpi-card-button-section button:hover,
.hpi-card-button-section a.button:hover {
    background-color: #1a1a1a;
}

.hpi-card-button-section button:disabled {
    background-color: var(--solera-jacarta);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Includes Section */
.hpi-card-includes-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hpi-includes-title {
    color: var(--solera-shark);
    margin: 0;
    padding: 0.25rem 0 0.5rem 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.hpi-includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hpi-include-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--solera-shark);
}

.hpi-check-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--solera-shark);
}

.hpi-include-text {
    color: var(--solera-shark);
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0.9 !important;
}

/* ===== Responsive Design ===== */
/* Tablet: 2 columns */
@media (max-width: 1023px) and (min-width: 768px) {
    .hpi-product-card {
        flex: 0 0 calc(50% - 8px);
        width: calc(50% - 8px);
        padding: 12px;
        gap: 16px;
    }
}

/* Mobile: Single-column layout, hero image hidden */
@media (max-width: 767px) {
    .hpi-hero {
        gap: 24px;
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .hpi-hero-right {
        display: none;
    }

    .hpi-hero-title {
        margin-bottom: 16px;
        text-align: center;
    }

    .hpi-hero-description {
        display: none;
    }

    .hpi-product-grid {
        row-gap: 24px;
    }

    .hpi-product-card {
        flex: 0 0 100%;
        width: 100%;
        padding: 12px;
        gap: 16px;
    }

    .hpi-additional-specs-list {
        margin-left: 0;
    }
}

/* Small mobile: Extra adjustments */
@media (max-width: 480px) {
    .hpi-hero {
        gap: 16px;
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .hpi-hero-title {
        margin-bottom: 12px;
    }
}
