/* ═══════════════════════════════════════
   TaxClue CRM — Public Lead Form
   ═══════════════════════════════════════ */

.tclm-form-wrapper {
    max-width: 640px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tclm-form-header {
    background: linear-gradient(135deg, #1a3c6e, #2563eb);
    color: #fff;
    padding: 28px 30px 20px;
    text-align: center;
}
.tclm-form-header h3 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
}
.tclm-form-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}

.tclm-lead-form {
    padding: 24px 30px 20px;
}

.tclm-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 600px) {
    .tclm-form-row { flex-direction: column; gap: 12px; }
}

.tclm-form-field {
    flex: 1;
}
.tclm-form-field-full {
    flex: 1 1 100%;
}

.tclm-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.tclm-form-field input,
.tclm-form-field select,
.tclm-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.tclm-form-field input:focus,
.tclm-form-field select:focus,
.tclm-form-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: #fff;
}

.tclm-form-field .tclm-readonly {
    background: #f1f5f9;
    cursor: not-allowed;
}

.tclm-form-submit {
    margin-top: 20px;
}

.tclm-submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a3c6e, #2563eb);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}
.tclm-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.tclm-submit-btn:active {
    transform: translateY(0);
}
.tclm-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tclm-form-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.tclm-form-footer p {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0;
}
.tclm-form-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* Success State */
.tclm-form-success {
    padding: 60px 30px;
    text-align: center;
}
.tclm-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.tclm-form-success h3 {
    font-size: 24px;
    color: #1a3c6e;
    margin: 0 0 10px;
}
.tclm-form-success p {
    color: #64748b;
    font-size: 14px;
}
.tclm-form-success a {
    color: #2563eb;
    font-weight: 600;
}

/* Error styling */
.tclm-form-field input.tclm-error,
.tclm-form-field select.tclm-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
