/* DVS-578 Business Storage / Business Workspace subscription form: white with red accents */
.bp-form {
    --bp-red: #F23047;
    --bp-red-hover: #CC1026;
    --bp-ink: #1E1E1E;
    --bp-text: #575757;
    --bp-line: #E4E4E4;
    --bp-soft: #FAFAFA;

    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 64px 24px;
    color: var(--bp-ink);
    font-size: 15px;
    line-height: 1.5;
    scroll-margin-top: 80px;
    box-sizing: border-box;
}

.bp-form *,
.bp-form *::before,
.bp-form *::after {
    box-sizing: border-box;
}

.bp-form [hidden] {
    display: none !important;
}

.bp-form h2,
.bp-form h3 {
    margin: 0;
    color: var(--bp-ink);
    font-weight: bold;
    letter-spacing: -0.02em;
}

.bp-form p {
    margin: 0;
}

.bp-form__head {
    max-width: 680px;
    margin: 0 auto 32px;
    text-align: center;
}

.bp-form__head h2 {
    margin-bottom: 12px;
    font-size: 34px;
    line-height: 1.2;
}

.bp-form__eyebrow {
    margin-bottom: 10px !important;
    color: var(--bp-red);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bp-form__lead {
    color: var(--bp-text);
    font-size: 17px;
}

.bp-form__card {
    border: 1px solid var(--bp-line);
    border-radius: 16px;
    background: #FFFFFF;
}

.bp-form__card[data-bp-step="configure"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.bp-form__config {
    padding: 28px;
}

.bp-form__group {
    margin: 0 0 26px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.bp-form__group legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
}

.bp-form__group legend label {
    font-size: inherit;
    font-weight: bold;
    color: inherit;
}

.bp-form__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--bp-red);
    color: var(--bp-red);
    font-size: 13px;
}

.bp-form__plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bp-form__plan {
    position: relative;
    display: block;
    cursor: pointer;
}

.bp-form__plan input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bp-form__plan-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 16px 16px 16px 44px;
    border: 1px solid var(--bp-line);
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bp-form__plan-body::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 16px;
    width: 16px;
    height: 16px;
    border: 2px solid #BDBDBD;
    border-radius: 50%;
    background: #FFFFFF;
}

.bp-form__plan input:checked + .bp-form__plan-body {
    border-color: var(--bp-red);
    box-shadow: 0 0 0 1px var(--bp-red);
}

.bp-form__plan input:checked + .bp-form__plan-body::before {
    border-color: var(--bp-red);
    background: radial-gradient(circle, var(--bp-red) 0 4px, #FFFFFF 5px);
}

.bp-form__plan input:focus-visible + .bp-form__plan-body {
    outline: 2px solid var(--bp-red);
    outline-offset: 2px;
}

.bp-form__plan-name {
    font-size: 16px;
    font-weight: bold;
}

.bp-form__plan-price {
    color: var(--bp-text);
    font-size: 14px;
}

.bp-form__plan-price b {
    color: var(--bp-ink);
    font-size: 18px;
}

.bp-form__plan-text {
    color: var(--bp-text);
    font-size: 14px;
}

.bp-form__counter {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--bp-line);
    border-radius: 12px;
    overflow: hidden;
}

.bp-form__counter-button {
    width: 48px;
    min-height: 48px;
    border: 0;
    background: var(--bp-soft);
    color: var(--bp-ink);
    font-size: 22px;
    cursor: pointer;
}

.bp-form__counter-button:hover:not(:disabled) {
    color: var(--bp-red);
}

.bp-form__counter-button:disabled {
    color: #C4C4C4;
    cursor: default;
}

.bp-form__counter input {
    width: 72px;
    border: 0;
    border-left: 1px solid var(--bp-line);
    border-right: 1px solid var(--bp-line);
    color: var(--bp-ink);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    -moz-appearance: textfield;
}

.bp-form__counter input::-webkit-outer-spin-button,
.bp-form__counter input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.bp-form__hint {
    margin-top: 8px !important;
    color: var(--bp-text);
    font-size: 13px;
}

.bp-form__counter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.bp-form__counter-unit {
    color: var(--bp-text);
    font-size: 14px;
}

.bp-form__counter-unit b {
    color: var(--bp-ink);
}

.bp-form__period {
    color: var(--bp-text);
    font-size: 14px;
}

/* Summary */
.bp-form__summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-left: 1px solid var(--bp-line);
    border-radius: 0 16px 16px 0;
    background: var(--bp-soft);
}

.bp-form__summary-title {
    font-size: 16px;
    font-weight: bold;
}

.bp-form__summary-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bp-form__summary-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--bp-text);
    font-size: 14px;
}

.bp-form__summary-lines b {
    color: var(--bp-ink);
    white-space: nowrap;
}

.bp-form__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bp-line);
    font-weight: bold;
}

.bp-form__total b {
    font-size: 24px;
    white-space: nowrap;
}

.bp-form__vat-note {
    color: var(--bp-text);
    font-size: 13px;
}

.bp-form__vat-sample {
    display: block;
    margin-bottom: 2px;
    color: var(--bp-ink);
}

