/**
 * Oculeus Quoting System Styles
 * Consistent with site theme (Oculeus brand colors)
 */

/* ============================================
   WIZARD CONTAINER
   ============================================ */
.quote-wizard {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.wizard-progress-container {
    margin-bottom: 30px;
}

.wizard-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #183f72, #b31c1b);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

.step-indicator:last-child::before {
    display: none;
}

.step-indicator .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-indicator .step-label {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
    text-align: center;
}

.step-indicator.active .step-number {
    background: #183f72;
    color: #fff;
    box-shadow: 0 2px 10px rgba(24, 63, 114, 0.3);
}

.step-indicator.active .step-label {
    color: #183f72;
    font-weight: 600;
}

.step-indicator.completed .step-number {
    background: #28a745;
    color: #fff;
}

.step-indicator.completed::before {
    background: #28a745;
}

/* ============================================
   WIZARD STEPS
   ============================================ */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

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

.step-title {
    color: #183f72;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.step-subtitle {
    color: #6c757d;
    margin-bottom: 25px;
}

/* ============================================
   DOMAIN CARDS
   ============================================ */
.domain-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.domain-card:hover {
    border-color: #183f72;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(24, 63, 114, 0.15);
}

.domain-card.selected {
    border-color: #183f72;
    background: linear-gradient(135deg, rgba(24, 63, 114, 0.05), rgba(179, 28, 27, 0.05));
    box-shadow: 0 4px 15px rgba(24, 63, 114, 0.2);
}

.domain-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.domain-card {
    position: relative;
}

.domain-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #183f72, #2a5a9e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.domain-icon i {
    font-size: 28px;
    color: #fff;
}

