.tsh-public-form {
    max-width: 650px;
    margin: 0 auto;
    padding: 0;
    color: #222;
    font-family: inherit;
}

.tsh-form-title {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
}

.tsh-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.tsh-field {
    width: 100%;
    display: block;
    margin-bottom: 6px;
}

.tsh-field-width-full { width: 100%; }
.tsh-field-width-half { width: calc(50% - 10px); }
.tsh-field-width-quarter { width: calc(25% - 10px); }
.tsh-field-width-three-quarter { width: calc(75% - 10px); }

.tsh-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.tsh-field input[type="text"],
.tsh-field input[type="email"],
.tsh-field input[type="tel"],
.tsh-field input[type="file"],
.tsh-field input[type="password"],
.tsh-field input[type="url"],
.tsh-field textarea,
.tsh-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background: #fafafa;
    color: #222;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

.tsh-field input:focus,
.tsh-field textarea:focus,
.tsh-field select:focus {
    border-color: #2271b1;
    background: #fff;
    outline: none;
}

.tsh-input-checkbox-wrap,
.tsh-input-radio-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.tsh-input-checkbox,
.tsh-input-radio {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}

.tsh-required {
    color: #d00;
    margin-left: 4px;
}

.tsh-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tsh-submit-btn:hover {
    opacity: 0.9;
}

.tsh-form-response {
    margin-top: 15px;
    font-size: 15px;
    font-weight: 600;
}

.tsh-form-response.success { color: #2a8a2a; }
.tsh-form-response.error { color: #d00; }

.tsh-name-wrapper {
    display: flex;
    gap: 20px;
}

.tsh-name-col {
    flex: 1;
}

.tsh-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #ccc;
}

.tsh-grid {
    display: flex;
    gap: 20px;
}

@media (max-width: 480px) {
    .tsh-grid {
        flex-direction: column;
        gap: 0;
    }
    .tsh-card {
        padding: 20px;
    }
}

.tsh-error-box {
    background: #ffe5e5;
    border: 1px solid #ff4d4d;
    color: #b30000;
    padding: 14px 16px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tsh-field-invalid .tsh-input,
.tsh-field-invalid input,
.tsh-field-invalid select,
.tsh-field-invalid textarea {
    border-color: #ff4d4d;
    background: #fff8f8;
}

.tsh-field-valid .tsh-input,
.tsh-field-valid input,
.tsh-field-valid select,
.tsh-field-valid textarea {
    border-color: #28a745;
    background: #f6fff8;
}

.tsh-field-error-msg {
    color: #b30000;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

.tsh-support-wrapper,
.tsh-form-container,
.tsh-card {
    max-width: 650px;
    margin: 0 auto;
}

.tsh-honeypot-wrap {
    display: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.tsh-field-valid .tsh-field-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tsh-field-valid .tsh-field-label::after {
    content: "✔";
    color: #28a745;
    font-size: 16px;
}

.tsh-field-invalid .tsh-field-label {
    color: #b30000;
}

.tsh-btn-loading {
    background: #999;
    color: #fff;
    position: relative;
}

.tsh-btn-loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: tsh-spin 0.8s linear infinite;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes tsh-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.tsh-btn-success {
    background: #28a745;
    color: #fff;
}

.tsh-btn-error {
    background: #f0ad4e;
    color: #fff;
}

.tsh-confirm-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.tsh-btn-half {
    width: 50%;
    padding: 12px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.tsh-btn-cancel {
    background: #d9534f;
    color: #fff;
}

.tsh-btn-cancel:hover {
    background: #c9302c;
}

.tsh-confirm-yes {
    background: #5cb85c;
    color: #fff;
}

.tsh-confirm-yes:hover {
    background: #4cae4c;
}

.tsh-error {
    width: 100%;
}

.tsh-error-centered {
    text-align: center;
}

.tsh-error-msg-text {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}
