/**
 * Tool Spire - minimal aMember form markup (replaces amember.css form/table rules on public pages)
 */

.am-form {
    max-width: 100%;
}

.am-form .am-row {
    display: block;
    margin-bottom: 1rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.am-form .am-row:before,
.am-form .am-row:after {
    display: none;
}

.am-form .am-element-title {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ts-text, #303030);
}

.am-form .am-element {
    display: block;
    width: 100%;
}

.am-form .am-element input[type="text"],
.am-form .am-element input[type="email"],
.am-form .am-element input[type="password"],
.am-form .am-element input[type="tel"],
.am-form .am-element input[type="number"],
.am-form .am-element select,
.am-form .am-element textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    border: 1px solid var(--ts-border, #e2e6ed);
    border-radius: 8px;
    background: #fff;
    color: var(--ts-text, #303030);
}

.am-form .am-row-buttons .am-element {
    margin-top: 0.5rem;
}

.am-form .reqnote,
.am-form .am-form-required-note {
    font-size: 0.8125rem;
    color: var(--ts-text-muted, #6b7280);
    margin-top: 0.75rem;
}

.am-invoice-summary table,
.invoice-summary table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
}

.am-invoice-summary td,
.am-invoice-summary th,
.invoice-summary td,
.invoice-summary th {
    border: 0;
    padding: 0.35rem 0;
    background: transparent;
}

.am-body-content .am-errors,
.am-form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    padding: 12px 16px;
    margin-bottom: 1rem;
}
