/* ===== Pricing Page ===== */

:root {
    --clr-text-primary: #162A39;
    --clr-text-secondary: #5A6872;
    --clr-text-muted: #8C9AA6;
    --clr-accent: #3085D6;
    --clr-accent-hover: #2670B8;
    --clr-accent-light: #F5F9FD;
    --clr-accent-border: #B8D8F8;
    --clr-accent-bg: #E8F2FC;
    --clr-border: #E8EDF0;
    --clr-border-dark: #C2CCD4;
    --clr-bg-page: #E8EEF4;
    --clr-bg-hover: #F5F7F9;
    --clr-bg-white: #fff;
    --clr-error: #E74C3C;
}

.pricing-page {
    position: relative;
    font-family: Roboto, "Segoe UI", Arial, sans-serif;
    color: var(--clr-text-primary);
    background: var(--clr-bg-page);
    padding: 120px 20px 340px;
    overflow: hidden;
}

.pricing-page__container {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Breadcrumbs --- */
.pricing-page .breadcrumbs__list {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 20px 0 28px;
    font-size: 14px;
}

.pricing-page .breadcrumbs__item {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 25px;
}

.pricing-page .breadcrumbs__item::after {
    content: "";
    position: absolute;
    right: 10px;
    transform: rotate(-45deg);
    width: 3px;
    height: 3px;
    border-bottom: 2px solid var(--clr-text-primary);
    border-right: 2px solid var(--clr-text-primary);
}

.pricing-page .breadcrumbs__item:last-child {
    padding-right: 0;
}

.pricing-page .breadcrumbs__item:last-child::after {
    content: none;
}

.pricing-page .breadcrumbs__link {
    text-decoration: none;
    color: var(--clr-text-primary);
}

.pricing-page .breadcrumbs__link-current {
    color: var(--clr-text-muted);
}

/* --- Card: two-column layout --- */
.pricing-page__card {
    position: relative;
    z-index: 2;
}

.pricing-card-wizard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--clr-bg-white);
    box-shadow: none;
}

/* --- Left column (text, vertically centered) --- */
.wizard-left {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pricing-page__title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--clr-text-primary);
}

.pricing-page__desc {
    margin: 0;
    font-size: 19px;
    line-height: 1.7;
    color: var(--clr-text-secondary);
}

/* --- Right column (step header + form) --- */
.wizard-right {
    padding: 36px 40px;
}

/* --- Step header --- */
.wizard-step__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.wizard-step__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wizard-step__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--clr-text-primary);
}

.wizard-step__question {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--clr-text-primary);
}

/* --- Database grid (5 columns, checkbox multi-select) --- */
.wizard-db-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.wizard-db-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard-db-option {
    display: flex;
}

.wizard-db-option__box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border: 1px solid var(--clr-border);
    border-radius: 2px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 12px;
    font-weight: 500;
    color: var(--clr-text-secondary);
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
}

.wizard-db-option__box img {
    pointer-events: none;
}

.wizard-db-option__box--other {
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.wizard-db-option__box::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border: 1px solid var(--clr-border-dark);
    border-radius: 3px;
    background: var(--clr-bg-white);
    transition: background 0.2s, border-color 0.2s;
}

.wizard-db-option__box:hover {
    border-color: var(--clr-border-dark);
}

.wizard-db-option input:checked + .wizard-db-option__box {
    border-color: var(--clr-accent);
    background: var(--clr-accent-light);
}

.wizard-db-option input:checked + .wizard-db-option__box::after {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M10 3L5 9L2 6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- DB count: segmented control (no gaps, joined) --- */
.wizard-db-count {
    display: flex;
    margin-bottom: 24px;
}

.wizard-db-count__option {
    flex: 1;
}

.wizard-db-count__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard-db-count__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid var(--clr-border);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-text-secondary);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.wizard-db-count__option:not(:first-child) .wizard-db-count__btn {
    margin-left: -1px;
}

.wizard-db-count__btn:hover {
    background: var(--clr-bg-hover);
}

.wizard-db-count__option input:checked + .wizard-db-count__btn {
    border-color: var(--clr-accent-border);
    background: var(--clr-accent-bg);
    color: var(--clr-accent);
    position: relative;
    z-index: 1;
}

/* --- Cloud platform grid (with radio dot + label) --- */
.wizard-cloud-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.wizard-cloud-option {
    position: relative;
}

.wizard-cloud-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard-cloud-option__box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 76px;
    border: 1px solid var(--clr-border);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: none;
    -webkit-user-select: none;
}

.wizard-cloud-option__box img {
    pointer-events: none;
}

.wizard-cloud-option__box::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border: 1px solid var(--clr-border-dark);
    border-radius: 50%;
    background: var(--clr-bg-white);
    transition: background 0.2s, border-color 0.2s;
}

