/* TFF Pipeline — Frontend Form Styles */

.tff-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
}

.tff-form-header {
    margin-bottom: 28px;
}

.tff-form-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.2;
}

.tff-form-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.tff-form-row {
    margin-bottom: 0;
}

.tff-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .tff-form-row-2 { grid-template-columns: 1fr; }
}

.tff-field {
    margin-bottom: 18px;
}

.tff-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.tff-req { color: #dc2626; }
.tff-opt { font-weight: 400; color: #9ca3af; font-size: 12px; }

.tff-field input[type="text"],
.tff-field input[type="email"],
.tff-field input[type="url"],
.tff-field select,
.tff-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

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

.tff-field input:focus,
.tff-field select:focus,
.tff-field textarea:focus {
    outline: none;
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.tff-field input.tff-error,
.tff-field select.tff-error,
.tff-field textarea.tff-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

.tff-field textarea {
    resize: vertical;
    line-height: 1.6;
}

.tff-form-footer {
    margin-top: 8px;
}

.tff-submit-btn {
    width: 100%;
    padding: 15px 24px;
    background: #2D6A4F;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
    letter-spacing: .01em;
}

.tff-submit-btn:hover:not(:disabled) {
    background: #1b4d38;
    transform: translateY(-1px);
}

.tff-submit-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.tff-privacy-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 10px 0 0;
}

#tff-form-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

#tff-form-message.tff-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

#tff-form-message.tff-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
