:root {
    --font-stack: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container-max: 1024px;
    --color-primary: #2C3E35;
    --color-secondary: #3F4531;
    --color-bg-light: #F5F3D9;
    --color-bg-lighter: #F9F8E8;
    --color-accent: #F4D96B;
    --color-bg-ultra: #FFFFFF;
}

/* ========================= */
/* PUBLIC BASE LAYOUT        */
/* ========================= */

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    background: #3F4531;
    color: #2C3E35;
    line-height: 1.6;
    font-size: 16px;
}

#public-header {
    max-width: 1024px;
    margin: 0 auto;
    padding: 14px 0 0 0;
}

.public-logo img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 100%;
}

/* ========================= */
/* PUBLIC NAVBAR (BOOTSTRAP) */
/* ========================= */

.public-navbar {
    border: 1px solid #d6dcc3;
    border-radius: 10px;
    background: #3F4531;
    padding: 8px 14px;
}

.public-menu {
    margin-top: 0;
}

.public-menu .nav-link {
    color: #E5E299;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.public-menu .nav-link:hover,
.public-menu .nav-link:focus {
    background: rgba(255,255,255,0.12);
    color: #F4D96L;
}

.public-menu .nav-link.active {
    background: rgba(255,255,255,0.16);
    color: #F4D96L;
    font-weight: 600;
}

#publicMenuList {
    width: 100%;
}

@media (min-width: 992px) {
    #publicMenuList {
        display: flex;
        align-items: center;
    }

    #publicMenuList > .nav-item:last-child {
        margin-left: auto;
    }
}

.navbar-toggler {
    border-color: #9aaa9a;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(244, 217, 107, 0.35);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(229,226,153,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================= */
/* PUBLIC CONTENT WRAPPER    */
/* ========================= */

#public-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 24px 20px 28px;
}

/* ========================= */
/* CARD LAYOUT               */
/* ========================= */

.public-card {
    background: #ffffff;
    border: 1px solid #D4D0B8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 34px 40px;
    max-width: 900px;
    margin: 20px auto;
}

.package-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid #D4D0B8;
    background: #eef1e5;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.package-card-image-img {
    /*display: block;*/
    /*width: 100%;*/
    /*height: 100%;*/
    /*object-fit: cover;*/
}

.package-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6247;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ========================= */
/* HOMEPAGE HERO             */
/* ========================= */

body.default-home .public-card {
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #F9F8E8);
    border: 1px solid #D4D0B8;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    padding: 56px 48px;
    max-width: 900px;
}

.home-brand {
    margin: 0 auto 22px;
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.home-brand-logo {
    display: block;
    width: min(100%, 275px);
    height: auto;
    margin: 0 auto;
}

.home-page-card {
    text-align: left;
}

.home-hero h1 {
    margin: 0 0 14px 0;
    color: #14314a;
    font-size: 2rem;
    line-height: 1.15;
}

.home-hero-lead {
    font-size: 1.08rem;
    font-weight: 600;
    color: #1f5042;
}

.home-hero p {
    margin: 0 0 12px 0;
    color: #314439;
    line-height: 1.6;
}

.home-features {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 28px 0 0;
}

.home-features-prominent .home-feature {
    min-width: 0;
}

.home-feature {
    background: #ffffff;
    border: 1px solid #d8e1d0;
    border-radius: 8px;
    padding: 16px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.home-feature h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: #203b31;
}

.home-feature p {
    margin: 0;
    color: #3e4f44;
}

.home-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
}

.home-content-panel {
    background: #f9f8e8;
    border: 1px solid #d8e1d0;
    border-radius: 8px;
    padding: 20px;
}

.home-content-panel h2,
.home-cta h2 {
    margin: 0 0 12px 0;
    color: #14314a;
    font-size: 1.35rem;
}

.home-bullet-list {
    margin: 0;
    padding-left: 20px;
    color: #314439;
}

.home-bullet-list li {
    margin-bottom: 8px;
}

.home-bullet-list-center {
    list-style: none;
    padding-left: 0;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: table;
}

.home-bullet-list-center li {
    margin-bottom: 8px;
}

