/* WP FormCraft Frontend Styles */

.wpfc-form-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    max-width: 680px;
    margin: 20px auto;
    box-sizing: border-box;
}

.wpfc-form-header {
    margin-bottom: 24px;
}

.wpfc-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.wpfc-form-description {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.wpfc-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 0;
    margin-bottom: 24px;
}

.wpfc-field-group {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.wpfc-col-full { width: 100%; }
.wpfc-col-half { width: 50%; padding-right: 10px; }
.wpfc-col-half:nth-child(even) { padding-right: 0; padding-left: 10px; }

@media (max-width: 600px) {
    .wpfc-col-half { width: 100%; padding-right: 0 !important; padding-left: 0 !important; }
}

.wpfc-field-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.wpfc-required-asterisk {
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

.wpfc-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.wpfc-input:hover {
    border-color: #94a3b8;
}

.wpfc-input:focus {
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.wpfc-input.wpfc-has-error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.wpfc-help-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.wpfc-field-error {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
    margin-top: 4px;
    display: none;
}

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

.wpfc-submit-btn {
    background: #6366f1;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.wpfc-submit-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.wpfc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Card Response */
.wpfc-success-card {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: #065f46;
    animation: wpfcPopIn 0.3s ease-out;
}

@keyframes wpfcPopIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.wpfc-success-icon {
    font-size: 40px;
    color: #10b981;
    margin-bottom: 12px;
}

.wpfc-success-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.wpfc-success-message {
    font-size: 14px;
    margin: 0;
}

.wpfc-error-notice {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
}

/* Developer Branding Badge */
.wpfc-branding-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* WhatsApp Action Button */
.wpfc-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
}

.wpfc-wa-btn:hover {
    background: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* Choice & Checkbox Inputs */
.wpfc-choices-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.wpfc-choice-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}

.wpfc-choice-label input[type="radio"],
.wpfc-choice-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
    cursor: pointer;
}

/* E-Signature Canvas */
.wpfc-signature-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpfc-sig-canvas {
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: crosshair;
    touch-action: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wpfc-sig-tools {
    display: flex;
    justify-content: flex-end;
}

.wpfc-btn-clear-sig {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.wpfc-btn-clear-sig:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Star Rating Field */
.wpfc-rating-stars {
    display: inline-flex;
    gap: 6px;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

.wpfc-star {
    color: #cbd5e1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.wpfc-star.hover,
.wpfc-star.active {
    color: #f59e0b;
}

.wpfc-star:hover {
    transform: scale(1.15);
}

/* Theme Presets */
/* Emerald Green Theme */
.wpfc-theme-emerald {
    border-top: 4px solid #10b981;
}

.wpfc-theme-emerald .wpfc-submit-btn {
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.wpfc-theme-emerald .wpfc-submit-btn:hover {
    background: #059669;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.wpfc-theme-emerald .wpfc-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Dark Cyber Theme */
.wpfc-theme-dark {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}

.wpfc-theme-dark .wpfc-form-title {
    color: #f8fafc !important;
}

.wpfc-theme-dark .wpfc-form-description,
.wpfc-theme-dark .wpfc-field-label,
.wpfc-theme-dark .wpfc-choice-label {
    color: #cbd5e1 !important;
}

.wpfc-theme-dark .wpfc-input {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

.wpfc-theme-dark .wpfc-input:focus {
    border-color: #6366f1 !important;
}

.wpfc-theme-dark .wpfc-sig-canvas {
    background: #1e293b !important;
    border-color: #475569 !important;
}

.wpfc-theme-dark .wpfc-branding-footer {
    border-top-color: #334155 !important;
    color: #64748b !important;
}

/* Minimalist Slate Theme */
.wpfc-theme-slate {
    border-radius: 0;
    box-shadow: none;
    border: 2px solid #0f172a;
}

.wpfc-theme-slate .wpfc-submit-btn {
    background: #0f172a;
    border-radius: 0;
}

