/* Shared component states for registration, profile editing and membership pages. */
:root {
    --hnl-option-bg: #fff8ef;
    --hnl-option-text: #64434e;
    --hnl-option-border: #d9c5bd;
    --hnl-selected-bg: #efd49c;
    --hnl-selected-text: #4b1528;
    --hnl-disabled-bg: #e7dde2;
    --hnl-disabled-text: #674b58;
    --hnl-error-bg: #fff0f3;
    --hnl-error-text: #7a1737;
}

/* Unselected does not mean disabled: every available answer stays fully legible. */
.banner .select-buttons {
    gap: 10px;
    align-items: stretch;
}
.banner .select-buttons a {
    width: calc(50% - 5px);
    min-height: 50px;
    margin: 0;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--hnl-option-border);
    border-radius: 12px;
    background: var(--hnl-option-bg);
    color: var(--hnl-option-text);
    opacity: 1;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: background-color .15s, border-color .15s;
}
.banner .select-buttons a:hover {
    background: #f5e9d7;
    border-color: #bc926b;
    color: var(--hnl-selected-text);
    opacity: 1;
}
.banner .select-buttons a.selected {
    background: var(--hnl-selected-bg);
    border-color: var(--hnl-selected-bg);
    color: var(--hnl-selected-text);
    font-weight: 700;
    opacity: 1;
    box-shadow: inset 0 0 0 1px #a57836;
}
.banner .select-buttons a.selected::after {
    content: '\2713';
    margin-left: auto;
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 700;
}
.banner .select-buttons a.disabled-link,
.banner .select-buttons a[aria-disabled="true"] {
    background: var(--hnl-disabled-bg);
    color: var(--hnl-disabled-text);
    border-color: #cdb8c2;
    opacity: 1;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* Keep navigation labels readable even while Proceed is unavailable. */
.banner .proceed-btn,
.banner .form-box .btn,
.banner .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid var(--hnl-rose);
    border-radius: 28px;
    background: var(--hnl-rose);
    color: #fff !important;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}
.banner .proceed-btn:not(.inactive):not([aria-disabled="true"]):not(:disabled):hover,
.banner .form-box .btn:not(:disabled):hover,
.banner .submit-btn:not(:disabled):hover {
    background: #920032;
    border-color: #920032;
}
.banner .proceed-btn.inactive,
.banner .proceed-btn[aria-disabled="true"],
.banner button:disabled {
    background: var(--hnl-disabled-bg);
    border: 1px solid #cdb8c2;
    color: var(--hnl-disabled-text) !important;
    opacity: 1;
    box-shadow: none;
    cursor: not-allowed;
}
.banner .proceed-btn.inactive,
.banner .proceed-btn[aria-disabled="true"] {
    pointer-events: none;
}
.banner .account-form input:disabled,
.banner .account-form select:disabled,
.banner .account-form textarea:disabled {
    opacity: 1;
    background: var(--hnl-disabled-bg);
    color: var(--hnl-disabled-text);
    border-color: #cdb8c2;
}
.banner .account-form input:focus-visible,
.banner .account-form select:focus-visible,
.banner .account-form textarea:focus-visible {
    outline: 3px solid var(--hnl-gold);
    outline-offset: 3px;
}
.banner .account-form .form-box .dob-wrapper {
    color: var(--hnl-option-text);
    background: var(--hnl-option-bg);
    border-color: var(--hnl-option-border);
    border-radius: 12px;
}
.banner .q-notes,
.banner .account-form .form-box .note-text {
    color: #f4e3e8;
    line-height: 1.6;
}
.banner .checkbox-container input:checked ~ .checkmark {
    background: var(--hnl-wine);
    border-color: var(--hnl-gold);
}
.banner input[type="radio"],
.banner input[type="checkbox"] {
    accent-color: var(--hnl-wine);
}
.banner .form-box input[type="range"]::-webkit-slider-thumb {
    background: var(--hnl-wine);
    border: 2px solid var(--hnl-gold);
}
.banner .form-box input[type="range"]::-moz-range-thumb {
    background: var(--hnl-wine);
    border: 2px solid var(--hnl-gold);
}

/* Success and error share the brand palette; labels and icons distinguish meaning. */
.alert-box,
.banner .alert-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin: 12px 0 24px;
    padding: 18px 20px;
    border: 1px solid #dfcda9;
    border-left: 4px solid #b78a44;
    border-radius: 14px;
    background: #fffaf2;
    color: #4d313c;
    box-shadow: 0 8px 24px #3406190d;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.alert-box.failed,
.banner .alert-box.failed {
    background: var(--hnl-error-bg);
    color: var(--hnl-error-text);
    border-color: #dfb8c4;
    border-left-color: var(--hnl-wine);
}
.hnl-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0e0c2;
    color: var(--hnl-wine);
    font-size: 17px;
    font-weight: 700;
}
.failed .hnl-alert-icon {
    background: #f0d8e1;
}
.hnl-alert-content {
    min-width: 0;
}
.hnl-alert-label {
    display: block;
    color: var(--hnl-wine);
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
}
.alert-box a {
    color: var(--hnl-wine);
    text-decoration: underline;
}
.banner .account-form .form-box .error-msg,
.banner .account-form .form-box label.error,
.banner .login-form label.error {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #dfb8c4;
    border-radius: 9px;
    background: var(--hnl-error-bg);
    color: var(--hnl-error-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}
.form-msg-popup .form-box .checkmark-wrapper {
    background: var(--hnl-wine);
    border: 3px solid var(--hnl-gold);
}
.form-msg-popup .form-box .cross-wrapper {
    background: #f0d8e1;
    border: 3px solid #dfb8c4;
}
.form-msg-popup .form-box .cross-wrapper .cross::before,
.form-msg-popup .form-box .cross-wrapper .cross::after {
    background-color: var(--hnl-wine);
}

/* The same membership card surfaces are used in registration and checkout. */
.banner .plans-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    align-items: stretch;
}
.banner .plans-wrapper .each-plan {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--hnl-option-border);
    border-radius: 16px;
    background: #fffaf4;
    color: var(--hnl-wine);
    opacity: 1;
    box-shadow: 0 8px 24px #34061910;
}
.banner .plans-wrapper .each-plan:hover {
    background: #fff5e8;
    border-color: #b78a44;
}
.banner .plans-wrapper .each-plan .plan-name {
    color: var(--hnl-wine);
    font: 24px/1.3 Georgia, serif;
    margin-bottom: 22px;
    gap: 10px;
    overflow-wrap: anywhere;
}
.banner .plans-wrapper .each-plan .other-details {
    gap: 24px;
    flex-wrap: wrap;
}
.banner .plans-wrapper .each-plan .other-details .label {
    color: #745960;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 5px;
}
.banner .plans-wrapper .each-plan .value {
    color: var(--hnl-wine);
    font-size: 18px;
    font-weight: 600;
}
.banner .plans-wrapper .each-plan svg {
    fill: var(--hnl-wine);
    flex-shrink: 0;
}
.banner .plans-wrapper .each-plan.hnl-plan-selected {
    background: #fff2d9;
    border: 2px solid #b78a44;
    box-shadow: 0 0 0 3px #efd49c20;
}

