/* Contact One Estimate Calculator Styles */

:root {
    --c1-navy: #0f172a;
    --c1-blue: #1e3a8a;
    --c1-green: #a3e635;
    /* Lime green */
    --c1-green-hover: #84cc16;
    --c1-text: #1e293b;
    --c1-text-light: #64748b;
    --c1-bg-light: #f8fafc;
    --c1-border: #e2e8f0;
    --c1-white: #ffffff;
    --c1-icon-size: 22px;
}

.c1-calculator-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.c1-main-content,
.c1-pricing-container {
    width: 100%;
    background: var(--c1-bg-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--c1-border);
    box-sizing: border-box;
}

.c1-sidebar {
    display: none;
}

/* Comparison Card */
.c1-pricing-card {
    background: var(--c1-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    /* Stack vertically always */
}

.c1-card-col {
    padding: 30px;
    flex: 1;
}

.c1-in-house {
    font-size: 22px;
    border-right: none;
    border-bottom: 1px solid var(--c1-border);
    /* Divider between stacked items */
    order: 1;
    /* Top */
    background-color: var(--c1-bg-light);
    /* Gray background */
}

.c1-contact-one {
    background: var(--c1-navy);
    color: white;
    order: 2;
    /* Bottom */
}

.c1-section {
    margin-bottom: 60px;
}

.c1-main-content .c1-section:last-child {
    margin-bottom: 0;
}

.c1-pricing-section {
    margin-bottom: 0;
}

.c1-header-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.c1-icon-square {
    width: 24px;
    height: 24px;
    background: conic-gradient(from 0deg at 50% 50%, var(--c1-green) 0% 25%, var(--c1-white) 25% 50%, #cbd5e1 50% 75%, var(--c1-navy) 75% 100%);
    border-radius: 4px;
}

.c1-section h2 {
    font-size: 1.8rem;
    color: var(--c1-navy);
    font-weight: 700;
    margin: 0;
}

.c1-desc {
    color: var(--c1-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
}

/* Inputs */
.c1-input-row {
    margin-bottom: 30px;
}

.c1-input-row label {
    display: block;
    font-weight: 600;
    color: var(--c1-text);
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Slider Styles */
.c1-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    outline: none;
    margin: 10px 0;
    cursor: pointer;
    height: 24px;
    vertical-align: middle;
}

.c1-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--c1-navy) 0%, var(--c1-navy) var(--value-percent, 50%), #cbd5e1 var(--value-percent, 50%), #cbd5e1 100%);
    border-radius: 4px;
    cursor: pointer;
}

.c1-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--c1-white);
    border: 2px solid var(--c1-navy);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: -8px;
    box-sizing: border-box;
}

.c1-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--c1-navy) 0%, var(--c1-navy) var(--value-percent, 50%), #cbd5e1 var(--value-percent, 50%), #cbd5e1 100%);
    border-radius: 4px;
    cursor: pointer;
}

.c1-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--c1-white);
    border: 2px solid var(--c1-navy);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.c1-slider-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.c1-slider-helper {
    font-size: 0.85rem;
    color: var(--c1-text-light);
    font-weight: 300;
}

.c1-slider-value {
    font-weight: 700;
    color: var(--c1-text);
    font-size: 1rem;
}

.c1-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.c1-checkbox-group label {
    font-weight: 400;
    color: var(--c1-text-light);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Schedule */
.c1-schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.c1-schedule-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.c1-day-label {
    font-weight: 700;
    color: var(--c1-text);
    font-size: 1.2rem;
}

.c1-segmented {
    display: flex;
    background: #cbd5e1;
    border-radius: 16px;
    padding: 4px;
    gap: 6px;
}

.c1-segment {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    line-height: 1.1;
    white-space: nowrap;
}

.c1-segment.is-active {
    background: var(--c1-white);
    color: #111827;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.c1-segment:not(.is-active):hover {
    background: #dbe3ef;
    color: #1f2937;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.c1-segment:focus-visible {
    outline: 2px solid var(--c1-navy);
    outline-offset: 2px;
}

.c1-coverage-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--c1-border);
    background: var(--c1-white);
    padding: 12px 14px;
    border-radius: 14px;
    color: #475569;
    font-size: 0.95rem;
}

