.rsf-form { max-width: 100%; width: 100%; box-sizing: border-box; }
.rsf-fields-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px; /* keep in sync with $gap_px in RSF_Render::field_width_style() */
}
.rsf-field {
    margin-bottom: 16px;
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.rsf-field-label { display: block; margin-bottom: 4px; font-weight: 600; }
.rsf-form input:not([type="checkbox"]), .rsf-form select, .rsf-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.rsf-field.rsf-field-invalid input,
.rsf-field.rsf-field-invalid select,
.rsf-field.rsf-field-invalid textarea {
    border-color: #d63638;
}
.rsf-field-error-text {
    color: #d63638;
    font-size: 13px;
    margin-top: 4px;
}
.rsf-square-amount {
    background: #f7f4ee;
    color: #333;
    font-weight: 600;
    cursor: default;
}
.rsf-square-card {
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 44px;
    box-sizing: border-box;
    margin-top: 8px;
}
.rsf-square-error {
    color: #d63638;
    font-size: 13px;
    margin: 0;
}
.rsf-hp-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.rsf-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
}
.rsf-message {
    margin-top: 12px;
    font-weight: 600;
}
.rsf-message--success { color: #008a20; }
.rsf-message--error { color: #d63638; }

/* Always stack fields to full width on mobile, regardless of a field's
   configured Column Width — matches Elementor's own mobile behavior.
   !important is required here because RSF_Render emits each field's
   Column Width as an inline style, which otherwise always wins over a
   plain stylesheet rule regardless of selector specificity. */
@media (max-width: 767px) {
    .rsf-field {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.rsf-tips-panel {
    background: #1C1C1A;
    border-radius: 14px;
    padding: 22px 24px;
    margin-top: 12px;
}
.rsf-tips-title {
    font-size: 13px;
    font-weight: 700;
    color: #C8A96D;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 14px;
}
.rsf-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.rsf-tips-panel .rsf-tip-btn {
    padding: 12px 8px;
    background: #2a2a28;
    border: 1.5px solid #3a3a38;
    border-radius: 10px;
    color: #C8A96D;
    cursor: pointer;
    transition: all .15s;
    line-height: 1.2;
    text-align: center;
}
.rsf-tips-panel .rsf-tip-btn:hover { border-color: #C8A96D; }
.rsf-tips-panel .rsf-tip-btn.rsf-tip-btn--selected {
    background: #C8A96D;
    border-color: #C8A96D;
    color: #1C1C1A;
}
.rsf-tip-pct { display: block; font-size: 15px; font-weight: 700; }
.rsf-tip-dollar { display: block; font-size: 11px; font-weight: 400; color: #aaa; margin-top: 3px; }
.rsf-tips-panel .rsf-tip-btn--selected .rsf-tip-dollar { color: #1C1C1A; }
.rsf-tips-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rsf-tip-label { font-size: 12px; color: #F7F4EE; }
.rsf-tip-label.rsf-tip-label--selected { color: #C8A96D; font-weight: 600; }
.rsf-tips-panel .rsf-tip-clear {
    font-size: 11px;
    color: #F7F4EE;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}
.rsf-square-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1C1C1A;
    margin: 16px 0 10px;
}
.rsf-square-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    margin: 12px 0 0;
}

.rsf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f7f4ee;
    border: 1.5px solid #e0e0dc;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.6;
}
.rsf-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: #C8A96D;
    cursor: pointer;
}
.rsf-checkbox-label span a {
    color: #C8A96D;
    text-decoration: underline;
}
