/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
}

.nav-logo .logo-img {
    width: 3.5rem;
    height: 3.5rem;
    margin-right: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff6b35;
}

/* Quote Header */
.quote-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.quote-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.quote-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Quote Form Section */
.quote-form-section {
    padding: 4rem 0;
}

.quote-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Address Form */
.address-form h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input[readonly] {
    background: #f8f9fa;
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* Address Suggestions */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 0.8rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

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

/* Lookup Button */
.lookup-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lookup-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Property Details */
.property-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.property-layout {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.property-info {
    flex: 1;
    min-width: 0;
}

.property-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.property-list {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.property-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e1e5e9;
    transition: background-color 0.3s ease;
}

.property-list li:last-child {
    border-bottom: none;
}

.property-list li:hover {
    background: rgba(255, 107, 53, 0.05);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 5px;
}

.property-list li i {
    font-size: 1.2rem;
    color: #ff6b35;
    min-width: 1.2rem;
}

.property-label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.property-value {
    font-weight: 500;
    color: #666;
    flex: 1;
}

.property-views {
    flex: 2;
    min-width: 0;
}

.property-views h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Maps Section */
.maps-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.maps-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.maps-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e1e5e9;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.tab-btn:hover {
    color: #ff6b35;
}

.maps-container {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.map-view.active {
    display: block;
}

/* Quote Calculator */
.quote-calculator {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.quote-calculator h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.service-selection h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.service-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-option {
    display: flex;
    align-items: center;
}

.service-option input[type="checkbox"] {
    display: none;
}

.service-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.service-option input[type="checkbox"]:checked + label {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

.service-option label i {
    font-size: 1.5rem;
    color: #ff6b35;
    min-width: 1.5rem;
}

.service-option label div h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.service-option label div p {
    font-size: 0.9rem;
    color: #666;
}

/* Quote Summary */
.quote-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.quote-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.pricing-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-option {
    background: white;
    padding: 0;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-option input[type="checkbox"],
.pricing-option input[type="radio"] {
    display: none;
}

.pricing-option label {
    display: block;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-option.selectable:hover {
    border-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.pricing-option.required {
    border-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
}

.pricing-option input:checked + label {
    background: rgba(255, 107, 53, 0.05);
}

.pricing-option.selectable input:checked + label {
    background: rgba(255, 107, 53, 0.1);
}

.pricing-option.selectable.selected {
    border-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.pricing-option.selectable input:checked + label::before {
    content: "✓";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff6b35;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.pricing-option h4 {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-badge {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pricing-option p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.quote-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e5e9;
}

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

.quote-item.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #ff6b35;
    border-top: 2px solid #ff6b35;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Contact Info */
.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Submit Button */
.submit-quote-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    margin-top: 2rem;
}

.submit-quote-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.loading-content i {
    font-size: 2rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote-header h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .property-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .maps-tabs {
        flex-direction: column;
    }
    
    .maps-container {
        height: 300px;
    }
    
    .service-option label {
        flex-direction: column;
        text-align: center;
    }
    
    .pricing-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .quote-header {
        padding: 6rem 0 3rem;
    }
    
    .quote-header h1 {
        font-size: 1.8rem;
    }
    
    .quote-content,
    .maps-section,
    .quote-calculator {
        padding: 1.5rem;
    }
    
    .property-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .property-info,
    .property-views {
        flex: none;
    }
    
    .property-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .property-label {
        min-width: auto;
    }
}

/* Service frequency and discount styling */
.quote-item.discount {
    color: #28a745;
    font-weight: 600;
}

.quote-item.discount span:last-child {
    color: #28a745;
}

.quote-item.savings {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 0.5rem;
    border: none;
}

.quote-item.savings span:last-child {
    color: white;
    font-size: 1.1rem;
}

/* Form small text styling */
.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Service frequency select styling */
#serviceFrequency {
    background-color: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#serviceFrequency:focus {
    border-color: #ff6b35;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Services Management Styles */
.services-content {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pricing-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-section h2 i {
    color: #ff6b35;
}

.pricing-table {
    overflow-x: auto;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.pricing-table td {
    vertical-align: middle;
}

.price-input {
    width: 100px;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.discount-cell {
    text-align: center;
}

.discount-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.edit-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.actions-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.save-all-btn,
.refresh-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.save-all-btn {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
}

.save-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.refresh-btn {
    background: #6c757d;
    color: white;
}

.refresh-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ff6b35;
    font-weight: 600;
}

@media (max-width: 768px) {
    .services-content .pricing-table {
        font-size: 0.9rem;
    }
    
    .services-content .pricing-table th,
    .services-content .pricing-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .services-content .price-input {
        width: 80px;
        font-size: 0.8rem;
    }
    
    .services-content .actions-section {
        flex-direction: column;
        align-items: center;
    }
    
    .services-content .save-all-btn,
    .services-content .refresh-btn {
        width: 100%;
        max-width: 300px;
    }
} 