.c1-coverage-detail--custom {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.c1-coverage-note {
    display: flex;
    align-items: center;
    gap: 10px;
}

.c1-custom-hours {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.c1-custom-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.c1-range-row {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 0;
}

.c1-range-row.has-remove {
    padding-right: calc(var(--c1-icon-size) + 10px);
}

.c1-time-pill {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 0 18px;
    box-sizing: border-box;
    flex: 1 1 auto;
    width: 100%;
}

.c1-time-field {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--c1-text);
    text-align: center;
    width: min(16ch, 100%);
    max-width: 16ch;
    min-width: 0;
    padding: 0;
    font-weight: 500;
    outline: none;
    justify-self: center;
}

.c1-time-field::-webkit-datetime-edit,
.c1-time-field::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

.c1-time-field::-webkit-calendar-picker-indicator {
    margin-left: 4px;
}

.c1-time-divider {
    width: 1px;
    height: 24px;
    background-color: #e2e8f0;
}

.c1-time-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    padding: 0 12px;
    color: #6b7280;
    font-size: 0.85rem;
}

.c1-time-label {
    width: auto;
    text-align: center;
}

.c1-remove-range {
    width: var(--c1-icon-size);
    height: var(--c1-icon-size);
    border-radius: 999px;
    border: none;
    background: #ef4444;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.c1-remove-range:hover {
    background: #dc2626;
}

.c1-remove-range[hidden] {
    display: none;
}

.c1-range-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: -6px;
    text-align: center;
}

.c1-custom-range.is-invalid .c1-time-pill,
.c1-custom-range.is-overlap .c1-time-pill {
    border-color: #fca5a5;
}

.c1-add-hours-row {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--c1-blue);
}

.c1-add-hours-line {
    height: 1px;
    background: #e5e7eb;
    flex: 1;
}

.c1-add-hours {
    border: none;
    background: none;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

.c1-coverage-detail[hidden] {
    display: none;
}


.c1-coverage-icon {
    width: var(--c1-icon-size);
    height: var(--c1-icon-size);
    min-width: var(--c1-icon-size);
    min-height: var(--c1-icon-size);
    flex: 0 0 var(--c1-icon-size);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.c1-coverage-icon--check {
    background: #7aa874;
    color: #ffffff;
}

.c1-coverage-icon--check::before {
    content: "\2713";
}

.c1-coverage-icon--info {
    background: #9ca3af;
    color: #ffffff;
}

.c1-coverage-icon--info::before {
    content: "i";
}

/* Pricing Grid - Horizontal on Desktop */
.c1-pricing-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.c1-pricing-summary {
    flex: 1;
    min-width: 300px;
    padding-top: 0;
}

.c1-pricing-card,
.c1-card-column {
    flex: 2;
    min-width: 0;
}

.c1-card-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.c1-pricing-card {
    width: 100%;
}

.c1-savings-text,
.c1-action-buttons,
#c1-lead-form {
    width: 100%;
}

.c1-lead-input {
    border: 1px solid var(--c1-border);
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--c1-text);
    outline: none;
}

.c1-lead-input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.c1-consent-row {
    margin-bottom: 20px;
}

.c1-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c1-text);
    line-height: 1.4;
    cursor: pointer;
}

