/* Project Estimates Plugin Styles */

/* Import theme variables */
:root {
    /* Fluid Typography Scale */
    --text-xs: clamp(0.75rem, 0.5rem + 1.25vw, 1rem);
    --text-sm: clamp(0.875rem, 0.625rem + 1.25vw, 1.125rem);
    --text-base: clamp(1rem, 0.75rem + 1.25vw, 1.25rem);
    --text-lg: clamp(1.125rem, 0.875rem + 1.25vw, 1.5rem);
    --text-xl: clamp(1.25rem, 1rem + 1.25vw, 1.875rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 3rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.75rem);

    /* Fluid Spacing */
    --space-xs: clamp(0.25rem, 0.5rem + 1.5vw, 0.75rem);
    --space-sm: clamp(0.5rem, 1rem + 3vw, 1.5rem);
    --space-md: clamp(0.75rem, 1.5rem + 4vw, 3rem);
    --space-lg: clamp(1rem, 2rem + 5vw, 4.5rem);
    --space-xl: clamp(1.25rem, 2.5rem + 6vw, 6rem);

    /* Border Radius */
    --radius-sm: clamp(0.125rem, 0.25rem + 0.5vw, 0.375rem);
    --radius-md: clamp(0.25rem, 0.5rem + 0.5vw, 0.5rem);
    --radius-lg: clamp(0.5rem, 0.75rem + 0.5vw, 0.75rem);
    --radius-xl: clamp(0.75rem, 1rem + 0.5vw, 1rem);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Container and Layout */
.project-estimates-container {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    color: #000000;
    background: #fcfcfc;
    min-height: 100vh;
    padding: var(--space-lg) 0;
}

.container {
    width: 1440px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: var(--space-md);
    color: #000000;
}

.header h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
    color: #000000;
}

.header p {
    font-size: var(--text-sm);
    color: #3b3b3b;
    font-weight: 400;
}

/* Progress Bar */
.progress-container {
    margin-bottom: var(--space-md);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #d9d9d9;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #000000;
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
    width: 20%;
}

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

.step {
    font-size: var(--text-xs);
    color: #bebebe;
    position: relative;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    font-weight: 400;
}

.step.active {
    color: #000000;
    background: #f5f5f5;
    font-weight: 500;
}

.step.completed {
    color: #000000;
    background: #f5f5f5;
    font-weight: 500;
}

/* Step Containers */
.step-container {
    display: none;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid #f3f3f3;
    animation: fadeInUp 0.5s ease;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-container h2 {
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    margin-bottom: var(--space-sm);
    color: #000000;
    font-size: var(--text-lg);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.service-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #bebebe;
}

.service-card.selected {
    border-color: #000000;
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.service-card i {
    font-size: var(--text-xl);
    color: #000000;
    margin-bottom: var(--space-xs);
}

.service-card h3 {
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
    color: #000000;
    font-weight: 500;
    line-height: 1.3;
}

.service-card p {
    color: #3b3b3b;
    margin-bottom: var(--space-xs);
    font-size: var(--text-xs);
    line-height: 1.4;
}

.service-card .price {
    font-weight: 500;
    color: #000000;
    font-size: var(--text-sm);
}

/* Feature Sections */
.feature-section {
    margin-bottom: var(--space-sm);
}

.feature-section h3 {
    font-family: 'DM Sans', sans-serif;
    color: #000000;
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    border-bottom: 1px solid #d9d9d9;
    padding-bottom: var(--space-xs);
}

.thank-you-message {
    text-align: center;
    margin-bottom: var(--space-sm);
    padding: var(--space-sm);
    background: #f8f8f8;
    border-radius: var(--radius-md);
    border-left: 3px solid #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.thank-you-message p {
    font-size: var(--text-sm);
    color: #3b3b3b;
    margin: 0;
    line-height: 1.4;
}

.quote-header i {
    font-size: var(--text-xl);
    color: #000000;
    margin-bottom: var(--space-xs);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xs);
}

.feature-item {
    display: flex;
    align-items: center;
    padding: var(--space-xs);
    background: #ffffff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.feature-item:hover {
    background: #f8f8f8;
    border-color: #bebebe;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

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

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #bebebe;
    border-radius: var(--radius-sm);
    margin-right: var(--space-xs);
    position: relative;
    transition: all 0.3s ease;
}

.checkmark.radio {
    border-radius: 50%;
}

.feature-item input[type="checkbox"]:checked+.checkmark,
.feature-item input[type="radio"]:checked+.checkmark {
    background: #000000;
    border-color: #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.feature-item input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
}

.feature-item input[type="radio"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
}

.feature-content {
    flex: 1;
}

.feature-content strong {
    display: block;
    margin-bottom: 2px;
    color: #000000;
    font-weight: 500;
    font-size: var(--text-xs);
}

.feature-content .price {
    color: #000000;
    font-weight: 500;
    font-size: var(--text-xs);
}

/* SEO Package Descriptions */
.seo-description {
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-sm);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* SEO Package Layout Improvements */
#seo-features .feature-grid {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#seo-features .feature-item {
    min-height: auto;
    height: auto;
    align-items: flex-start;
    padding: 20px;
    flex-shrink: 0;
    width: 320px;
}

