@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.inhouse-faq-container {
max-width: 920px;
margin: 40px auto;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.inhouse-faq-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 20px;
padding: 40px;
box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.inhouse-faq-title {
font-size: 36px;
font-weight: 700;
margin: 0 0 12px;
color: var(--inhouse-primary, #0f172a);
line-height: 1.2;
background: linear-gradient(135deg, var(--inhouse-primary, #0f172a) 0%, var(--inhouse-button, #3b82f6) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.inhouse-faq-subtitle {
margin: 0 0 32px;
color: #64748b;
font-size: 16px;
line-height: 1.6;
}

.inhouse-faq-label {
display: block;
font-weight: 600;
margin-bottom: 10px;
color: #334155;
font-size: 14px;
letter-spacing: 0.3px;
}

.inhouse-required {
color: #ef4444;
font-weight: 700;
}

.inhouse-faq-input,
.inhouse-faq-select {
width: 100%;
padding: 14px 16px;
border: 2px solid #e5e7eb;
border-radius: 12px;
font-size: 15px;
transition: all 0.3s ease;
font-family: 'Inter', sans-serif;
background: #f8fafc;
}

.inhouse-faq-input::placeholder {
color: #cbd5e1;
}

.inhouse-faq-input:focus,
.inhouse-faq-select:focus {
outline: none;
border-color: var(--inhouse-button, #3b82f6);
background: #ffffff;
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
transform: translateY(-1px);
}

.inhouse-faq-row {
display: grid;
grid-template-columns: 1fr 1fr 150px;
gap: 16px;
margin-top: 20px;
margin-bottom: 28px;
}

@media (max-width: 768px) {
.inhouse-faq-row {
grid-template-columns: 1fr;
}

.inhouse-faq-card {
padding: 24px;
}

.inhouse-faq-title {
font-size: 28px;
}

.inhouse-faq-actions {
flex-direction: column;
align-items: stretch !important;
}

.inhouse-faq-actions-left,
.inhouse-faq-actions-right {
width: 100%;
justify-content: center !important;
}
}

.inhouse-faq-actions {
display: flex;
justify-content: space-between;
align-items: center;
gap: 14px;
flex-wrap: wrap;
}

.inhouse-faq-actions-left,
.inhouse-faq-actions-right {
display: flex;
gap: 14px;
align-items: center;
}

.inhouse-faq-btn {
padding: 14px 32px;
border-radius: 12px;
border: none;
font-weight: 600;
font-size: 15px;
cursor: pointer;
transition: all 0.3s ease;
font-family: 'Inter', sans-serif;
position: relative;
overflow: hidden;
}

.inhouse-faq-btn-primary {
background: linear-gradient(135deg, var(--inhouse-button, #3b82f6) 0%, #2563eb 100%);
color: #ffffff;
box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
display: flex;
align-items: center;
gap: 10px;
}

.inhouse-faq-btn-primary:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.inhouse-faq-btn-primary:active:not(:disabled) {
transform: translateY(0);
}

.inhouse-faq-btn-primary:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
}

.btn-loader {
font-weight: 700;
color: #ffffff;
background: rgba(255, 255, 255, 0.2);
padding: 4px 12px;
border-radius: 6px;
font-size: 14px;
animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}

.inhouse-faq-btn-secondary {
background: #ffffff;
color: #64748b;
border: 2px solid #e5e7eb;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.inhouse-faq-btn-secondary:hover {
background: #f8fafc;
border-color: #cbd5e1;
}

.inhouse-faq-output {
margin-top: 36px;
}

.inhouse-faq-section-title {
font-size: 24px;
font-weight: 700;
margin: 0 0 20px;
color: var(--inhouse-primary, #0f172a);
}

.inhouse-faq-item {
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border: 2px solid #e5e7eb;
border-radius: 16px;
padding: 24px;
margin-bottom: 16px;
transition: all 0.3s ease;
}

.inhouse-faq-item:hover {
border-color: #cbd5e1;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
transform: translateY(-2px);
}

.inhouse-faq-question {
font-size: 16px;
font-weight: 700;
color: var(--inhouse-primary, #0f172a);
margin-bottom: 12px;
line-height: 1.5;
}

.inhouse-faq-answer {
font-size: 15px;
color: #475569;
line-height: 1.7;
white-space: pre-wrap;
}

.inhouse-faq-schema {
width: 100%;
min-height: 300px;
padding: 20px;
background: #0f172a;
border: none;
border-radius: 16px;
color: #e2e8f0;
font-family: 'Monaco', 'Courier New', monospace;
font-size: 13px;
line-height: 1.6;
resize: vertical;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.inhouse-faq-schema:focus {
outline: none;
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 10px 30px rgba(0,0,0,0.3);
}

.inhouse-faq-error {
background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
border: 2px solid #fecaca;
border-radius: 12px;
padding: 16px 20px;
color: #991b1b;
font-size: 14px;
line-height: 1.6;
font-weight: 500;
}
