/* Register / account (and related) — loaded via base_redesign.html so it works even when /dist/app.css is not rebuilt */

/* Honeypot: visually hidden; keep in DOM as a normal text field (not type="hidden") */
.env-register-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.env-form-grid .env-form-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.env-form-grid .env-form-row-radio {
    align-items: start;
}

.env-form-plan-section .env-form-row.env-form-row-radio {
    grid-template-columns: minmax(0, 1fr);
}

.env-form-plan-section .env-plan-field {
    max-width: none;
    width: 100%;
    min-width: 0;
}

/* Space after the full Plan information block (intro + currency + cards) */
.env-form-plan-section {
    margin-bottom: 3rem;
}

/* —— Plan picker: currency toggle + plan cards (register + account) —— */

.env-plan-picker {
    margin-bottom: 0.5rem;
}

.env-plan-picker__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.35rem;
}

/* No intro copy: keep currency toggle on the right */
.env-plan-picker__header:has(.env-plan-picker__intro:empty) {
    justify-content: flex-end;
}

.env-plan-picker__intro {
    flex: 1 1 14rem;
    min-width: 0;
}

.env-plan-picker__intro:empty {
    display: none;
}

.env-plan-picker__currency-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    flex-shrink: 0;
}

.env-plan-picker__currency-hint {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.02em;
}

.env-currency-segmented {
    display: inline-flex;
    align-items: stretch;
    padding: 3px;
    background: #e2e8f0;
    border-radius: 999px;
    gap: 2px;
}

.env-currency-segmented__btn {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.env-currency-segmented__btn input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.env-currency-segmented__label {
    display: block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.env-currency-segmented__btn:hover .env-currency-segmented__label {
    color: #334155;
}

.env-currency-segmented__btn:has(input:checked) .env-currency-segmented__label {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.env-currency-segmented__btn:has(input:focus-visible) .env-currency-segmented__label {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.env-plan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 991px) {
    .env-plan-cards {
        grid-template-columns: 1fr;
    }
}

.env-plan-card {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    height: 100%;
}

.env-plan-card__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.env-plan-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    min-height: 8.75rem;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.env-plan-card:hover .env-plan-card__body {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.env-plan-card:has(.env-plan-card__input:checked) .env-plan-card__body {
    border-color: #2563eb;
    background: linear-gradient(165deg, #f8fafc 0%, #eff6ff 100%);
    box-shadow: 0 0 0 1px #2563eb, 0 10px 28px rgba(37, 99, 235, 0.12);
}

.env-plan-card:has(.env-plan-card__input:focus-visible) .env-plan-card__body {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.env-plan-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
}

.env-plan-card__title :last-child {
    margin-bottom: 0;
}

.env-plan-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: -0.02em;
}

.env-plan-card__price-inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.env-plan-card__monthly-note {
    display: block;
    margin-top: 0.65rem;
    max-width: 100%;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    color: #475569;
}

.env-plan-card__monthly-note :last-child {
    margin-bottom: 0;
}

.env-plan-card__cc {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
}

.env-plan-card__price--muted {
    font-weight: 500;
    color: #94a3b8;
}

.env-plan-card__price span:empty {
    display: none;
}

@media (max-width: 767px) {
    .env-plan-picker__header {
        flex-direction: column;
        align-items: stretch;
    }

    .env-plan-picker__currency-wrap {
        justify-content: space-between;
    }
}

.env-form-grid .env-form-label {
    font-weight: 600;
    margin: 0;
}

.env-form-grid .env-form-field input,
.env-form-grid .env-form-field select,
.env-form-grid .env-form-field textarea {
    width: 100%;
    max-width: 560px;
}

.env-form-grid .env-form-field label {
    margin-right: 14px;
}

.env-form-grid .env-form-actions {
    margin-top: 8px;
}

@media (max-width: 767px) {
    .env-form-grid .env-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .env-form-other-section .env-form-row:not(.env-form-row-consent) {
        grid-template-columns: 1fr;
    }
}

.env-form-grid .env-form-row-consent {
    align-items: start;
}

.env-form-grid .env-consent-label {
    font-weight: 400;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 560px;
}

.env-form-grid .env-consent-label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.env-form-section-intro :last-child {
    margin-bottom: 0;
}

.env-simple-banner .banner-content {
    align-items: center;
}

.env-simple-banner .banner-heading {
    margin-bottom: 0;
}

.env-form-grid .env-currency-field {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Register / account: spam + consents below two-column blocks */
.env-form-other-section .env-form-row:not(.env-form-row-consent) {
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    align-items: start;
}

.env-form-other-section .env-form-row-consent {
    grid-template-columns: minmax(0, 1fr);
}

.env-form-other-section .env-form-field {
    max-width: none;
}

.env-form-other-section .env-consent-label {
    max-width: none;
}

.env-two-col-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    /* Space after the whole User + Company block (before Other / actions) */
    margin-bottom: 2.5rem;
}

.env-two-col-section .env-form-row {
    grid-template-columns: 170px minmax(0, 1fr);
}

.env-two-col-section > h3 {
    margin-bottom: 1.5rem;
}

/* Space after each full column (heading + all fields), desktop and stacked */
.env-two-col-section {
    padding-bottom: 2.25rem;
}

@media (max-width: 991px) {
    .env-two-col-sections {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