.domain-title {
    color: #183f72;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.domain-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.domain-range {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

.domain-range small {
    color: #183f72;
    font-weight: 600;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.service-card:hover {
    border-color: #183f72;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card.selected {
    border-color: #183f72;
    background: rgba(24, 63, 114, 0.03);
}

.service-card.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.service-title {
    color: #183f72;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
    padding-right: 10px;
}

.service-price {
    background: #183f72;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.service-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.service-timeline,
.service-note {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.service-timeline i,
.service-note i {
    margin-right: 5px;
}

.service-note {
    color: #b31c1b;
}

/* ============================================
   ADD-ON CARDS
   ============================================ */
.addon-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.addon-card:hover {
    border-color: #183f72;
}

.addon-card.selected {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.addon-checkbox i {
    font-size: 20px;
    color: #ccc;
    transition: color 0.3s ease;
}

.addon-card.selected .addon-checkbox i {
    color: #28a745;
}

.addon-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-name {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.addon-price {
    color: #183f72;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   COMPLEXITY / TIMELINE / INDUSTRY OPTIONS
   ============================================ */
.complexity-option,
.timeline-option,
.industry-option {
    display: block;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.complexity-option:hover,
.timeline-option:hover,
.industry-option:hover {
    border-color: #183f72;
}

.complexity-option.selected,
.timeline-option.selected,
.industry-option.selected,
.complexity-option:has(input:checked),
.timeline-option:has(input:checked),
.industry-option:has(input:checked) {
    border-color: #183f72;
    background: rgba(24, 63, 114, 0.05);
}

.complexity-option input,
.timeline-option input,
.industry-option input {
    display: none;
}

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

.option-label {
    display: block;
    font-weight: 600;
    color: #183f72;
    margin-bottom: 5px;
}

.option-multiplier {
    display: block;
    font-size: 0.85rem;
    color: #b31c1b;
    font-weight: 500;
}

.option-desc {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
#contact-form .form-group {
    margin-bottom: 20px;
}

#contact-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

#contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

#contact-form .form-control:focus {
    border-color: #183f72;
    box-shadow: 0 0 0 3px rgba(24, 63, 114, 0.1);
}

/* ============================================
   QUOTE SUMMARY
   ============================================ */
.quote-summary-card {
    background: #fff;
    border: 2px solid #183f72;
    border-radius: 12px;
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, #183f72, #2a5a9e);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-header h4 {
    margin: 0;
    font-weight: 600;
}

.summary-header h4 i {
    margin-right: 10px;
}

.quote-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.summary-section {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.summary-section h5 {
    color: #183f72;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.summary-table {
    width: 100%;
}

.summary-table td {
    padding: 8px 0;
    vertical-align: top;
}

.summary-table td:first-child {
    color: #6c757d;
    width: 50%;
}

.summary-table td:last-child {
    text-align: right;
}

.addon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.addon-list li {
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
}

.addon-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    text-align: right;
}

.summary-total {
    background: linear-gradient(135deg, #183f72, #2a5a9e);
    color: #fff;
    padding: 25px;
    text-align: center;
}

.total-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.total-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.total-note {
    display: block;
    margin-top: 10px;
    opacity: 0.8;
    font-size: 0.85rem;
}

.summary-contact {
    padding: 20px;
    background: #f8f9fa;
}

.summary-contact h5 {
    color: #183f72;
    font-weight: 600;
    margin-bottom: 10px;
}

.summary-contact p {
    margin: 5px 0;
    color: #555;
}

/* ============================================
   LIVE PRICE DISPLAY
   ============================================ */
.live-price-container {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 2px solid #183f72;
    padding: 15px;
    margin: 20px -30px -30px;
    border-radius: 0 0 8px 8px;
}

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

.price-label {
    font-weight: 600;
    color: #333;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #183f72;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    margin-top: 25px;
}

.wizard-navigation .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
}

.wizard-navigation .btn-primary {
    background: #183f72;
    border-color: #183f72;
}

.wizard-navigation .btn-primary:hover {
    background: #122d54;
    border-color: #122d54;
}

.wizard-navigation .btn-outline-secondary {
    border-width: 2px;
}

#submit-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
}

#submit-btn:hover {
    background: linear-gradient(135deg, #218838, #1ab587);
}

#download-pdf-btn {
    background: #b31c1b;
    border-color: #b31c1b;
}

#download-pdf-btn:hover {
    background: #8f1616;
}

/* ============================================
   ALERTS
   ============================================ */
.wizard-alert {
    margin-bottom: 20px;
    border-radius: 6px;
}

/* ============================================
   THANK YOU MESSAGE
   ============================================ */
.thank-you-message {
    text-align: center;
    padding: 50px 20px;
}

.thank-you-message .success-icon {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.thank-you-message h2 {
    color: #183f72;
    margin-bottom: 15px;
}

.thank-you-message .lead {
    color: #28a745;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .quote-wizard {
        padding: 20px 15px;
    }

    .step-indicators {
        display: none;
    }

    .wizard-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .wizard-navigation .btn {
        width: 100%;
    }

    .service-header {
        flex-direction: column;
        gap: 10px;
    }

    .service-price {
        align-self: flex-start;
    }

    .summary-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .total-amount {
        font-size: 2rem;
    }

    .live-price-container {
        margin: 20px -15px -20px;
    }
}

/* ============================================
   SECTION HEADERS (for steps 3+)
   ============================================ */
.options-section {
    margin-bottom: 30px;
}

.options-section h6 {
    color: #183f72;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* ============================================
   TIER CARDS
   ============================================ */
.tier-section,
.addon-section {
    margin-bottom: 30px;
}

.section-title {
    color: #183f72;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.tier-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    text-align: center;
}

.tier-card:hover {
    border-color: #183f72;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 63, 114, 0.15);
}

.tier-card.selected {
    border-color: #183f72;
    background: linear-gradient(135deg, rgba(24, 63, 114, 0.05), rgba(179, 28, 27, 0.02));
    box-shadow: 0 4px 15px rgba(24, 63, 114, 0.2);
}

.tier-card.recommended {
    border-color: #28a745;
}

.tier-card.recommended.selected {
    border-color: #183f72;
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.tier-name {
    color: #183f72;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    margin-top: 15px;
}

.tier-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.tier-price {
    background: #183f72;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tier-price .price-range {
    font-weight: 700;
    font-size: 1rem;
}

.tier-includes {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.tier-includes li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #555;
}

.tier-includes li i {
    color: #28a745;
    margin-right: 8px;
}

/* Add-on recommendations */
.addon-card.recommended {
    border-color: #ffc107;
    position: relative;
}

.addon-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: #ffc107;
    color: #333;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ============================================
   OPTION CARDS (Multipliers)
   ============================================ */
.option-card {
    display: block;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.option-card:hover {
    border-color: #183f72;
}

.option-card.selected {
    border-color: #183f72;
    background: rgba(24, 63, 114, 0.05);
}

.option-card.small {
    padding: 12px;
}

.option-card.small .option-label {
    font-size: 0.9rem;
}

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

.option-label {
    display: block;
    font-weight: 600;
    color: #183f72;
    margin-bottom: 5px;
}

.option-multiplier {
    display: block;
    font-size: 0.85rem;
    color: #b31c1b;
    font-weight: 600;
}

.option-desc {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* ============================================
   BREAKDOWN TABLE
   ============================================ */
.summary-body {
    padding: 20px;
}

.summary-section {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-section:first-child {
    padding-top: 0;
}

.summary-section h6 {
    color: #183f72;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
}

.breakdown-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr:last-child {
    border-bottom: none;
}

.breakdown-table td {
    padding: 10px 0;
    vertical-align: middle;
}

.breakdown-table td:last-child {
    text-align: right;
    font-weight: 500;
}

.breakdown-table .base-row {
    background: #f8f9fa;
}

.breakdown-table .base-row td {
    padding: 12px 10px;
}

.breakdown-table .subtotal-row td {
    font-weight: 600;
    padding-top: 15px;
    border-top: 2px dashed #ddd;
}

.breakdown-table .adjustment-row td {
    color: #666;
    font-size: 0.95rem;
}

/* Updated Summary Total for Range Display */
.summary-total {
    background: linear-gradient(135deg, #183f72, #2a5a9e);
    color: #fff;
    padding: 25px;
    text-align: center;
}

.total-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.total-range {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.total-estimate {
    font-size: 1rem;
    opacity: 0.9;
}

.total-note {
    display: block;
    margin-top: 12px;
    opacity: 0.8;
    font-size: 0.85rem;
}

/* Summary Context (SA specific) */
.summary-context {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.summary-context p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* ============================================
   QUOTE DISCLAIMER & CTA
   ============================================ */
.quote-disclaimer {
    padding: 30px 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 3px solid #183f72;
    text-align: center;
}

.disclaimer-icon {
    margin-bottom: 15px;
}

.disclaimer-icon i {
    color: #183f72;
}

.disclaimer-title {
    color: #183f72;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.disclaimer-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.discount-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 600px;
    text-align: left;
}

.discount-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: #333;
}

.discount-list li i {
    margin-right: 10px;
}

.disclaimer-cta-text {
    color: #183f72;
    font-size: 1.05rem;
    margin-top: 20px;
    margin-bottom: 0;
}

.quote-cta-buttons {
    padding: 25px;
    background: #fff;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 1px solid #e9ecef;
}

.quote-cta-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.quote-cta-buttons .btn-primary {
    background: linear-gradient(135deg, #183f72, #2a5a9e);
    border: none;
}

.quote-cta-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #122d54, #1e4578);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 63, 114, 0.3);
}

.quote-cta-buttons .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
}

.quote-cta-buttons .btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ab587);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.quote-cta-buttons .btn-outline-primary {
    border: 2px solid #183f72;
    color: #183f72;
    background: #fff;
}

.quote-cta-buttons .btn-outline-primary:hover {
    background: #183f72;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 63, 114, 0.2);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS (Updated)
   ============================================ */
@media (max-width: 991px) {
    .tier-card {
        margin-bottom: 20px;
    }

    .tier-includes li {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .quote-wizard {
        padding: 20px 15px;
    }

    .step-indicators {
        display: none;
    }

    .wizard-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .wizard-navigation .btn {
        width: 100%;
    }

    .service-header {
        flex-direction: column;
        gap: 10px;
    }

    .service-price {
        align-self: flex-start;
    }

    .summary-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .total-range {
        font-size: 1.5rem;
    }

    .live-price-container {
        margin: 20px -15px -20px;
    }

    .tier-badge {
        font-size: 0.7rem;
        padding: 3px 12px;
    }

    .option-card {
        margin-bottom: 10px;
    }

    .quote-disclaimer {
        padding: 20px 15px;
    }

    .disclaimer-title {
        font-size: 1.2rem;
    }

    .discount-list {
        font-size: 0.9rem;
    }

    .quote-cta-buttons {
        flex-direction: column;
        padding: 20px 15px;
    }

    .quote-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}