/* Import Convection fonts */
@import url('fonts.css');

html, body {
    font-family: 'Convection', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #7b8fa5;
}

/* FluentAnchor styling */
fluent-anchor,
fluent-anchor a {
    color: #eaeff8;
    background-color: #f77251;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

fluent-anchor:hover,
fluent-anchor a:hover {
    background-color: #e55a35;
    color: #eaeff8;
    text-decoration: none;
}

.btn-primary {
    color: #eaeff8;
    background-color: #f77251;
    border-color: #e55a35;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #eaeff8, 0 0 0 0.25rem #f77251;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #f77251;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIG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DI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #26323f;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #f77251;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Masthead Section */
.masthead {
    position: relative;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%), url('../images/bg-masthead.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    padding: 6rem 0 4rem;
    color: eaeff8;
    margin: 0;
    border: none;
}

.masthead h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #eaeff8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.masthead p {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
    .masthead {
        padding: 7rem 0 5rem;
    }

    .masthead h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 992px) {
    .masthead {
        padding: 8rem 0 6rem;
    }

    .masthead h1 {
        font-size: 2.75rem;
    }
}

/* Features Section */
.features-section {
    padding: 3rem 0;
    background-color: #cdd8e4;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #576d83;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Showcase Section */
.showcase-section {
    padding: 0;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 400px;
}

@media (min-width: 768px) {
    .showcase-item {
        grid-template-columns: 1fr 1fr;
        min-height: 500px;
    }
}

.showcase-text {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #eaeff8;
}

.showcase-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.showcase-text h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #384757;
}

.showcase-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #7b8fa5;
}

.showcase-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
}

@media (min-width: 768px) {
    .showcase-image {
        min-height: 500px;
    }
}

/* Reverse layout for alternating items */
.showcase-item-reverse {
    direction: rtl;
}

.showcase-item-reverse > * {
    direction: ltr;
}

/* Testimonials Section */
.testimonials-section {
    padding: 0;
    background-color: #cdd8e4;
}

.testimonials-section .showcase-item {
    background-color: #cdd8e4;
}

.testimonials-section .showcase-text {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
}

/* Plans Page */
.plans-container {
    background-color: #b0bece;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.plans-header {
    text-align: center;
    margin-bottom: 3rem;
}

.plans-header h1 {
    color: #384757;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.plan-card {
    background-color: white;
    padding: 2rem;
}

.plan-card h2 {
    color: #384757;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.plan-card h3,
.plan-card h4 {
    color: #384757;
    font-weight: 600;
}

.plan-card p,
.plan-card div,
.plan-card strong {
    color: #384757;
}

.plan-card .text-muted {
    color: #7b8fa5 !important;
}

/* Subscriptions Page */
.subscriptions-container {
    background-color: #b0bece;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.subscriptions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subscriptions-header h1 {
    color: #384757;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subscriptions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .subscriptions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .subscriptions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.subscription-card {
    background-color: white;
    padding: 2rem;
    overflow: hidden;
}

.subscription-card h2 {
    color: #384757;
    font-size: 1.75rem;
    font-weight: 700;
}

.subscription-card h3,
.subscription-card h4 {
    color: #384757;
    font-weight: 600;
}

.subscription-card p,
.subscription-card div,
.subscription-card strong {
    color: #384757;
}

.subscription-card .text-muted {
    color: #7b8fa5 !important;
}

.subscription-card fluent-stack {
    width: 100% !important;
    max-width: 100% !important;
}

/* Loading and Error containers for Plans and Subscriptions */
.loading-container,
.error-container {
    text-align: center;
    padding: 4rem 2rem;
    background-color: white;
    border-radius: 8px;
    max-width: 600px;
    margin: 2rem auto;
}

.error-container h2 {
    color: #384757;
}