/* TechReview Webhook Forms — Frontend Styles */

.trwf-form-wrap {
    max-width: 640px;
    margin: 0 auto 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.trwf-form-header {
    margin-bottom: 1.5rem;
}

.trwf-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.375rem;
}

.trwf-form-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
}

/* Fields */
.trwf-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.trwf-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.trwf-field.trwf-half {
    width: calc(50% - 0.5rem);
}

@media (max-width: 520px) {
    .trwf-field.trwf-half { width: 100%; }
}

.trwf-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.trwf-req { color: #ef4444; margin-left: 2px; }

.trwf-input,
.trwf-select,
.trwf-textarea {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    font-size: 0.9375rem;
    color: #111827;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.trwf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.trwf-input:focus,
.trwf-select:focus,
.trwf-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.trwf-input:hover,
.trwf-select:hover,
.trwf-textarea:hover {
    border-color: #9ca3af;
}

.trwf-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.trwf-hint {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* Submit */
.trwf-submit-row { margin-top: 0.25rem; }

.trwf-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    font-family: inherit;
    width: 100%;
}

.trwf-submit-btn:hover  { opacity: 0.92; }
.trwf-submit-btn:active { transform: scale(0.99); }
.trwf-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Success / error messages */
.trwf-msg {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
}

.trwf-msg.trwf-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.trwf-msg.trwf-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
