/* =============================================
   GENERIC REUSABLE COMPONENTS
   Structure and layout only — no theme colours.
   Add colour via modifier classes or page-level CSS.

   e.g.  .page-hero { }          <- structure here
         .page-hero--blue { }    <- colour in your page stylesheet
   ============================================= */

/* Page wrapper */
.content-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- page-hero ----------------------------------------
   Large full-width header block.
   Apply your own background colour/gradient via modifier.
   -------------------------------------------------------- */
.header-panel {
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.header-panel h1 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.header-panel .subtitle {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0.95;
}

@media screen and (max-width: 500px) {
    padding: 25px;
}

/* ---- highlight-panel ----------------------------------
   Left-bordered info panel.
   -------------------------------------------------------- */
.highlight-panel {
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 4px solid var(--blue-900);
    box-shadow: var(--shadow-md);
}

.highlight-panel h2 {
    color: #1e293b;
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.highlight-panel p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* ---- section-block ------------------------------------
   Generic titled section wrapper.
   -------------------------------------------------------- */
.section-block {
    margin-bottom: 50px;
}

.section-block h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.section-block > p {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ---- card-grid ----------------------------------------
   Responsive auto-fit grid for feature cards.
   -------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* ---- feature-card -------------------------------------
   Bordered hover card. No colour — add via modifier.
   -------------------------------------------------------- */
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #1e293b;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* ---- stat-highlight -----------------------------------
   Small accented stat box, sits inside a feature-card.
   Apply your own border-color and background via modifier.
   -------------------------------------------------------- */
.stat-highlight {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 3px solid currentColor;
}

.stat-highlight strong {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

/* ---- media-card-grid ----------------------------------
   Wider min-width grid for image-heavy cards.
   -------------------------------------------------------- */
.media-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* ---- media-card ---------------------------------------
   Card containing an image and spec text.
   -------------------------------------------------------- */
.media-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.media-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.media-card h3 {
    color: #1e293b;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.media-card .card-specs {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 10px 0 20px 0;
}

.media-card img {
    max-width: 100%;
    height: auto;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

.media-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 15px 0 0 0;
}

/* ---- callout-panel ------------------------------------
   Attention-grabbing full-width notice block.
   Apply your own background colour via modifier.
   -------------------------------------------------------- */
.callout-panel {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
}

.callout-panel h3 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.callout-panel p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ---- cta-section --------------------------------------
   Full-width call to action footer block.
   Base colour white - can overwrite by adding a colour class.
   -------------------------------------------------------- */
.cta-section {
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
    box-shadow: var(--shadow-md);
}

.cta-section h2 {
    font-size: 2rem;
    margin: 0 0 20px 0;
}

.cta-section p {
    font-size: 1.2rem;
    margin: 0 0 30px 0;
    opacity: 0.95;
}

.cta-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.cta-button {
    background: black;
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .page-hero h1         { font-size: 2rem; }
    .page-hero .subtitle  { font-size: 1.1rem; }
    .media-card-grid      { grid-template-columns: 1fr; }
    .card-grid            { grid-template-columns: 1fr; }
    .highlight-panel,
    .page-hero,
    .cta-section          { padding: 30px 20px; }
}


/* =============================================
   COMPONENT: Settings / Info Display
   Generic label-value card pattern.
   Used on: User Control Panel, Profile, any
   settings-style page.

   Classes:
     .info-card            — white card container
     .info-row             — single label/value row
     .info-label           — left-side label
     .info-value           — right-side value
     .action-grid          — grid of quick-action links
     .action-link          — individual action link item
     .table-scroll         — horizontal scroll wrapper for tables
   ============================================= */

fieldset.form-section {
    background: #fff;
    margin-bottom: 35px;
}

/* ---- Info card -------------------------------------------- */
.info-card {
    background: whitesmoke;
    border: 1px solid var(--zinc-300);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
}

.info-row + .info-row {
    border-top: 1px solid #e2e5ea;
}

.info-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
    min-width: 120px;
    flex-shrink: 0;
}

.info-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: right;
    flex: 1;
}

/* ---- Action grid ------------------------------------------ */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--zinc-50);
    border: 1px solid var(--zinc-200);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.action-link:hover {
    background: var(--blue-100);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.action-link i {
    font-size: 1rem;
    color: var(--brand-blue);
    flex-shrink: 0;
    transition: color 0.2s;
}

.action-link:hover i {
    color: var(--brand-blue);
}

/* ---- Table scroll wrapper --------------------------------- */
.table-scroll {
    overflow-x: auto;
}

/* ---- Responsive ------------------------------------------- */
@media screen and (max-width: 600px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .info-value {
        text-align: left;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }
}

.form-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 10px;
}

.breadcrumb-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #52565a;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    background: #e7e7ee;
    min-width: fit-content;
    height: 80px;
    min-height: 80px;
}

.breadcrumb-step:not(:last-child)::after {
    content: '→';
    margin: 0 1rem;
    color: #52565a;
    font-size: 1.5rem;
}

.breadcrumb-step.current {
    background: #007bff;
    color: white;
    font-weight: 600;
}

.breadcrumb-step.accessible:not(.current):hover {
    background: #e9ecef;
    color: #495057;
    cursor: pointer;
}

.breadcrumb-step.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.breadcrumb-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-height: 28px;
    border-radius: 50%;
    background: #dee2e6;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.breadcrumb-step.current .breadcrumb-step-number {
    background: white;
    color: #007bff;
}

.breadcrumb-step.accessible:not(.current) .breadcrumb-step-number {
    background: #28a745;
    color: white;
}

.breadcrumb-step.locked .breadcrumb-step-number {
    background: #e9ecef;
    color: #adb5bd;
}

.breadcrumb-step i {
    margin-right: 0.25rem;
}

/* Credits Information Section */
.credits-info-section {
    background: linear-gradient(135deg, #667eea 0%, #556fdf 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.credits-info-heading {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.credit-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 16px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.credit-card-total {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.credit-card-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.credit-card-value {
    font-size: 28px;
    font-weight: bold;
}

.credits-info-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.credits-info-text {
    margin: 0 0 8px 0;
}

.credits-info-text-secondary {
    margin: 0;
    opacity: 0.95;
}

@media screen and (max-width: 768px) {
    .credits-grid {
        grid-template-columns: 1fr;
    }
}


/* ---- membership-list-styling --------------------------
   Specifically for lists inside feature-cards to
   create a "pricing table" feel.
   -------------------------------------------------------- */

.feature-card ul {
    list-style: none;
    margin: 20px 0 0 0;
    text-align: left;
    border-top: 1px solid #e2e8f0;
    padding: 20px 0 0 0;
}

.feature-card li {
    display: flex;             /* Align icon and text horizontally */
    align-items: flex-start;   /* Keep icon at the top if text wraps */
    gap: 12px;                 /* Space between icon and text */
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #475569;
}

/* Icon Styling */
.feature-card li i {
    color: #3b82f6;            /* Default blue for icons */
    font-size: 0.9rem;
    margin-top: 4px;           /* Vertical centering adjustment */
    width: 20px;               /* Fixed width keeps text aligned vertically */
    text-align: center;
}

.feature-card li strong {
    color: #1e293b;
    font-weight: 600;
}

/* Specific styling for the "Cost" line to make it pop */
.feature-card li:first-child {
    font-size: 1.05rem;
    color: #1e293b;
    margin-bottom: 18px;
}


/* Styling for the "Plus:" or "Everything in..." text */
.feature-card li strong {
    color: #1e293b;
    font-weight: 600;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .feature-card li {
        font-size: 0.9rem;
    }
}