/*
Theme Name: Parev Location Theme
Theme URI: https://parevlocation.fr/
Description: Custom Premium Single Page Theme for PAREV LOCATION (Luxury car rental).
Version: 1.0.0
Author: Antigravity
Author URI: https://parevlocation.fr/
License: GNU General Public License v2 or later
Text Domain: parevlocation
*/

/* Custom scrollbars matching dark/gold style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #080808;
}
::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bf9b2f;
}
/* No-scroll class for details view */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* WPForms styling to match dark/gold design */
.wpforms-container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.wpforms-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Equivalent to space-y-6 */
}

/* Hide WPForms titles and descriptions as we design our own */
.wpforms-title, .wpforms-description {
    display: none !important;
}

.wpforms-field-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wpforms-field {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.wpforms-field.parev-datetime-field {
    position: relative;
}

.wpforms-field-label {
    display: block !important;
    font-size: 0.75rem !important; /* text-xs */
    font-weight: 900 !important; /* font-black */
    text-transform: uppercase !important; /* uppercase */
    letter-spacing: 0.1em !important; /* tracking-widest */
    color: #a1a1aa !important; /* text-zinc-400 */
    margin-bottom: 0.5rem !important; /* mb-2 */
}

/* Align columns for Date/Time or two column layouts */
.wpforms-field-row {
    display: grid;
    grid-template-cols: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .wpforms-field-row {
        grid-template-cols: 1fr 1fr;
    }
}

.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="date"],
.wpforms-field input[type="datetime-local"],
.wpforms-field select {
    width: 100% !important;
    background-color: rgba(24, 24, 27, 0.8) !important; /* bg-zinc-900/80 */
    border: 1px solid #27272a !important; /* border-zinc-800 */
    border-radius: 0.75rem !important; /* rounded-xl */
    padding: 0.875rem 1rem !important; /* px-4 py-3.5 */
    color: #f4f4f5 !important; /* text-zinc-100 */
    font-size: 0.875rem !important; /* text-sm */
    outline: none !important;
    transition: all 0.2s ease-in-out !important;
}

.wpforms-field input[type="text"]:focus,
.wpforms-field input[type="email"]:focus,
.wpforms-field input[type="tel"]:focus,
.wpforms-field input[type="date"]:focus,
.wpforms-field input[type="datetime-local"]:focus,
.wpforms-field select:focus {
    border-color: rgba(212, 175, 55, 0.5) !important; /* focus:border-gold-500/50 */
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1) !important;
}

.wpforms-field .parev-date-input,
.wpforms-field input[type="datetime-local"] {
    padding-right: 3rem !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.1rem !important;
}

/* Style select dropdown arrow in dark theme */
.wpforms-field select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.25rem !important;
    padding-right: 2.5rem !important;
}

/* Submit button styling */
.wpforms-submit-container {
    padding-top: 1rem !important;
    margin: 0 !important;
    text-align: center !important;
}

.wpforms-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: linear-gradient(to right, #bf9b2f, #d4af37) !important; /* bg-gradient-to-r from-gold-600 to-gold-400 */
    color: #000000 !important; /* text-black */
    font-weight: 900 !important; /* font-extrabold */
    padding: 1.25rem 2rem !important; /* py-5 px-8 */
    border-radius: 0.75rem !important; /* rounded-xl */
    font-size: 0.875rem !important; /* text-sm */
    text-transform: uppercase !important; /* uppercase */
    letter-spacing: 0.1em !important; /* tracking-widest */
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.1), 0 4px 6px -2px rgba(212, 175, 55, 0.05) !important; /* shadow-gold-500/10 */
}

.wpforms-submit:hover {
    background: linear-gradient(to right, #d4af37, #e0c075) !important; /* hover:from-gold-500 hover:to-gold-300 */
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(212, 175, 55, 0.3), 0 10px 10px -5px rgba(212, 175, 55, 0.2) !important; /* hover:shadow-gold-500/30 */
}

.wpforms-submit:focus {
    outline: none !important;
}

/* WPForms Confirmation Message styling */
.wpforms-confirmation-container-outer {
    background: linear-gradient(to bottom right, #121212, #080808) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 1.5rem !important;
    padding: 2rem !important;
    text-align: center !important;
    color: #f4f4f5 !important;
}

/* Validation errors styling */
label.wpforms-error {
    display: block !important;
    color: #ef4444 !important; /* Red error */
    font-size: 0.75rem !important;
    margin-top: 0.25rem !important;
    font-weight: 500 !important;
}

.wpforms-has-error input, .wpforms-has-error select {
    border-color: #ef4444 !important;
}

/* ---- WPForms Radio & Checkbox dark theme fix ---- */
.wpforms-field-radio ul,
.wpforms-field-checkbox ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.wpforms-field-radio ul li,
.wpforms-field-checkbox ul li {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    background: rgba(24,24,27,0.6) !important;
    border: 1px solid #27272a !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1rem !important;
    cursor: pointer !important;
    transition: border-color 0.2s, background 0.2s !important;
}

.wpforms-field-radio ul li:hover,
.wpforms-field-checkbox ul li:hover {
    border-color: rgba(212,175,55,0.4) !important;
    background: rgba(212,175,55,0.05) !important;
}

/* Force label text to be light */
.wpforms-field-radio ul li label,
.wpforms-field-checkbox ul li label {
    color: #e4e4e7 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Custom radio/checkbox appearance */
.wpforms-field-radio ul li input[type="radio"],
.wpforms-field-checkbox ul li input[type="checkbox"] {
    width: 1.1rem !important;
    height: 1.1rem !important;
    accent-color: #d4af37 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* Highlight selected radio row */
.wpforms-field-radio ul li:has(input:checked),
.wpforms-field-checkbox ul li:has(input:checked) {
    border-color: rgba(212,175,55,0.6) !important;
    background: rgba(212,175,55,0.08) !important;
}

/* Footer social brand colors */
.social-brand-button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.social-brand-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.social-brand-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 8%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-brand-snapchat {
    background: #fffc00;
    color: #000000;
}

.social-brand-tiktok {
    background: #111111;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
}

.social-brand-whatsapp {
    background: #25d366;
}