.home-page-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.home-page-link-button {
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid #1f5042;
    border-radius: 999px;
    background: #ffffff;
    color: #1f5042;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.home-page-link-button:hover,
.home-page-link-button:focus {
    background: #1f5042;
    color: #ffffff;
}

.home-testimonial {
    margin: 16px 0 0 0;
    padding-left: 16px;
    border-left: 4px solid #1f5042;
    color: #2f3528;
    font-style: italic;
}

.home-cta {
    text-align: center;
    background: #ffffff;
    border: 1px solid #d8e1d0;
    border-radius: 8px;
    padding: 22px 20px;
}

.home-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 18px 0 12px;
}

.home-footnote {
    color: #4a5542;
    margin: 12px 0 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.page-heading {
    margin: 0 0 12px 0;
    color: #14314a;
    font-size: 1.9rem;
    line-height: 1.2;
}

.page-intro {
    margin: 0 0 18px 0;
    color: #314439;
    font-size: 1.04rem;
    line-height: 1.6;
}


.home-bullet-list,
.home-bullet-list-center {
    max-width: none;
}

.info-block {
    margin-top: 22px;
}

.info-block h2 {
    margin: 0 0 10px 0;
    color: #14314a;
}

.info-step,
.faq-item {
    background: #f9f8e8;
    border: 1px solid #d8e1d0;
    border-radius: 8px;
    padding: 18px;
}

.info-step + .info-step {
    margin-top: 12px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

body.default-home #btnRegister,
body.default-home #btnContactUs {
    min-width: 180px;
}

/* ========================= */
/* REGISTRATION + CONTACT    */
/* ========================= */

.form-section-title {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Keep checkbox spacing without globally affecting Bootstrap form controls */
input[type="checkbox"] {
    margin-right: 0.4rem;
}

/* Make registration radio/checkbox controls render inline with long labels */
/* Inputs have class "registration-option" so target input + label patterns */
input.registration-option,
input.registration-option[type="radio"],
input.registration-option[type="checkbox"] {
    vertical-align: top;
    margin-right: 0.6rem;
    display: inline-block;
}

/* Ensure the label that follows the input wraps inline and aligns to top */
input.registration-option + label,
input.registration-option + span,
label[for^="rbUsage"],
label[for^="chk"] {
    display: inline-block;
    vertical-align: top;
    max-width: calc(100% - 48px);
}

/* Small spacing between stacked registration options */
.registration-option-row {
    margin-bottom: 0.6rem;
}

/* ========================= */
/* LOGIN PAGE                */
/* ========================= */

.login-card table {
    margin: 0 auto;
    width: 320px; 
}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="submit"] {
    width: 100% !important;
    box-sizing: border-box !important;
}

.login-card {
    max-width: 520px;
    margin: 20px auto;
    padding: 48px 56px;
    background: #FEFDF6;
    border: 1px solid #D4D0B8;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

.login-title {
    text-align: center;
    font-size: 1.8rem;
    color: #2C3E35;
    margin-bottom: 32px;
}

.login-field {
    margin-bottom: 22px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #2C3E35;
}

.login-input {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #D4D0B8 !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    background: #FEFDF6 !important;
}

/* Override browser autofill blue background */
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #FEFDF6 inset !important;
    -webkit-text-fill-color: #2C3E35 !important;
    border: 1px solid #D4D0B8 !important;
}

/* ========================= */
/* FOOTER                    */
/* ========================= */

.public-footer {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 12px;
    color: #E5E299;
    font-size: 0.85rem;
}

.public-footer a {
    color: #E5E299;
    border-bottom: none;
    text-decoration: none;
    transition: color 0.2s ease;
}

.public-footer a:hover {
    color: var(--color-accent);
}


/* ========================= */
/* PACKAGES                  */
/* ========================= */

.packages-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.package-col {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .package-col {
        width: calc(50% - 8px);
    }
}

@media (min-width: 1024px) {
    .package-col {
        width: calc((100% - 32px) / 3);
    }
}

.package-card {
    border: 1px solid #BFBCA3;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: #b1b790;
}

.package-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.package-card-title {
    margin: 0 0 8px 0;
    color: #2C3E35;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.35;
    min-height: 2.7em;
    max-height: 2.7em;
    overflow: hidden;
}

.package-card-meta {
    margin: 0 0 10px 0;
    color: #2C3E35;
    background: var(--color-accent);
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.package-card-rate {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0c2f4a;
    margin: 0 0 12px 0;
    line-height: 1;
    text-align: left;
}

.package-card-actions {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    justify-content: center;
}

.package-card-actions .btn,
.package-details-actions .btn {
    min-width: 120px;
}

/* ========================= */
/* PACKAGE DETAILS PAGE      */
/* ========================= */

.package-details-card {
    max-width: 100%;
}

.package-details-meta-row {
    margin-bottom: 10px;
}

.package-details-title {
    margin: 0 0 10px 0;
    color: #14314a;
    font-size: 2rem;
    line-height: 1.2;
}

.package-details-rate {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0c2f4a;
    margin: 0 0 10px 0;
}

.package-details-address {
    color: #2f3528;
    font-size: 1rem;
    margin: 0 0 10px 0;
}

.package-details-date {
    color: #5a6247;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.package-details-body {
    color: #2f3528;
    line-height: 1.6;
}

.package-details-body p {
    margin: 0 0 12px 0;
}

.package-details-body ul,
.package-details-body ol {
    margin: 0 0 12px 22px;
}

.package-details-body a {
    color: #0c2f4a;
    text-decoration: underline;
}

.package-details-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.package-details-empty {
    color: #4f5645;
    margin: 0;
}

/* ========================= */
/* THANK YOU PAGE            */
/* ========================= */

.thankyou-panel {
    width: 100%;
    max-width: 760px;
    margin: 20px auto;
    text-align: center;
}

.thankyou-content {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.thankyou-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 14px auto;
    background-color: #eaf5e8;
    color: #2e7d32;
    font-size: 2rem;
    line-height: 56px;
    font-weight: 700;
}

.thankyou-title {
    margin: 0 0 10px 0;
    color: #14314a;
    font-size: 2rem;
}

.thankyou-message {
    margin: 0 0 6px 0;
    color: #2f3528;
    font-size: 1.05rem;
}

.thankyou-submessage {
    margin: 0;
    color: #5a6247;
}

.thankyou-actions {
    margin-top: 22px;
}

.honeypot-row {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.registration-option input[type="radio"] {
    margin-right: 6px;
}

/* ========================= */
/* RESPONSIVE LAYOUT         */
/* ========================= */

@media (max-width: 991.98px) {
    .public-menu {
        margin-top: 10px;
    }

    .public-menu .nav-link {
        width: 100%;
        padding: 12px 14px;
    }
}

@media (max-width: 640px) {
    #public-header {
        padding: 16px 12px 0;
    }

    .public-card,
    body.default-home .public-card {
        padding: 28px 20px;
        margin: 12px;
    }

    #public-content {
        padding: 12px;
    }

    .login-card {
        padding: 32px 20px;
        margin: 12px;
    }
}

/* Bootstrap primary button override to keep BME palette */
.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #1F5042;
    --bs-btn-hover-border-color: #1F5042;
    --bs-btn-focus-shadow-rgb: 44, 62, 53;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #1B4639;
    --bs-btn-active-border-color: #1B4639;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: var(--color-primary);
    --bs-btn-disabled-border-color: var(--color-primary);
}

