/* ================================================
   DOSE MOVING - SMART MOVING INTEGRATION STYLES
   ================================================ */

/* ===============================================
   GLOBAL STYLES & RESETS
   =============================================== */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    
    --font-primary: 'Noto Sans', sans-serif;
    --font-secondary: 'Noto Serif', serif;
    
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: rgba(33, 37, 41, 0.8);
}

/* ===============================================
   NAVIGATION STYLES
   =============================================== */

.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

#phone-no a {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

#phone-no a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a58ca 100%);
}

/* ===============================================
   HERO SECTION STYLES
   =============================================== */

#hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="25" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

#hero .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#hero .btn {
    font-size: 1.125rem;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

#hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#hero img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

#hero img:hover {
    transform: scale(1.02);
}

/* ===============================================
   SMART MOVING FORM STYLES
   =============================================== */

.quote-form {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    margin: 0;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.quote-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--info-color) 100%);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background-color: var(--white);
    transform: translateY(-1px);
}

.form-control:hover:not(:focus) {
    border-color: #dee2e6;
    background-color: var(--white);
}

.form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Select Dropdown Styling */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2.5rem;
    appearance: none;
    cursor: pointer;
}

/* Section Headers in Form */
.quote-form h6 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
    position: relative;
}

.quote-form h6::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 3rem;
    height: 2px;
    background-color: var(--primary-color);
}

/* Form Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a58ca 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    background: var(--secondary-color);
    transform: none;
    box-shadow: var(--shadow-sm);
    cursor: not-allowed;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* Form Validation States */
.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.valid-feedback {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Hide Spam Prevention Fields */
input[name="contact_me_by_fax_only"],
input[name="name_of_spouse_fax_mobile"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ===============================================
   ALERT & MESSAGE STYLES
   =============================================== */

.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-md);
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    margin: 1.5rem 0;
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #a3d9a4 100%);
    color: #0f5132;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #664d03;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #b3dadf 100%);
    color: #055160;
    border-left: 4px solid var(--info-color);
}

.alert h4, .alert h5, .alert h6 {
    color: inherit;
    margin-bottom: 0.75rem;
}

/* ===============================================
   SECTION STYLES
   =============================================== */

section {
    padding: 4rem 0;
}

.bg-light {
    background-color: #fafbfc !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

/* Section Headers */
.display-5, .display-6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ===============================================
   UTM TEST SECTION STYLES
   =============================================== */

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-info {
    border: 2px solid var(--info-color);
    color: var(--info-color);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-outline-info:hover {
    background: var(--info-color);
    border-color: var(--info-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Debug Info Styling */
#debug-info {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--info-color) 0%, #17a2b8 100%);
    border: none;
    max-height: 400px;
    overflow-y: auto;
}

#debug-content {
    white-space: pre-wrap;
}

/* ===============================================
   FOOTER STYLES
   =============================================== */

footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1e21 100%);
    color: var(--white);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

footer .bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

footer .bg-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

footer svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ===============================================
   CAPTCHA CONTAINER STYLES
   =============================================== */

#captchaContainer {
    margin: 1.5rem 0;
    text-align: center;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero .lead {
        font-size: 1.1rem;
    }
    
    .quote-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        padding: 0.5rem 1rem;
    }
    
    #phone-no {
        margin-top: 1rem;
    }
    
    .btn-outline-primary,
    .btn-outline-info {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    #hero h1 {
        font-size: 2rem;
    }
    
    .quote-form {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
}

/* ===============================================
   ANIMATION & TRANSITION CLASSES
   =============================================== */

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.border-radius-custom {
    border-radius: var(--border-radius-lg);
}

/* ===============================================
   PERFORMANCE OPTIMIZATIONS
   =============================================== */

.quote-form,
.btn,
.form-control,
.alert {
    will-change: transform;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    #debug-info,
    .btn-outline-primary,
    .btn-outline-info {
        display: none !important;
    }
    
    .quote-form {
        box-shadow: none;
        border: 1px solid #000;
    }
}