/* Teleo Forms — minimal styling that fits the theme's .formcard slot.
   Uses the theme's brand custom properties when present, with fallbacks. */

.tf-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tf-form .tf-field {
    margin-bottom: 1.1rem;
}

.tf-form label,
.tf-form legend {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--ink, #243240);
}

.tf-form .tf-req {
    color: var(--gold, #d4a437);
}

.tf-form input[type="text"],
.tf-form input[type="email"],
.tf-form input[type="tel"],
.tf-form textarea,
.tf-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    border: 1px solid #c2b596;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: var(--ink, #243240);
}

.tf-form textarea {
    min-height: 130px;
    resize: vertical;
}

.tf-form input:focus,
.tf-form textarea:focus,
.tf-form select:focus {
    outline: none;
    border-color: var(--teal, #2e7c74);
    box-shadow: 0 0 0 3px rgba(46, 124, 116, 0.18);
}

.tf-form fieldset.tf-group {
    border: 0;
    padding: 0;
    margin: 0;
}

.tf-form .tf-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 400;
    margin: 0.3rem 0;
    cursor: pointer;
}

.tf-form .tf-choice input {
    width: auto;
    margin-top: 0.25rem;
}

.tf-form .tf-error {
    display: block;
    margin-top: 0.35rem;
    color: #b3261e;
    font-size: 0.88rem;
}

.tf-form .tf-has-error input,
.tf-form .tf-has-error textarea,
.tf-form .tf-has-error select {
    border-color: #b3261e;
}

.tf-error-summary {
    margin: 0 0 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: #fcebea;
    color: #8a1f17;
    border: 1px solid #f3c9c5;
}

.tf-success {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(46, 124, 116, 0.12);
    color: var(--navy, #0d202e);
    border: 1px solid rgba(46, 124, 116, 0.35);
    font-weight: 600;
}

.tf-noscript p {
    color: #b3261e;
    font-size: 0.9rem;
}

.tf-form .tf-submit {
    margin-top: 0.4rem;
    cursor: pointer;
}

.tf-form .tf-submit[disabled] {
    opacity: 0.7;
    cursor: default;
}