.bp-form__mobile-bar {
    display: none;
}

.bp-form__alt {
    color: var(--bp-text);
    font-size: 14px;
    text-align: center;
}

.bp-form .bp-form__alt a {
    color: var(--bp-red);
    font-weight: bold;
    text-decoration: none;
}

.bp-form .bp-form__alt a:hover {
    color: var(--bp-red-hover);
    text-decoration: underline;
}

/* Buttons */
.bp-form__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--bp-ink);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--bp-ink);
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.bp-form__button--primary {
    border-color: var(--bp-red);
    background: var(--bp-red);
    color: #FFFFFF;
}

.bp-form__button--primary:hover {
    border-color: var(--bp-red-hover);
    background: var(--bp-red-hover);
    color: #FFFFFF;
}

.bp-form__button:focus-visible,
.bp-form__link:focus-visible {
    outline: 2px solid var(--bp-red);
    outline-offset: 3px;
}

.bp-form__link {
    padding: 8px 4px;
    border: 0;
    background: none;
    color: var(--bp-text);
    font-size: 15px;
    text-decoration: underline;
    cursor: pointer;
}

/* Payer, review, payment, notice, success */
.bp-form__payer,
.bp-form__notice,
.bp-form__success {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px;
}

.bp-form__payer h3,
.bp-form__review h3,
.bp-form__success h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.bp-form__payer-type {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 16px 0;
}

.bp-form__payer-type label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    cursor: pointer;
}

/* The site styles hide native checkboxes and radios; these two stay native and visible */
.bp-form .bp-form__payer-type input,
.bp-form .bp-form__confirm input {
    display: inline-block !important;
    position: static !important;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-appearance: auto;
    appearance: auto;
    accent-color: var(--bp-red);
}

.bp-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.bp-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    font-size: 14px;
}

.bp-form__field span {
    color: var(--bp-text);
}

.bp-form__field input,
.bp-form__field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #CFCFCF;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--bp-ink);
    font-size: 15px;
}

.bp-form__field input:focus,
.bp-form__field select:focus {
    border-color: var(--bp-red);
    outline: none;
    box-shadow: 0 0 0 1px var(--bp-red);
}

.bp-form__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.bp-form__error {
    margin-top: 14px !important;
    padding: 10px 14px;
    border-left: 3px solid var(--bp-red);
    background: #FFF5F6;
    color: #A50E20;
    font-size: 14px;
}

.bp-form__pay {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.bp-form__review {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border-right: 1px solid var(--bp-line);
    background: var(--bp-soft);
    border-radius: 16px 0 0 16px;
}

.bp-form__review-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--bp-text);
    font-size: 14px;
}

.bp-form__review-row b {
    color: var(--bp-ink);
}

.bp-form__card-payment {
    padding: 28px;
    min-width: 0;
}

.bp-form__confirm {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    color: var(--bp-text);
    font-size: 14px;
    cursor: pointer;
}

.bp-form__confirm input {
    flex: none;
    margin-top: 2px;
}

.bp-form__notice p + p,
.bp-form__success p + p {
    margin-top: 12px;
}

.bp-form__notice-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px !important;
}

.bp-form__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    z-index: 5;
}

.bp-form__loading span {
    width: 36px;
    height: 36px;
    border: 3px solid #F3C4CA;
    border-top-color: var(--bp-red);
    border-radius: 50%;
    animation: bp-form-spin 0.8s linear infinite;
}

@keyframes bp-form-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
    .bp-form__card[data-bp-step="configure"],
    .bp-form__pay {
        grid-template-columns: minmax(0, 1fr);
    }

    .bp-form__summary {
        border-left: 0;
        border-top: 1px solid var(--bp-line);
        border-radius: 0 0 16px 16px;
    }

    .bp-form__review {
        border-right: 0;
        border-bottom: 1px solid var(--bp-line);
        border-radius: 16px 16px 0 0;
    }
}

@media (max-width: 860px) {
    /* Shown by the script while the plan options are on screen and the summary is not */
    .bp-form__mobile-bar.is-visible {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--bp-line);
        background: #FFFFFF;
        box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
        font-size: 13px;
        color: var(--bp-text);
    }

    .bp-form__mobile-bar b {
        display: block;
        color: var(--bp-ink);
        font-size: 20px;
    }

    .bp-form__mobile-bar .bp-form__button {
        flex: none;
        min-height: 44px;
        padding: 10px 18px;
    }
}

@media (max-width: 600px) {
    .bp-form {
        padding: 44px 16px;
    }

    .bp-form__head h2 {
        font-size: 26px;
    }

    .bp-form__config,
    .bp-form__summary,
    .bp-form__payer,
    .bp-form__notice,
    .bp-form__success,
    .bp-form__review,
    .bp-form__card-payment {
        padding: 20px 16px;
    }

    .bp-form__plans,
    .bp-form__fields {
        grid-template-columns: minmax(0, 1fr);
    }


    .bp-form__summary .bp-form__button,
    .bp-form__actions .bp-form__button {
        width: 100%;
    }

    .bp-form__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}
