/*
Theme Name: Track My Car
Theme URI: https://www.trackmycar.co.za
Author: Teclead
Author URI: https://www.trackmycar.co.za
Description: A modern vehicle tracking & recovery WordPress theme with dark navy design, orange accents, interactive map, pricing tables, and contact forms that email captured data to a selected recipient. Built with Tailwind CSS and Lucide icons.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: track-my-car
Tags: one-column, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ─── Custom Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pingSlow {
    75%, 100% { transform: scale(2); opacity: 0; }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.6s ease-out forwards; }
.animate-fade-in-right { animation: fadeInRight 0.6s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease-out forwards; }
.animate-ping-slow { animation: pingSlow 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-600 { animation-delay: 0.6s; }

.dot-pattern {
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0px);
    background-size: 40px 40px;
}
.dot-pattern-sm {
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0px);
    background-size: 28px 28px;
}
.hover-elevate {
    transition: transform 0.2s, box-shadow 0.2s;
}
.hover-elevate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Observe and animate */
.observe-animate {
    opacity: 0;
}
.observe-animate.visible {
    opacity: 1;
}

/* Form styling overrides for WordPress */
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select,
.tmc-form input,
.tmc-form textarea,
.tmc-form select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    background: white;
    color: #0B1929;
}
.tmc-form input:focus,
.tmc-form textarea:focus,
.tmc-form select:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.tmc-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}
.tmc-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #0B1929;
}

/* Recipient select styling */
.tmc-recipient-select {
    font-weight: 500 !important;
    border-color: #F97316 !important;
    background-color: white;
}
.tmc-recipient-select:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
}

/* Toast notification */
.tmc-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    z-index: 9999;
    transition: transform 0.3s ease;
    max-width: 90vw;
}
.tmc-toast.show {
    transform: translateX(-50%) translateY(0);
}
.tmc-toast.success { background: #22c55e; }
.tmc-toast.error { background: #ef4444; }