/* Custom CSS for Chessington Surveyors */

/* Ensure proper hero section spacing and form visibility */
.hero-section {
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed navbar */
}

/* HubSpot Form Styling */
#hubspot-form-hero,
#hubspot-form-bottom {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure HubSpot forms are fully visible */
#hubspot-form-hero .hs-form,
#hubspot-form-bottom .hs-form {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#hubspot-form-hero .hs-form-field,
#hubspot-form-bottom .hs-form-field {
    margin-bottom: 15px !important;
    width: 100% !important;
}

#hubspot-form-hero input[type="text"],
#hubspot-form-hero input[type="email"],
#hubspot-form-hero input[type="tel"],
#hubspot-form-hero textarea,
#hubspot-form-hero select,
#hubspot-form-bottom input[type="text"],
#hubspot-form-bottom input[type="email"],
#hubspot-form-bottom input[type="tel"],
#hubspot-form-bottom textarea,
#hubspot-form-bottom select {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

#hubspot-form-hero .hs-submit,
#hubspot-form-bottom .hs-submit {
    text-align: center !important;
    width: 100% !important;
}

#hubspot-form-hero .hs-submit input[type="submit"],
#hubspot-form-bottom .hs-submit input[type="submit"] {
    background-color: #1e40af !important;
    color: white !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background-color 0.3s !important;
}

#hubspot-form-hero .hs-submit input[type="submit"]:hover,
#hubspot-form-bottom .hs-submit input[type="submit"]:hover {
    background-color: #1d4ed8 !important;
}

/* Mobile menu toggle */
.mobile-menu-hidden {
    display: none;
}

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

/* Video background optimization */
video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Interactive elements */
.interactive-button {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Blog interactive elements */
.expandable-section {
    cursor: pointer;
    transition: all 0.3s ease;
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.expandable-content.expanded {
    max-height: 2000px;
    opacity: 1;
}

/* Show expandable content by default on load, then hide via JS */
.expandable-content:not(.js-enabled) {
    max-height: none;
    opacity: 1;
    overflow: visible;
}

/* Calculator styles */
.calculator-container {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.calculator-input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.calculator-result {
    background: #dbeafe;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: 600;
    color: #1e40af;
}

/* Checklist styles */
.interactive-checklist {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #1e40af;
}

.checklist-item label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checklist-item.completed {
    opacity: 0.7;
}

.checklist-item.completed label {
    text-decoration: line-through;
    color: #6b7280;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background-color: #10b981;
    transition: width 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    #hubspot-form-hero,
    #hubspot-form-bottom {
        padding: 20px !important;
    }
    
    .calculator-container,
    .interactive-checklist {
        margin: 15px 0;
        padding: 15px;
    }
}

/* Team member photo styling */
.team-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #1e40af;
    margin: 0 auto 20px;
    display: block;
}

/* Blog article image styling */
.blog-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-image-small {
    max-width: 400px;
    margin: 15px auto;
    display: block;
}

/* Service wizard styling */
.service-wizard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.wizard-step.active {
    display: block;
}

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

.wizard-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px;
    display: inline-block;
}

.wizard-button:hover,
.wizard-button.selected {
    background: white;
    color: #667eea;
}

/* Quote calculator specific styles */
.quote-calculator {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.quote-result {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.quote-breakdown {
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.quote-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.quote-breakdown-item:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #1e40af;
}