/* restAgendyOnboarding -- visual arculat (pixel), demo-3/Agendy brand: Primary #292dc2,
   Secondary #0084e9, Poppins. Class names/markup unchanged (kipp's public.js binds to them). */

.agendy-signup {
    max-width: 760px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    color: #575a7b;
}

/* R4 login page: own root (the signup IIFE must NOT mount here); reuses .agendy-signup__* children */
.agendy-login {
    max-width: 480px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    color: #575a7b;
}
.agendy-login__alt { text-align: center; margin-top: 1.25rem; }
.agendy-login__alt a { color: #292dc2; font-weight: 500; }

.agendy-signup__steps {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0 0 3rem;
}
.agendy-signup__steps li {
    flex: 1;
    text-align: center;
    padding: 0 4px 14px;
    border-bottom: 3px solid #ececf6;
    color: #9497b8;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .3px;
}
.agendy-signup__steps li.is-active {
    border-color: #292dc2;
    color: #1f194c;
    font-weight: 600;
}

.agendy-signup__panel {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 16px;
    box-shadow: 0 5px 10px rgba(0, 9, 128, 0.035), 0 7px 18px rgba(0, 9, 128, 0.05);
    padding: 2.5rem;
}

.agendy-signup__title {
    margin: 0 0 1.5rem;
    color: #1f194c;
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
}

.agendy-signup__cycle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.agendy-signup__cycle > * {
    display: inline-flex;
    border: 1px solid #ececf6;
    border-radius: 30px;
    overflow: hidden;
}
.agendy-signup__cycle button {
    border: 0;
    background: #fff;
    color: #575a7b;
    padding: 10px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}
.agendy-signup__cycle button.is-active {
    background: linear-gradient(-45deg, #292dc2, #0084e9);
    color: #fff;
}

.agendy-signup__plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.agendy-signup__plan {
    border: 1px solid #efefef;
    border-radius: 14px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: box-shadow .2s ease, transform .2s ease;
}
.agendy-signup__plan:hover {
    box-shadow: 0 5px 10px rgba(0, 9, 128, 0.035), 0 7px 18px rgba(0, 9, 128, 0.08);
    transform: translateY(-4px);
}
.agendy-signup__plan-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #292dc2;
    margin: .5rem 0;
}
.agendy-signup__hint {
    text-align: center;
    color: #9497b8;
}

.agendy-signup__form { margin-top: .5rem; }
.agendy-signup__field { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 6px; }
.agendy-signup__field label { color: #1f194c; font-weight: 500; font-size: .9rem; }
.agendy-signup__field input {
    padding: 12px 14px;
    border: 1px solid #dcdcec;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s ease;
}
.agendy-signup__field input:focus {
    outline: none;
    border-color: #292dc2;
}
.agendy-signup__note { color: #9497b8; font-size: 13px; }

/* signup-UX field validation state (JS toggles .is-invalid on inputs, .is-error/.is-ok on the
   field message): red border + red message on invalid (e.g. email-taken), green on available.
   Uses the module's established error red (#dc2626, same as .agendy-signup__error). */
.agendy-signup__field input.is-invalid,
.agendy-signup__field select.is-invalid { border-color: #dc2626; }
.agendy-signup__field input.is-invalid:focus,
.agendy-signup__field select.is-invalid:focus { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.agendy-signup__fieldmsg { font-size: 13px; margin-top: 2px; }
.agendy-signup__fieldmsg.is-error { color: #dc2626; }
.agendy-signup__fieldmsg.is-ok { color: #16a34a; }

/* billing address block (functional layout only; visual polish -> pixel) */
.agendy-signup__billing { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; margin: 8px 0 16px; }
.agendy-signup__billing-title { font-size: 14px; font-weight: 600; padding: 0 6px; }
.agendy-signup__billing > .agendy-signup__note { display: block; margin-bottom: 12px; }
.agendy-signup__billing .agendy-signup__field:last-child { margin-bottom: 0; }
/* R1: let the [hidden] attr actually hide a field wrapper (class sets display:flex, which
   would otherwise override the UA [hidden] rule) -- needed for the dynamic tax field */
.agendy-signup__field[hidden] { display: none; }
/* R2: zip + city on one 2-column row (flex, no collapse) */
.agendy-signup__row { display: flex; gap: 12px; }
.agendy-signup__row > .agendy-signup__field { margin-bottom: 16px; }
.agendy-signup__field--zip { flex: 0 0 35%; min-width: 0; }
.agendy-signup__field--city { flex: 1 1 auto; min-width: 0; }
/* R3: country select matches the input styling */
.agendy-signup__field select {
    padding: 12px 14px;
    border: 1px solid #dcdcec;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease;
}
.agendy-signup__field select:focus { outline: none; border-color: #292dc2; }

.agendy-signup__choose,
.agendy-signup__submit {
    background: #292dc2;
    background: linear-gradient(-45deg, #292dc2, #0084e9);
    color: #fff;
    border: 0;
    border-radius: 30px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity .2s ease;
}
.agendy-signup__choose:hover,
.agendy-signup__submit:hover { opacity: .9; color: #fff; }
.agendy-signup__submit:disabled { opacity: .5; cursor: not-allowed; }

.agendy-signup__back {
    background: none;
    border: 0;
    color: #292dc2;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
}

/* skippable-card secondary/ghost button (functional layout only; visual polish -> pixel) */
.agendy-signup__skip {
    display: block;
    margin: 12px auto 0;
    background: none;
    border: 0;
    color: #575a7b;
    font-weight: 500;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}
.agendy-signup__skip:hover { color: #292dc2; }

.agendy-signup__card {
    border: 1px solid #dcdcec;
    border-radius: 10px;
    padding: 16px;
    margin: 1.25rem 0;
    background: #fbfbff;
}

.agendy-signup__error {
    color: #dc2626;
    font-size: 14px;
    margin: .5rem 0 0;
}

.agendy-signup__summary {
    text-align: center;
    color: #575a7b;
    margin-bottom: 1rem;
}

.agendy-signup__done {
    text-align: center;
    color: #575a7b;
    margin-bottom: 1.5rem;
}
section[data-panel="done"] .agendy-signup__title,
section[data-panel="done"] .agendy-signup__done { text-align: center; }
section[data-panel="done"] .agendy-signup__submit {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

@media (max-width: 575px) {
    .agendy-signup__panel { padding: 1.75rem 1.25rem; }
    .agendy-signup__steps li { font-size: 12px; }
}