/* Specificity also overrides the upgrade page's older inline stylesheet. */
.banner .hnl-plan-card {
    background: #fffaf4;
    color: var(--hnl-ink);
    border-color: var(--hnl-option-border);
    box-shadow: 0 8px 24px #34061910;
}
.banner .hnl-plan-card:hover,
.banner .hnl-plan-card:focus {
    border-color: #b78a44;
}
.banner .hnl-plan-name,
.banner .hnl-plan-price {
    color: var(--hnl-wine);
}
.banner .hnl-plan-validity {
    color: #745960;
}
.banner .hnl-plan-button {
    border: 1px solid var(--hnl-rose);
    border-radius: 26px;
    background: var(--hnl-rose);
    color: #fff;
}
.banner .hnl-plan-card:hover .hnl-plan-button,
.banner .hnl-plan-card:focus .hnl-plan-button {
    background: #920032;
    border-color: #920032;
}
.banner .hnl-plan-card.hnl-plan-current {
    background: #fff2d9;
    border-color: #b78a44;
}
.banner .hnl-current-badge {
    background: var(--hnl-wine);
    color: #fff;
}
.banner .hnl-plan-button.hnl-plan-button-disabled,
.banner .hnl-plan-current:hover .hnl-plan-button-disabled {
    background: #f0dfbd;
    color: var(--hnl-selected-text);
    border-color: #d0ae72;
}

