/* Quote Generator CSS - Modular Builder Design */

/* CSS Variables matching main website */
:root {
    --primary-color: #ff0000;
    --primary-dark: #cc0000;
    --primary-light: #ff3333;
    --text-color: #ffffff;
    --light-text: #cccccc;
    --background: #121212;
    --section-bg: #1a1a1a;
    --card-bg: #242424;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #00c853;
    --warning-color: #ff9800;
    --info-color: #2196f3;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    font-size: 1.1rem;
    min-height: 100vh;
}

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

/* Header & Navigation */
header {
    background: var(--section-bg);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 0, 0, 0.2);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--section-bg) 0%, var(--background) 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Main Quote Generator Section */
.quote-generator {
    padding: 4rem 0;
    background: var(--background);
}

/* Quick Templates Section */
.quick-templates {
    margin-bottom: 4rem;
}

.quick-templates h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-description {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.template-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(33, 150, 243, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    border-color: var(--info-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.template-card.popular {
    border-color: var(--primary-color);
}

.template-card.popular::before {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), rgba(255, 0, 0, 0.02));
    opacity: 1;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.template-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.template-card p {
    color: var(--light-text);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.template-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

.template-card li {
    padding: 0.25rem 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.template-card li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.template-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.template-btn {
    background: linear-gradient(135deg, var(--info-color), #42a5f5);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.custom-option {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 2px dashed var(--border-color);
    margin-top: 2rem;
}

.custom-option h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.custom-option p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.custom-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Payment Toggle */
.payment-toggle {
    text-align: center;
    margin-bottom: 4rem;
}

.toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toggle-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-switch {
    position: relative;
    width: 70px;
    height: 36px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333;
    transition: 0.4s;
    border-radius: 36px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--success-color), #64dd17);
}

input:checked + .toggle-slider:before {
    transform: translateX(34px);
}

.savings-badge {
    background: linear-gradient(135deg, var(--success-color), #64dd17);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
    animation: pulse 2s infinite;
}

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

/* Feature Builder */
.feature-builder {
    margin-bottom: 4rem;
}

/* Custom Solutions Notice */
.custom-solutions-notice {
    margin: 3rem 0 4rem 0;
    text-align: center;
}

.notice-content {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(33, 150, 243, 0.05) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--info-color);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.notice-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    opacity: 0.7;
    pointer-events: none;
}

.notice-content > * {
    position: relative;
    z-index: 1;
}

.notice-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.notice-content h3 i {
    color: var(--info-color);
    font-size: 1.3rem;
}

.notice-content p {
    color: var(--light-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

.notice-content a {
    color: var(--info-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.notice-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.feature-category {
    margin-bottom: 4rem;
}

.feature-category h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-category h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.category-description {
    color: var(--light-text);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), rgba(255, 0, 0, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.feature-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.2);
}

.feature-card.selected::before {
    opacity: 1;
}

.feature-card.required {
    border-color: var(--success-color);
}

.feature-card.required::before {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.05), rgba(0, 200, 83, 0.02));
    opacity: 1;
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    flex: 1;
    margin-right: 1rem;
}

.feature-price {
    text-align: right;
    flex-shrink: 0;
}

.feature-price .monthly-price,
.feature-price .upfront-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Feature Badges */
.required-badge,
.included-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 15px;
    z-index: 2;
}

.required-badge {
    background: linear-gradient(135deg, var(--success-color), #64dd17);
}

.included-badge {
    background: linear-gradient(135deg, var(--info-color), #42a5f5);
}

/* Quote Summary */
.quote-summary {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.quote-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.03), rgba(255, 0, 0, 0.01));
    pointer-events: none;
}

.quote-summary > * {
    position: relative;
    z-index: 1;
}

.quote-summary h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.selected-features {
    margin-bottom: 2rem;
}

.selected-features h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.features-list {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.feature-name {
    color: var(--text-color);
    font-weight: 500;
}

.feature-cost {
    color: var(--primary-color);
    font-weight: 600;
}

.empty-state {
    color: var(--light-text);
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
}

.summary-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.summary-item.summary-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
    border-bottom: none;
    font-size: 1.2rem;
}

.summary-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.summary-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.total-price {
    font-size: 1.8rem !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Quote Payment Toggle */
.quote-payment-toggle {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.quote-toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.quote-toggle-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.quote-toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.quote-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.quote-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333;
    transition: 0.4s;
    border-radius: 30px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quote-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input:checked + .quote-toggle-slider {
    background: linear-gradient(135deg, var(--success-color), #64dd17);
}

input:checked + .quote-toggle-slider:before {
    transform: translateX(30px);
}

.quote-savings-badge {
    background: linear-gradient(135deg, var(--success-color), #64dd17);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
    animation: pulse 2s infinite;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.cta-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(3px);
}

.cta-description {
    color: var(--light-text);
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: var(--section-bg);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: var(--light-text);
    font-size: 0.95rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .quote-generator {
        padding: 3rem 0;
    }
    
    .toggle-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .feature-price {
        text-align: left;
    }
    
    .quote-summary {
        padding: 2rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .feature-category h2 {
        font-size: 1.7rem;
    }
    
    .quick-templates h2 {
        font-size: 2rem;
    }
    
    .notice-content {
        padding: 1.5rem;
    }
    
    .notice-content h3 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .notice-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .template-card {
        padding: 1.5rem;
    }
    
    .toggle-switch {
        width: 60px;
        height: 30px;
    }
    
    .toggle-slider:before {
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
    }
    
    input:checked + .toggle-slider:before {
        transform: translateX(30px);
    }
    
    .quote-summary {
        padding: 1.5rem;
    }
    
    .custom-option {
        padding: 2rem;
    }
    
    .feature-category h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .notice-content {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
    
    .notice-content h3 {
        font-size: 1.2rem;
    }
    
    .notice-content p {
        font-size: 0.95rem;
    }
} 