/* ========================= */
/* NEWS PAGE                 */
/* ========================= */

.public-news-card {
    max-width: 900px;
}

.public-news-item {
    border-top: 1px solid #e1dcc4;
    padding-top: 14px;
    margin-top: 14px;
}

.public-news-item:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.public-news-title {
    margin: 0;
    color: #14314a;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
}

.public-news-title a {
    color: inherit;
    text-decoration: none;
}

.public-news-title a:hover,
.public-news-title a:focus {
    text-decoration: underline;
}

.public-news-date {
    margin-top: 4px;
    color: #5a6247;
    font-size: 0.9rem;
    font-weight: 600;
}

.public-news-summary {
    margin: 8px 0 0 0;
    color: #2f3528;
    line-height: 1.5;
}

.public-news-item-full {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.public-news-title-full {
    font-size: 1.8rem;
}

.public-news-backlink {
    margin-bottom: 10px;
}

.public-news-backlink a {
    color: #1f5042;
    text-decoration: none;
    font-weight: 600;
}

.public-news-backlink a:hover,
.public-news-backlink a:focus {
    text-decoration: underline;
}

.public-news-body {
    margin-top: 12px;
    color: #2f3528;
    line-height: 1.6;
}

.public-news-body p {
    margin: 0 0 10px 0;
}

.public-news-empty {
    display: block;
    margin-top: 10px;
    color: #4f5645;
}
