/* ---------------------------------------------------------------------------
   Open Sans (Figma design font), self-hosted from this RCL's wwwroot so both the
   WASM host and the MAUI WebView get it offline — NO Google Fonts CDN. Served at
   _content/Italy.Bluenergy.Ui.Shared/fonts/*. Weights: 400 Regular, 600 SemiBold,
   700 Bold (matches the Figma type scale in BluenergyTheme.cs).
   --------------------------------------------------------------------------- */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/OpenSans-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/OpenSans-Bold.ttf') format('truetype');
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.main-container {
    min-height: 100vh;
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #0057b8;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------------
   Branded Bluenergy app bar (Figma node 564:79252): pink #fc66ff, 56px tall,
   BLUENERGY wordmark left, two-line centred title, trash + menu icons right.
   --------------------------------------------------------------------------- */
.bluenergy-wordmark {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 0;
    white-space: nowrap;
}

.bluenergy-appbar-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
}

.bluenergy-appbar-title .title-small {
    font-size: 12px;       /* Body2 */
    font-weight: 400;
    color: #ffffff;
}

.bluenergy-appbar-title .title-main {
    font-size: 16px;       /* Body1, bold per Figma */
    font-weight: 700;
    color: #ffffff;
}

/* ---------------------------------------------------------------------------
   Wizard shell: branded bar (in MainLayout) + progress on top, scrollable body,
   fixed footer. Page background is the Figma light-pink #fff0ff.
   --------------------------------------------------------------------------- */
.wizard-shell {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background-color: #fff0ff;
}

.wizard-progress {
    border-radius: 0;
}

.wizard-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    /* Clear the fixed footer so the last content isn't hidden behind it. */
    padding-bottom: 88px;
}

/* Footer pinned to the bottom of the viewport (Figma: solid white bar with a
   thin top divider, full width). `position: fixed` is used instead of `sticky`
   because the MudBlazor layout chain doesn't give the wizard shell a guaranteed
   full height for sticky to anchor against. */
.wizard-footer {
    display: flex;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-color: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    z-index: 1200;
}

/* ---------------------------------------------------------------------------
   Reusable selectable option card (Figma): white surface, 12px radius, 1px
   solid #00000066 border, 20px padding, flat. Centred icon (accent blue) over a
   Button-typo (14px/600) black label. Selected = accent-blue 2px border + tint.
   Used by Customer-check (Privat/Company), Type-of-energy, House-type, ...
   --------------------------------------------------------------------------- */
.bluenergy-option-card {
    box-sizing: border-box;
    width: 231px;
    max-width: 100%;
    background-color: #ffffff;
    border: 1px solid #00000066;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.bluenergy-option-card:hover {
    border-color: #0057b8;
}

.bluenergy-option-card .option-icon {
    color: #0057b8;
}

.bluenergy-option-card .option-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;       /* Button typo */
    font-weight: 600;
    line-height: 24px;
    color: #000000;
    text-align: center;
}

.bluenergy-option-card--selected {
    border-color: #0057b8;
    border-width: 2px;
    /* keep the box the same size despite the thicker border */
    padding: 19px;
    background-color: rgba(0, 87, 184, 0.06);
}

/* Centred content column for option screens (gap 40px below the title block). */
.bluenergy-option-screen {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    text-align: center;
}

.bluenergy-option-card-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.gap-4 {
    gap: 16px;
}
