/* Modern Customer Site Styles - Firehouse Movers */

/* CSS Custom Properties */
:root {
    --primary-red: #ef4444;
    --primary-red-hover: #dc2626;
    --primary-red-light: #fee2e2;
    --secondary-orange: #f97316;
    --background-dark: #0a0a0a;
    --background-darker: #050505;
    --background-gray: #1a1a1a;
    --background-gray-light: #262626;
    --text-light: #ffffff;
    --text-gray: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --border-light: #4b5563;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-red: 0 10px 15px -3px rgba(239, 68, 68, 0.3), 0 4px 6px -2px rgba(239, 68, 68, 0.2);
    --gradient-primary: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    --gradient-card: linear-gradient(135deg, #262626 0%, #1a1a1a 100%);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body enhancements */
body {
    background: var(--gradient-dark);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(239, 68, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

/* Navigation Links */
nav a {
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* Card Styles */
.modern-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    z-index: 1;
    pointer-events: auto;
}

/* Ensure form elements inside cards are interactive */
.modern-card * {
    pointer-events: auto;
}

.modern-card input,
.modern-card textarea,
.modern-card select,
.modern-card button {
    pointer-events: auto !important;
    z-index: 2;
    position: relative;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.modern-card:hover::before {
    opacity: 1;
}

/* Service Cards */
.service-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-red);
}

.service-card .icon {
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-red);
}

/* Button Styles */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--background-gray-light);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--background-gray);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Form Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
    background: var(--background-gray-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: text;
    pointer-events: auto !important;
    z-index: 1;
    position: relative;
}

input[type="date"],
select {
    cursor: pointer;
}

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ef4444' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background: var(--background-gray);
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ef4444' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--border-light);
}

/* Ensure select dropdown is clickable and visible */
select option {
    background: var(--background-gray-light);
    color: var(--text-light);
    padding: 0.5rem;
}

select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Additional rules to ensure form inputs are always interactive */
input:not([disabled]):not([readonly]),
textarea:not([disabled]):not([readonly]),
select:not([disabled]) {
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative;
}

/* Label Styles */
label {
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* Section Headers */
.section-header {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Styles */
.modern-table {
    background: var(--background-gray);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.modern-table thead {
    background: var(--gradient-card);
}

.modern-table tbody tr {
    transition: all 0.2s ease;
}

.modern-table tbody tr:hover {
    background: var(--background-gray-light);
    transform: scale(1.01);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Statistics Cards */
.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleY(1);
}

.stat-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background: var(--gradient-dark);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* Message Styles */
.message {
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--background-gray-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon Animations */
.icon-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Ensure quote links are clickable */
a[href*="request-quote"] {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10;
    position: relative;
    display: inline-flex;
    text-decoration: none !important;
}

a[href*="request-quote"]:hover {
    text-decoration: none !important;
}

/* Ensure forms and inputs are interactive */
form {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

form * {
    pointer-events: auto;
}

input:not([disabled]):not([readonly]),
textarea:not([disabled]):not([readonly]),
select:not([disabled]) {
    pointer-events: auto !important;
    z-index: 1;
    position: relative;
}

.modern-card form,
.modern-card input,
.modern-card textarea,
.modern-card select {
    pointer-events: auto !important;
    z-index: 1;
    position: relative;
}

/* Calendar Reminder Styles */
.calendar-reminder {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-left: 4px solid var(--primary-red);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.calendar-reminder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.calendar-reminder:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    border-left-color: var(--primary-red-hover);
}

.calendar-reminder:hover::before {
    opacity: 1;
}

.calendar-reminder-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
    position: relative;
    z-index: 1;
}

.calendar-reminder-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.calendar-reminder-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-reminder-date {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.calendar-reminder-day {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.calendar-reminder-time {
    color: var(--primary-red);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-reminder-time i {
    font-size: 0.875rem;
}

/* Compact calendar reminder (for lists) */
.calendar-reminder-compact {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-left: 3px solid var(--primary-red);
    border-radius: 0.5rem;
    padding: 0.875rem;
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.calendar-reminder-compact:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border-left-color: var(--primary-red-hover);
}

.calendar-reminder-compact .calendar-reminder-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

.calendar-reminder-compact .calendar-reminder-content {
    flex: 1;
    min-width: 0;
}

.calendar-reminder-compact .calendar-reminder-label {
    font-size: 0.625rem;
    margin-bottom: 0.25rem;
}

.calendar-reminder-compact .calendar-reminder-date {
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.calendar-reminder-compact .calendar-reminder-day {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.calendar-reminder-compact .calendar-reminder-time {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .calendar-reminder {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .calendar-reminder-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .calendar-reminder-date {
        font-size: 1.25rem;
    }
    
    .calendar-reminder-compact {
        padding: 0.75rem;
        gap: 0.625rem;
    }
    
    .calendar-reminder-compact .calendar-reminder-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
    
    .calendar-reminder-compact .calendar-reminder-date {
        font-size: 0.875rem;
    }
}