.c1-consent-checkbox {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.c1-consent-error {
    border-color: #dc2626 !important;
}

.c1-action-buttons {
    justify-content: flex-start;
}

.c1-btn {
    flex: 0 1 200px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .c1-calculator-wrapper {
        flex-direction: column;
        max-width: 800px;
    }

    .c1-sidebar {
        width: 100%;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .c1-main-content,
    .c1-pricing-container {
        padding: 28px;
    }

    /* Pricing Mobile Styles */
    .c1-pricing-card {
        flex-direction: column;
    }

    .c1-card-col {
        padding: 20px;
        /* Reduce padding from 30px */
    }

    .c1-contact-one {
        order: -1;
    }

    .c1-in-house {
        border-right: none;
        border-bottom: 1px solid var(--c1-border);
    }

    .c1-breakdown-row {
        flex-wrap: wrap;
        gap: 5px;
        /* Add gap for wrapped items */
    }

    .c1-breakdown-row span {
        font-size: 0.85rem;
        /* Ensure font fits */
    }

    .c1-total-row {
        flex-wrap: wrap;
        /* Allow wrapping for total row too */
        gap: 10px;
    }

    .c1-total-val {
        font-size: 1.2rem;
        /* Slightly smaller total on mobile */
    }

    .c1-action-buttons {
        flex-direction: column;
    }

    .c1-slider-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .c1-slider-value {
        align-self: flex-start;
        margin-top: 5px;
    }

    .c1-schedule-row {
        gap: 10px;
    }

    .c1-segmented {
        padding: 4px;
        gap: 4px;
    }

    .c1-segment {
        padding: 8px 6px;
        font-size: 0.85rem;
    }

    .c1-coverage-detail {
        font-size: 0.9rem;
    }

    .c1-time-pill {
        height: 46px;
        padding: 0 14px;
    }

    .c1-time-field {
        font-size: 0.98rem;
    }
}

@media (max-width: 520px) {
    .c1-main-content,
    .c1-pricing-container {
        padding: 22px;
    }

    .c1-schedule-grid {
        grid-template-columns: 1fr;
    }

    .c1-segment {
        white-space: normal;
        text-align: center;
        padding: 8px 6px;
        font-size: 0.78rem;
        line-height: 1.2;
        min-height: 38px;
    }

    .c1-time-pill {
        height: 44px;
        padding: 0 12px;
    }

    .c1-time-field {
        font-size: 0.92rem;
        width: min(14ch, 100%);
        max-width: 14ch;
    }

    .c1-time-labels {
        padding: 0 6px;
        font-size: 0.8rem;
    }

    .c1-add-hours-row {
        gap: 10px;
    }

    .c1-add-hours {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .c1-time-pill {
        padding: 0 10px;
    }

    .c1-time-field {
        font-size: 0.88rem;
        width: min(13ch, 100%);
        max-width: 13ch;
    }
}

@media (max-width: 360px) {
    .c1-main-content,
    .c1-pricing-container {
        padding: 18px;
    }

    .c1-segment {
        font-size: 0.74rem;
        min-height: 36px;
        padding: 8px 4px;
    }

    .c1-time-pill {
        height: 42px;
        padding: 0 10px;
    }

    .c1-time-field {
        font-size: 0.86rem;
        width: min(12ch, 100%);
        max-width: 12ch;
    }
}

.c1-pricing-summary {
    padding-top: 20px;
}

.c1-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--c1-text-light);
}

.c1-summary-val {
    font-weight: 700;
    color: var(--c1-text);
}

.c1-summary-divider {
    height: 1px;
    background: var(--c1-border);
    margin: 20px 0;
}

.c1-promo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    background: var(--c1-white);
    padding: 10px;
    border: 1px solid var(--c1-border);
    border-radius: 6px;
}

.c1-promo-row label {
    font-size: 0.85rem;
    color: var(--c1-text-light);
    white-space: nowrap;
}

.c1-promo-input {
    border: none;
    outline: none;
    width: 100%;
    font-weight: 600;
    color: var(--c1-text);
}

.c1-promo-input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.c1-action-buttons {
    display: flex;
    gap: 15px;
}

.c1-btn {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.2s;
}

.c1-btn-primary {
    background: var(--c1-green);
    color: var(--c1-navy);
    border: none;
}

.c1-btn-primary:hover {
    background: var(--c1-green-hover);
}

.c1-pricing-summary .c1-btn-primary {
    margin-top: 20px;
}

#c1-lock-in-btn {
    background: transparent;
    color: var(--c1-navy);
    border: 2px solid var(--c1-navy);
}

#c1-lock-in-btn:hover {
    background: var(--c1-navy);
    color: #ffffff;
}

.c1-btn-outline {
    background: transparent;
    border: 1px solid var(--c1-navy);
    color: var(--c1-navy);
}

.c1-btn-outline:hover {
    background: #f1f5f9;
}

/* Comparison Card - Row on Desktop */
.c1-pricing-card {
    background: transparent;
    /* Changed from white to handle separate column backgrounds */
    overflow: visible;
    /* Allow column to pop out */
    border: none;
    box-shadow: none;
    /* Removed outer shadow */
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* Ensure equal height before any popping out */
}

