/* ============================================================
   VOE Forms – Frontend styles
   ============================================================ */
.voe-form-wrap { max-width: 780px; margin: 0 auto; font-family: inherit; }
.voe-form-wrap--compact { max-width: 560px; }

.voe-form-notice { padding: 14px 18px; border-radius: 6px; margin-bottom: 24px; font-size: 0.95rem; line-height: 1.5; }
.voe-form-notice--error { background: #fff5f5; border: 1px solid #f5c6c6; color: #c0392b; }
.voe-form-notice--success { background: #f0faf4; border: 1px solid #a9d9b8; color: #1e7e34; }

.voe-fieldset { border: 1px solid #e2e8f0; border-radius: 8px; padding: 24px 28px; margin-bottom: 28px; background: #fafbfc; }
.voe-fieldset legend { font-weight: 600; font-size: 1.05rem; padding: 0 8px; color: #1a202c; }

.voe-field { display: flex; flex-direction: column; margin-bottom: 18px; }
.voe-field:last-child { margin-bottom: 0; }
.voe-field label { font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.voe-field input[type="text"], .voe-field input[type="email"], .voe-field input[type="tel"],
.voe-field input[type="url"], .voe-field input[type="date"], .voe-field textarea, .voe-field select {
    border: 1px solid #cbd5e0; border-radius: 6px; padding: 10px 14px; font-size: 0.95rem;
    color: #1a202c; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; width: 100%; box-sizing: border-box;
}
.voe-field input:focus, .voe-field textarea:focus, .voe-field select:focus {
    outline: none; border-color: #4a6cf7; box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.12);
}
.voe-field textarea { resize: vertical; }

.voe-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 580px) { .voe-field-row { grid-template-columns: 1fr; } }
.voe-field-row .voe-field { margin-bottom: 0; }

.voe-req { color: #e53e3e; }
.voe-optional { color: #718096; font-weight: 400; font-size: 0.85em; }
.voe-field-help { font-size: 0.82rem; color: #718096; margin: -8px 0 16px; line-height: 1.4; }

.voe-field--checkbox label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.voe-field--checkbox input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 18px; height: 18px; accent-color: #4a6cf7; cursor: pointer; }

/* File upload */
.voe-upload-area { position: relative; border: 2px dashed #cbd5e0; border-radius: 8px; padding: 20px 16px; text-align: center; background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s; min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.voe-upload-area:hover, .voe-upload-area.voe-drag-over { border-color: #4a6cf7; background: #f7f8ff; }
.voe-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.voe-upload-label { pointer-events: none; }
.voe-upload-icon { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.voe-upload-text { font-size: 0.82rem; color: #718096; }
.voe-upload-preview { margin-top: 10px; font-size: 0.82rem; color: #374151; word-break: break-all; }
.voe-upload-preview img { max-width: 120px; max-height: 80px; border-radius: 4px; border: 1px solid #e2e8f0; display: block; margin: 4px auto 0; }

.voe-submit-row { margin-top: 8px; text-align: left; }
.voe-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; border: none; transition: background 0.15s, opacity 0.15s; }
.voe-btn--primary { background: #4a6cf7; color: #fff; }
.voe-btn--primary:hover { background: #3a5cd6; }
.voe-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.voe-form-success { text-align: center; padding: 48px 24px; }
.voe-success-icon { font-size: 3rem; margin-bottom: 12px; }
.voe-form-success h3 { font-size: 1.5rem; margin-bottom: 12px; color: #1a202c; }
.voe-form-success p { color: #4a5568; }

/* Option cards */
.voe-option-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
@media (max-width: 640px) { .voe-option-cards { grid-template-columns: 1fr; } }
.voe-option-cards--small { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.voe-option-card { cursor: pointer; display: block; }
.voe-option-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.voe-option-card__inner { border: 2px solid #e2e8f0; border-radius: 10px; padding: 18px 16px; background: #fff; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; text-align: center; box-sizing: border-box; }
.voe-option-card:hover .voe-option-card__inner { border-color: #4a6cf7; background: #f7f8ff; }
.voe-option-card input:checked + .voe-option-card__inner { border-color: #4a6cf7; background: #eef1ff; box-shadow: 0 0 0 3px rgba(74,108,247,0.15); }
.voe-option-card__title { font-weight: 600; font-size: 0.95rem; color: #1a202c; margin-bottom: 6px; }
.voe-option-card__price { font-size: 1.25rem; font-weight: 700; color: #4a6cf7; margin-bottom: 6px; }
.voe-option-card__note { font-size: 0.78rem; color: #718096; line-height: 1.4; }

/* Repeater */
.voe-repeater-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.voe-repeater-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.voe-remove-row { background: none; border: 1px solid #f5c6c6; color: #c0392b; border-radius: 4px; padding: 4px 10px; font-size: 0.8rem; cursor: pointer; }
.voe-remove-row:hover { background: #fff5f5; }
.voe-btn--secondary { background: #fff; color: #4a6cf7; border: 2px solid #4a6cf7; font-size: 0.9rem; padding: 9px 20px; margin-top: 4px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.voe-btn--secondary:hover { background: #f7f8ff; }

/* YES/NO */
.voe-field--yesno { margin-bottom: 18px; }
.voe-field__label { font-size: 0.875rem; font-weight: 600; color: #374151; display: block; margin-bottom: 8px; }
.voe-yesno-group { display: flex; gap: 10px; }
.voe-yesno-option { cursor: pointer; }
.voe-yesno-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.voe-yesno-option span { display: inline-block; padding: 8px 24px; border: 2px solid #e2e8f0; border-radius: 6px; font-size: 0.875rem; font-weight: 600; color: #374151; background: #fff; transition: border-color 0.15s, background 0.15s; user-select: none; }
.voe-yesno-option:hover span { border-color: #4a6cf7; background: #f7f8ff; }
.voe-yesno-option input:checked + span { border-color: #4a6cf7; background: #eef1ff; color: #4a6cf7; }

.voe-select { border: 1px solid #cbd5e0; border-radius: 6px; padding: 10px 14px; font-size: 0.95rem; color: #1a202c; background: #fff; width: 100%; box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s; }
.voe-select:focus { outline: none; border-color: #4a6cf7; box-shadow: 0 0 0 3px rgba(74,108,247,0.12); }
.voe-divider { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0; }

/* Per-field errors */
.voe-field-error {
    color: #c0392b;
    font-size: 0.8rem;
    margin-top: 5px;
    line-height: 1.4;
    font-weight: 500;
}
.voe-field--has-error input,
.voe-field--has-error textarea,
.voe-field--has-error select,
.voe-field--has-error .voe-upload-area {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.12) !important;
}
.voe-field--has-error .voe-option-card__inner {
    border-color: #e53e3e !important;
}
.voe-field--has-error .voe-yesno-option span {
    border-color: #e53e3e !important;
}
