/* Layout helpers for Jobzio authentication pages.
   Button and link colors come from styles-rtl.css. */

.auth-frame-wrapper {
    height: auto;
    min-height: 100vh;
}

.auth-logo {
    max-height: 72px;
    width: auto;
}

.maxw-560px {
    max-width: 560px;
}

.maxw-640px {
    max-width: 640px;
}

input[name="phone_number"] {
    direction: ltr;
    text-align: right;
}

.form-control.error,
.form-select.error,
select.error,
.otp-input.error {
    border-color: var(--bs-danger);
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    direction: ltr;
}

.otp-input {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    padding: 0;
    direction: ltr;
}

.otp-input.filled {
    border-color: var(--bs-primary);
}

.phone-display {
    direction: ltr;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.role-cards {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .role-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.role-card {
    display: block;
    cursor: pointer;
    margin: 0;
    height: 100%;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 1.25rem 1rem;
    text-align: center;
    background: var(--bs-body-bg);
}

.role-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-card .card-content {
    height: 100%;
}

.role-card .role-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.role-card .role-name {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.role-card .role-desc {
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.role-card.is-selected {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.06);
}

.role-card .role-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group > label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 0.85rem;
    color: var(--bs-primary);
    z-index: 2;
    pointer-events: none;
}

.input-wrapper .form-control,
.input-wrapper select {
    padding-inline-start: 2.4rem;
}

.input-wrapper select,
.form-group select {
    display: block;
    width: 100%;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 2.4rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.phone-verified {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--bs-border-radius);
    background: rgba(var(--bs-primary-rgb), 0.08);
    direction: ltr;
    justify-content: flex-end;
}

.radio-group {
    display: flex;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    cursor: pointer;
}

.step-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.step-nav .btn {
    flex: 1;
}

.reg-step,
.location-section {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.inner-progress-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.inner-step {
    text-align: center;
    min-width: 4.5rem;
}

.inner-step-circle {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bs-border-color);
    font-weight: 700;
    font-size: 0.85rem;
}

.inner-step.active .inner-step-circle,
.inner-step.completed .inner-step-circle {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.inner-step-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.inner-step-line {
    flex: 1;
    height: 2px;
    background: var(--bs-border-color);
    margin-top: 1rem;
}

.inner-step-line.completed {
    background: var(--bs-primary);
}

.referral-toggle {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--bs-primary);
    font-weight: 600;
}

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-suggestions {
    display: none;
    position: absolute;
    z-index: 20;
    inset-inline: 0;
    top: 100%;
    max-height: 240px;
    overflow: auto;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow);
}

.autocomplete-suggestions.show {
    display: block;
}

.suggestion-item,
.suggestion-empty,
.suggestion-loading,
.suggestion-group-title {
    padding: 0.55rem 0.75rem;
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.suggestion-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
}

.suggestion-item.already-selected {
    opacity: 0.55;
}

.specialty-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.specialty-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.85rem;
}

.specialty-chip-remove {
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    padding: 0;
}

.step-error,
.error-message {
    color: var(--bs-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.help-text {
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.info-box,
.referral-banner {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border-radius: var(--bs-border-radius);
    background: var(--bs-tertiary-bg);
    margin-bottom: 1rem;
}

.required {
    color: var(--bs-danger);
}

.public-footer-enamad {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 12px 8px;
}

.public-footer-enamad img {
    max-width: 100%;
    height: auto;
    display: block;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-switch a {
    color: var(--bs-secondary);
}

.auth-page-footer {
    padding: 8px 16px 32px;
    text-align: center;
}
