/* Custom styles for StumpPro */

/* FilePond customization */
.filepond--root {
    font-family: inherit;
}

.filepond--panel-root {
    border-radius: 0.5rem;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
}

.filepond--drop-label {
    color: #6b7280;
}

.filepond--label-action {
    color: #2d5a27;
    text-decoration: underline;
}

.filepond--item-panel {
    border-radius: 0.375rem;
}

/* Form enhancements */
.form-group {
    margin-bottom: 1.5rem;
}

/* Custom checkboxes and radios */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: #2d5a27;
    border-color: #2d5a27;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    ring-color: #2d5a27;
    border-color: #2d5a27;
}

/* Button hover effects */
.btn-primary {
    background-color: #2d5a27;
    border-color: #2d5a27;
}

.btn-primary:hover {
    background-color: #4a7c59;
    border-color: #4a7c59;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #2d5a27;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

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

/* Success states */
.success-message {
    color: #059669;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
*:focus {
    outline: 2px solid #2d5a27;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-forest-green {
        background-color: #000000;
    }
    
    .text-forest-green {
        color: #000000;
    }
    
    .border-forest-green {
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}