/* Let long questions and payment forms use document scrolling, including in WebViews. */
.banner .account-form {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}
.banner .account-form .coupon-box {
    flex-wrap: wrap;
    align-items: center;
}
.banner .account-form .coupon-box .input-wrapper {
    flex: 1 1 180px;
    min-width: 0;
}
.banner .account-form .coupon-box input[type="text"] {
    width: 100%;
}
.banner .account-form .coupon-box svg,
.banner .form-box-input-with-eye .eye-holder svg {
    fill: var(--hnl-wine);
}
.banner .link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid var(--hnl-option-border);
    border-radius: 26px;
    background: var(--hnl-option-bg);
    color: var(--hnl-option-text);
    opacity: 1;
}
.banner .link-btn:hover {
    background: var(--hnl-selected-bg);
    color: var(--hnl-selected-text);
}

/* Editing uses the same answer controls on an ivory question surface. */
.banner .edit-profile-form .account-form .each-ques-box {
    background: #fffaf4;
    color: var(--hnl-ink);
    border: 1px solid var(--hnl-option-border);
    border-radius: 16px;
    max-height: none;
    overflow: visible;
}
.banner .edit-profile-form .account-form .each-ques-box .form-box,
.banner .edit-profile-form .account-form .each-ques-box label:not(.error),
.banner .edit-profile-form .account-form .each-ques-box .range-container {
    color: var(--hnl-wine);
}
.banner .edit-profile-form .account-form .each-ques-box .note-text,
.banner .edit-profile-form .account-form .each-ques-box .q-notes,
.banner .edit-profile-form .account-form .each-ques-box .range-container .min-val,
.banner .edit-profile-form .account-form .each-ques-box .range-container .max-val,
.banner .edit-profile-form .account-form .each-ques-box .range-container .current-val {
    color: #745960;
}
.banner .edit-profile-form .submit-div-wrapper {
    background: var(--hnl-wine);
    border-top: 1px solid #c79e63;
}
.banner .profile-details-wrapper .prf-details-wrap .prf-details-each {
    background: #fffaf4;
    color: var(--hnl-wine);
    border: 1px solid var(--hnl-option-border);
    border-radius: 12px;
}
.banner .profile-details-wrapper .prf-details-wrap .prf-details-each .det-label {
    color: #745960;
}
.banner .profile-details-right .prf-head-wrapper .prf-head-right .prf-action-links a {
    background: var(--hnl-rose);
    border-color: var(--hnl-rose);
    color: #fff;
}
.banner .profile-details-right .prf-head-wrapper .prf-head-right .prf-action-links a:hover,
.banner .profile-details-right .prf-head-wrapper .prf-head-right .prf-action-links a.active {
    background: var(--hnl-selected-bg);
    border-color: var(--hnl-selected-bg);
    color: var(--hnl-selected-text);
}
.banner .profile-details-right .prf-head-wrapper .prf-head-right .prf-action-links a:hover svg,
.banner .profile-details-right .prf-head-wrapper .prf-head-right .prf-action-links a.active svg {
    fill: var(--hnl-selected-text);
}
.banner .notify-wrapper a,
.banner .notify-wrapper .each-notification {
    background: #fffaf4;
    color: var(--hnl-wine);
    border: 1px solid var(--hnl-option-border);
    border-radius: 14px;
    opacity: 1;
}
.banner .notify-wrapper a.new {
    border-left: 4px solid #b78a44;
    background: #fff2d9;
}
.banner .tabs-wrapper a.active {
    background: var(--hnl-selected-bg);
    color: var(--hnl-selected-text);
}
.banner .tabs-wrapper a.active svg {
    fill: var(--hnl-selected-text);
}
.advertisements-wrapper a .text-holder {
    background: var(--hnl-wine);
    border-color: var(--hnl-wine);
}
.hnotifications-outer {
    background: #fff2d9;
    border-color: #c79e63;
}
.hnotifications-outer .hnotifications-wrapper,
.hnotifications-outer .hnotifications-wrapper a,
.hnotifications-home-outer .hnotifications-wrapper {
    color: var(--hnl-wine);
}
@media (max-width: 600px) {
    .banner .select-buttons a {
        padding: 12px;
        font-size: 14px;
    }
    .banner .plans-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .banner .plans-wrapper .each-plan {
        max-width: none;
        padding: 20px;
    }
    .alert-box,
    .banner .alert-box {
        gap: 10px;
        padding: 15px;
        font-size: 13px;
    }
}

/* Plan selection uses real POST forms while retaining the shared card layout. */
.hnl-plan-select-form { margin: 0; min-width: 0; width: 100%; display: flex; }
.hnl-plan-select-form > button { width: 100%; height: 100%; cursor: pointer; text-align: left; font: inherit; }
.hnl-plan-select-form .other-details { display: flex; justify-content: space-between; }