.wizard-cloud-option__label {
    font-size: 11px;
    font-weight: 500;
    color: var(--clr-text-secondary);
}

.wizard-cloud-option__box:hover {
    border-color: var(--clr-border-dark);
}

.wizard-cloud-option input:checked + .wizard-cloud-option__box {
    border-color: var(--clr-accent);
    background: var(--clr-accent-light);
}

.wizard-cloud-option input:checked + .wizard-cloud-option__box::after {
    border-color: var(--clr-accent);
    background: var(--clr-accent);
    box-shadow: inset 0 0 0 2px var(--clr-bg-white);
}

/* --- Next button --- */
.wizard-step__footer {
    display: flex;
    justify-content: flex-end;
}

.wizard-btn-next {
    padding: 12px 32px;
    border: none;
    border-radius: 2px;
    background: var(--clr-accent);
    color: var(--clr-bg-white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.wizard-btn-next:hover {
    background: var(--clr-accent-hover);
}


/* --- Validation error highlight --- */
.wizard-validation-error {
    outline: 2px solid var(--clr-error);
    outline-offset: 2px;
    border-radius: 2px;
}

.wizard-error-text {
    display: block;
    font-size: 14px;
    color: var(--clr-error);
    margin-top: 2px;
}

.wizard-db-grid.wizard-validation-error {
    margin-bottom: 4px;
}

.wizard-db-grid + .wizard-error-text {
    margin-bottom: 16px;
}

.wizard-cloud-grid.wizard-validation-error {
    margin-bottom: 4px;
}

/* --- Step 2: Contact form --- */
.wizard-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.wizard-form__field {
    display: flex;
    flex-direction: column;
}

.wizard-form__field--full {
    margin-bottom: 24px;
}

.wizard-form__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--clr-text-secondary);
    margin-bottom: 6px;
}

.wizard-form__req {
    color: var(--clr-accent);
}

.wizard-form__input {
    padding: 12px 14px;
    border: 1px solid var(--clr-border);
    border-radius: 2px;
    font-size: 14px;
    font-family: inherit;
    color: var(--clr-text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.wizard-form__input:focus {
    border-color: var(--clr-accent);
}

.wizard-form__input--error {
    border-color: var(--clr-error);
}

.wizard-form__textarea {
    padding: 12px 14px;
    border: 1px solid var(--clr-border);
    border-radius: 2px;
    font-size: 14px;
    font-family: inherit;
    color: var(--clr-text-primary);
    outline: none;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.wizard-form__textarea:focus {
    border-color: var(--clr-accent);
}

/* --- License checkbox --- */
.wizard-form__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 28px;
    user-select: none;
    -webkit-user-select: none;
}

.wizard-form__checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard-form__checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid var(--clr-border-dark);
    border-radius: 3px;
    background: var(--clr-bg-white);
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}

.wizard-form__checkbox input:checked + .wizard-form__checkmark {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
}

.wizard-form__checkbox input:checked + .wizard-form__checkmark::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid var(--clr-bg-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wizard-form__checkbox--error .wizard-form__checkmark {
    border-color: var(--clr-error);
}

.wizard-form__checkbox-text {
    font-size: 18px;
    color: var(--clr-text-primary);
}

.wizard-form__link {
    color: var(--clr-accent);
    text-decoration: none;
}

.wizard-form__link:hover {
    text-decoration: underline;
}

/* --- Footer with Back + Submit --- */
.wizard-step__footer--between {
    justify-content: space-between;
}

.wizard-btn-back {
    padding: 12px 32px;
    border: 1px solid var(--clr-border);
    border-radius: 2px;
    background: var(--clr-bg-white);
    color: var(--clr-text-primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.wizard-btn-back:hover {
    background: var(--clr-bg-hover);
    border-color: var(--clr-border-dark);
}

.wizard-btn-submit {
    padding: 12px 32px;
    border: none;
    border-radius: 2px;
    background: var(--clr-accent);
    color: var(--clr-bg-white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.wizard-btn-submit:hover {
    background: var(--clr-accent-hover);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .pricing-page {
        padding-top: 100px;
    }

    .pricing-card-wizard {
        grid-template-columns: 1fr;
    }

    .wizard-left {
        padding: 28px;
    }

    .wizard-right {
        padding: 28px;
    }

    .pricing-page__title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .pricing-page {
        padding-top: 80px;
    }

    .pricing-page__title {
        font-size: 28px;
    }

    .wizard-left,
    .wizard-right {
        padding: 20px;
    }

    .wizard-db-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wizard-db-count {
        flex-direction: column;
    }

    .wizard-db-count__option:not(:first-child) .wizard-db-count__btn {
        margin-left: 0;
        margin-top: -1px;
    }

    .wizard-cloud-grid {
        flex-wrap: wrap;
    }

    .wizard-form__row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