#seo-features .feature-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    white-space: nowrap;
}

#seo-features .feature-content strong {
    font-size: 1.1rem;
    margin-bottom: 5px;
    white-space: nowrap;
}

#seo-features .feature-content .price {
    font-size: 1.2rem;
    white-space: nowrap;
}

#seo-features .seo-description {
    flex: 1;
    margin-top: 0;
}

.seo-description ul {
    margin: 0;
    padding-left: var(--space-md);
    list-style: none;
}

.seo-description li {
    margin-bottom: var(--space-xs);
    color: #3b3b3b;
    position: relative;
    padding-left: var(--space-md);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.seo-description li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

.seo-description li:first-child {
    font-weight: 500;
    color: #000000;
    margin-bottom: var(--space-sm);
}

/* Cost Summary */
.cost-summary {
    background: #f8f8f8;
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    border: 2px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cost-breakdown h3 {
    margin-bottom: var(--space-xs);
    color: #000000;
    font-size: var(--text-sm);
    font-weight: 500;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid #d9d9d9;
}

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

.total-section {
    margin-top: var(--space-xs);
    padding-top: var(--space-xs);
    border-top: 1px solid #d9d9d9;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.total-line:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #000000;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: #000000;
    font-size: var(--text-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-xs);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    transition: border-color 0.3s ease;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Final Quote */
.final-quote {
    background: #f8f8f8;
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.quote-header {
    text-align: center;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid #d9d9d9;
}

.quote-header i {
    font-size: var(--text-xl);
    color: #000000;
    margin-bottom: var(--space-xs);
}

.quote-header h3 {
    margin-bottom: var(--space-xs);
    color: #000000;
    font-size: var(--text-sm);
    font-weight: 500;
}

.quote-date {
    color: #3b3b3b;
    font-style: italic;
    font-size: var(--text-xs);
}

.quote-details {
    margin-bottom: var(--space-sm);
}

.quote-details h4 {
    margin-bottom: var(--space-xs);
    color: #000000;
    border-bottom: 1px solid #d9d9d9;
    padding-bottom: var(--space-xs);
    font-size: var(--text-xs);
    font-weight: 500;
}

.quote-total {
    background: #ffffff;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    border: 2px solid #000000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    font-weight: 500;
    color: #000000;
    margin-bottom: var(--space-xs);
}

.timeline-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #3b3b3b;
    font-size: var(--text-xs);
}

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

/* Buttons */
.btn {
    padding: var(--space-xs) var(--space-sm);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 var(--space-xs);
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: #b3ff00;
    color: #000000;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: #a3e600;
}

.btn-secondary {
    background: #d9d9d9;
    color: #000000;
}

.btn-secondary:hover {
    background: #bebebe;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.button-group {
    text-align: center;
    margin-top: var(--space-sm);
}

/* Currency Toggle */
.currency-toggle {
    margin: var(--space-xs) 0;
    text-align: center;
    background: #000000;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
}

.currency-toggle-admin {
    margin: var(--space-xs) 0;
    padding: var(--space-xs);
    background: #f8f8f8;
    border-radius: var(--radius-sm);
    border-left: 3px solid #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.currency-toggle-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--text-xs);
    color: #ffffff;
    font-weight: 500;
}

.currency-toggle-admin .currency-toggle-label {
    color: #000000;
}

.currency-toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    margin-right: var(--space-xs);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.currency-toggle-admin .toggle-slider {
    background: #d9d9d9;
    border-color: #bebebe;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.currency-toggle-label input[type="checkbox"]:checked+.toggle-slider {
    background: #b3ff00;
    border-color: #000000;
}

.currency-toggle-label input[type="checkbox"]:checked+.toggle-slider::before {
    transform: translateX(20px);
}

.currency-text {
    font-size: var(--text-xs);
    transition: color 0.3s ease;
}

.currency-toggle-label:hover .toggle-slider {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.currency-toggle-admin .currency-toggle-label:hover .toggle-slider {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1440px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--space-sm);
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--space-sm);
    }

    .header h1 {
        font-size: var(--text-3xl);
    }

    .step-container {
        padding: var(--space-lg);
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .progress-tracker {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .step {
        min-width: auto;
        width: 100%;
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }

    /* SEO Package Mobile Layout */
    #seo-features .feature-grid {
        flex-direction: column;
        gap: var(--space-md);
    }

    #seo-features .feature-item {
        width: 100%;
        min-width: auto;
    }

    #seo-features .seo-description {
        margin-top: var(--space-sm);
        margin-bottom: var(--space-md);
        width: 100%;
    }

    .btn {
        display: block;
        width: 100%;
        margin: var(--space-sm) 0;
    }

    .button-group {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }

    .currency-toggle {
        margin: var(--space-md) 0;
    }

    .currency-text {
        font-size: var(--text-xs);
    }

    .toggle-slider {
        width: 50px;
        height: 25px;
        margin-right: var(--space-sm);
    }

    .toggle-slider::before {
        width: 19px;
        height: 19px;
    }

    .currency-toggle-label input[type="checkbox"]:checked+.toggle-slider::before {
        transform: translateX(25px);
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: var(--text-2xl);
    }

    .step-container {
        padding: var(--space-md);
    }

    .service-card {
        padding: var(--space-md);
    }
}