.c1-card-col {
    flex: 1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.c1-in-house {
    background: var(--c1-white);
    border: 1px solid var(--c1-border);
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 0;
}

.c1-contact-one {
    background: #364D7C;
    /* Updated body color */
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    z-index: 2;
    padding: 0;
    /* Handled by header/body */
    margin: 0 -10px;
    /* Pop out horizontally slightly */
}

.c1-card-header {
    padding: 15px 30px;
    /* Reduced vertical padding */
    border-bottom: 1px solid var(--c1-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.c1-in-house .c1-card-header {
    background: var(--c1-white);
}

.c1-contact-one .c1-card-header {
    background: #0D2C6C;
    /* Updated header color */
    border-bottom-color: rgba(255, 255, 255, 0.2);
    padding: 25px 30px;
    /* Still taller but reduced */
}

.c1-card-body {
    padding: 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.c1-in-house .c1-card-body {
    color: var(--c1-text-light);
}

.c1-card-title {
    display: block;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0;
    text-align: center;
}

.c1-card-title-dark {
    color: var(--c1-blue);
}

.c1-cost-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.c1-cost-input-row label {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    color: inherit;
    display: block;
    margin-bottom: 0;
    max-width: 180px;
    line-height: 1.4;
}

.c1-sublabel {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 2px;
}

.c1-currency-input {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--c1-navy);
}

.c1-currency-input input {
    border: none;
    border-bottom: 2px solid var(--c1-border);
    width: 60px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
    color: var(--c1-text);
    background: transparent;
    transition: all 0.2s;
    padding: 2px 0;
}

.c1-currency-input input:hover,
.c1-currency-input input:focus {
    border-bottom-color: var(--c1-navy);
    background: rgba(226, 232, 240, 0.3);
    /* Slight background on hover */
    border-radius: 4px;
}

.c1-plain-input {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--c1-navy);
}

.c1-plain-input input {
    border: none;
    border-bottom: 2px solid var(--c1-border);
    width: 60px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
    color: var(--c1-text);
    background: transparent;
    transition: all 0.2s;
    padding: 2px 0;
}

.c1-plain-input input:hover,
.c1-plain-input input:focus {
    border-bottom-color: var(--c1-navy);
    background: rgba(226, 232, 240, 0.3);
    border-radius: 4px;
}

.c1-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.c1-breakdown-row span:last-child {
    color: white;
    font-weight: 700;
}

.c1-breakdown-sub {
    font-size: 0.85rem;
    padding-left: 16px;
    opacity: 0.8;
}

.c1-breakdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 8px 0;
}

.c1-breakdown-discount {
    font-size: 0.85rem;
    padding-left: 16px;
    opacity: 0.8;
}

.c1-breakdown-discount span:last-child {
    color: var(--c1-green);
}

.c1-total-row {
    margin-top: auto;
    /* Pushes to bottom in flex container */
    padding-top: 25px;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 1rem;
}

.c1-contact-one .c1-total-row {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.c1-total-val {
    font-size: 1.4rem;
    font-weight: 700;
}

.c1-total-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 8px 0 0 0;
    text-align: center;
}

.c1-savings-text {
    text-align: center;
    margin-top: 25px;
    font-style: italic;
    color: var(--c1-text-light);
    font-size: 0.95rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .c1-pricing-grid {
        flex-direction: column;
    }

    .c1-pricing-card {
        flex-direction: column;
        min-width: 100%;
    }

    .c1-contact-one {
        margin: 20px 0 0 0;
    }

    .c1-in-house {
        margin: 0;
        border-bottom: 1px solid var(--c1-border);
    }

    .c1-pricing-summary {
        min-width: 100%;
    }

    .c1-btn {
        flex: 1;
    }
}

/* Specific styling for In-House Total alignment */
.c1-in-house .c1-total-row,
.c1-in-house .c1-total-val {
    color: var(--c1-navy);
}

/* Lead form feedback */
#c1-lead-msg {
    border-radius: 6px;
    padding: 8px 12px;
}

#c1-submit-lead:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#c1-submit-lead.c1-btn-submitted {
    background: #16a34a;
    color: #ffffff;
}
