.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group > label,
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: .3px;
}

.form-label .required,
.form-group label .required {
    color: var(--rose);
    margin-left: 3px;
}

.form-control,
/* Unqualified: this theme ships no Bootstrap, so its own markup emits plain
   <input type="text"> with no .form-control. Requiring that class here left
   every text field in the theme — name, address, domain, search — rendering as
   a raw browser input while the neighbouring email and password fields were
   styled. */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="search"],
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    appearance: none;
    -webkit-appearance: none;
}

textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%239C7686' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 11px;
    padding-right: 40px;
    cursor: pointer;
}

select option {
    background: var(--bg-elevated);
    color: #fff;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(255, 61, 119, .12);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-dim);
}

.form-control[readonly],
.form-control[disabled],
input[readonly],
input[disabled],
select[disabled],
textarea[readonly] {
    opacity: .6;
    cursor: not-allowed;
}

.form-help {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 7px;
}

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

.field-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 6px;
}

.input-group {
    display: flex;
}

.input-group .form-control {
    border-radius: var(--radius) 0 0 var(--radius);
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-strong);
    border-left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-dim);
    font-size: 13px;
    white-space: nowrap;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 12px;
    line-height: 1.5;
}

.check input[type="checkbox"],
.check input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .04);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: all .2s var(--ease);
}

.check input[type="radio"] {
    border-radius: 50%;
}

.check input[type="checkbox"]:checked,
.check input[type="radio"]:checked {
    background: var(--gradient-brand);
    border-color: transparent;
}

.check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: #fff;
    border-radius: 50%;
}

.check input:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 2px;
}

.check a {
    color: var(--rose);
}

.radio-card-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.radio-card {
    position: relative;
    display: block;
    cursor: pointer;
}

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

.radio-card .radio-card-body {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .03);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: all .2s var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.radio-card:hover .radio-card-body {
    border-color: rgba(255, 61, 119, .4);
}

.radio-card input:checked + .radio-card-body {
    border-color: var(--rose);
    background: rgba(255, 61, 119, .09);
    box-shadow: 0 0 0 1px var(--rose);
}

.radio-card input:focus-visible + .radio-card-body {
    outline: 2px solid var(--rose);
    outline-offset: 2px;
}

.radio-card .radio-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.radio-card .radio-card-desc {
    font-size: 12px;
    color: var(--text-dim);
}

.radio-card .radio-card-price {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--rose);
    margin-top: auto;
    padding-top: 6px;
}

.radio-card .radio-card-logo {
    max-height: 28px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
}

.auth-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px 34px;
    box-shadow: var(--shadow-card);
}

.auth-card .auth-head {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card .auth-head h1 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-card .auth-head p {
    font-size: 13px;
    color: var(--text-dim);
}

.auth-alt {
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 22px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin: 26px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 26px;
}

.form-actions-split {
    justify-content: space-between;
}

.password-strength {
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .07);
    margin-top: 8px;
    overflow: hidden;
}

.password-strength span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width .3s var(--ease), background .3s var(--ease);
}

.fieldset-title {
    font-family: var(--font-display);
    font-size: 14px;
    color: #fff;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

#captchaFormGroup,
.chispa-captcha {
    margin: 18px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.chispa-captcha .form-control {
    max-width: 260px;
}

.chispa-captcha img {
    border-radius: var(--radius-sm);
}

.social-signin {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-signin a,
.social-signin button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all .2s var(--ease);
}

.social-signin a:hover,
.social-signin button:hover {
    background: var(--glass-strong);
    color: #fff;
}

/* ===== INTERNATIONAL PHONE INPUT =====
   WHMCS renders phone fields through intl-tel-input, whose stylesheet is bundled
   inside the six theme's all.min.css. Chispa cannot load that file — it carries
   the whole Bootstrap layer — so the widget arrived completely unstyled and
   spilled the entire country list onto the page as a bullet list. These rules
   cover what the widget needs, in Chispa's own idiom.

   The flag sprite is deliberately left out: it lives in six's asset folder, and
   a missing sprite reads worse than no flag. The dial code stands in for it. */

.intl-tel-input {
    position: relative;
    display: block;
    width: 100%;
}

.intl-tel-input input[type="tel"],
.intl-tel-input input[type="text"] {
    width: 100%;
    padding-left: 72px;
}

.intl-tel-input.iti-sdc-3 input[type="tel"],
.intl-tel-input.iti-sdc-3 input[type="text"] { padding-left: 82px; }

.intl-tel-input.iti-sdc-4 input[type="tel"],
.intl-tel-input.iti-sdc-4 input[type="text"] { padding-left: 92px; }

.intl-tel-input .flag-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 2;
}

.intl-tel-input .selected-flag {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 10px 0 16px;
    cursor: pointer;
}

.intl-tel-input .iti-flag {
    display: none;
}

.intl-tel-input .selected-dial-code {
    font-size: 14px;
    color: var(--text-muted);
}

.intl-tel-input .iti-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-dim);
}

.intl-tel-input .iti-arrow.up {
    border-top: 0;
    border-bottom: 5px solid var(--text-dim);
}

.intl-tel-input .country-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    min-width: 290px;
    max-height: 240px;
    overflow-y: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

/* The widget toggles this class; without it the list is permanently expanded. */
.intl-tel-input .country-list.hide {
    display: none;
}

.intl-tel-input .country-list .country {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.intl-tel-input .country-list .country.highlight,
.intl-tel-input .country-list .country:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.intl-tel-input .country-list .divider {
    height: 1px;
    padding: 0;
    margin: 6px 0;
    background: var(--line);
}

.intl-tel-input .country-list .dial-code {
    margin-left: auto;
    color: var(--text-dim);
}
