/* ── Support Ticket Form ──────────────────────────────────────────────────── */

.st-wrapper {
    max-width: 720px;
    margin: 1.5rem auto;
}

.st-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem 2.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

/* ── Form layout ─────────────────────────────────────────────────────────── */

.st-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.st-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.st-group--center {
    align-items: center;
    margin-top: 0.6rem;
}

.st-row {
    display: flex;
    gap: 0.9rem;
}

.st-row .st-field { flex: 1; min-width: 0; }
.st-row .st-input  { width: 100%; box-sizing: border-box; }

.st-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* ── Labels ──────────────────────────────────────────────────────────────── */

.st-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
}

.st-required {
    color: #dc2626;
    margin-left: 0.25em;
    font-weight: 700;
    transition: color 0.2s, opacity 0.2s;
    display: inline-block;
    min-width: 0.7em;
    text-align: center;
}

.st-required--ok {
    color: #16a34a;
}

.st-required-note {
    font-size: 0.77rem;
    color: #9ca3af;
    margin: 0.55rem 0 0;
    text-align: right;
}

/* ── Inputs ──────────────────────────────────────────────────────────────── */

.st-input,
.st-textarea {
    padding: 0.58rem 0.8rem;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.9rem;
    color: #111827;
    background: #fafafa;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    font-family: inherit;
    line-height: 1.4;
}

.st-input:focus,
.st-textarea:focus {
    outline: none;
    border-color: var(--behnke-design, #0066cc);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.13);
    background: #fff;
}

.st-input.st-full,
.st-textarea.st-full { width: 100%; box-sizing: border-box; }

.st-textarea {
    resize: vertical;
    min-height: 9.5rem;
    line-height: 1.55;
}

/* ── Validation states ───────────────────────────────────────────────────── */

.st-input.st-invalid,
.st-textarea.st-invalid {
    border-color: #ef4444;
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.st-input.st-valid,
.st-textarea.st-valid {
    border-color: #22c55e;
    background: #f0fdf4;
}

.st-input.st-valid:focus,
.st-textarea.st-valid:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.st-field-error {
    display: none;
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 0.1rem;
}

.st-field-error:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: st-fade-in 0.15s ease;
}

.st-field-error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

@keyframes st-fade-in {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── CAPTCHA card ────────────────────────────────────────────────────────── */

.st-captcha-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.st-captcha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.st-captcha-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.st-captcha-reload {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    padding: 0;
}

.st-captcha-reload:hover {
    color: var(--behnke-design, #0066cc);
    border-color: var(--behnke-design, #0066cc);
    background: rgba(0, 102, 204, 0.05);
}

.st-captcha-reload svg {
    width: 15px;
    height: 15px;
}

.st-captcha-reload.st-spinning svg {
    animation: st-spin 0.55s linear infinite;
}

@keyframes st-spin {
    to { transform: rotate(360deg); }
}

.st-captcha-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: #f8faff;
    min-height: 90px;
}

/* ── CAPTCHA timer bar ───────────────────────────────────────────────────── */

.st-captcha-timer {
    height: 3px;
    background: #e5e7eb;
    overflow: hidden;
}

.st-captcha-timer-bar {
    height: 100%;
    width: 100%;
    background: var(--behnke-design, #0066cc);
    border-radius: 0 2px 2px 0;
    transition: background-color 0.6s ease, width 1s linear;
    transform-origin: left;
}

.st-captcha-timer-bar--warning { background: #f59e0b; }
.st-captcha-timer-bar--low     { background: #ef4444; }

.st-captcha-img {
    border-radius: 6px;
    display: block;
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.st-captcha-footer {
    padding: 0.75rem 0.85rem;
    border-top: 1px solid #f3f4f6;
    background: #fff;
}

.st-captcha-footer .st-input {
    font-size: 1.05rem;
    letter-spacing: 0.25em;
    text-align: center;
    font-weight: 600;
}

/* ── Checkbox ────────────────────────────────────────────────────────────── */

.st-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.45;
}

.st-checkbox {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--behnke-design, #0066cc);
    width: 1.05rem;
    height: 1.05rem;
    cursor: pointer;
}

/* ── Submit button ───────────────────────────────────────────────────────── */

.st-submit {
    padding: 0.7rem 2.75rem;
    background: var(--behnke-design, #0066cc);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s, background 0.15s;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.st-submit:hover:not(:disabled)  { opacity: 0.88; }
.st-submit:active:not(:disabled) { transform: scale(0.98); }

.st-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Status messages ─────────────────────────────────────────────────────── */

.st-msg {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    animation: st-fade-in 0.2s ease;
}

.st-msg--ok      { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.st-msg--error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.st-msg--warning { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }

/* ── Privacy link ────────────────────────────────────────────────────────── */

.st-privacy-link {
    color: var(--behnke-design, #0066cc);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.st-privacy-link:hover { opacity: 0.8; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 560px) {
    .st-container { padding: 1.25rem 1rem; }
    .st-row { flex-direction: column; gap: 0.65rem; }
    .st-submit { width: 100%; }
}
