/**
 * Zimcon Cost Estimator - Frontend Styles
 *
 * Extracted from zimcon-cost-estimator.html and scoped under
 * .zimcon-estimator to prevent conflicts with WordPress themes.
 *
 * Design system: #BFF102 (lime), #00312D (dark green), Manrope font, 0px border-radius.
 *
 * @package Zimcon_Booking_System
 * @since 1.0.0
 */

:root {
    --lime: #BFF102;
    --dark-green: #00312D;
    --white: #ffffff;
    --black: #000000;
    --error: #ff4444;
}

/* Force Manrope on all elements — overrides Elementor / theme fonts */
.zimcon-estimator,
.zimcon-estimator *,
.zimcon-estimator *::before,
.zimcon-estimator *::after {
    font-family: 'Manrope', sans-serif !important;
    border-radius: 0 !important;
    box-sizing: border-box;
}

/* Override Elementor accent color on interactive elements */
.zimcon-estimator button:focus,
.zimcon-estimator button:active,
.zimcon-estimator input:focus,
.zimcon-estimator select:focus,
.zimcon-estimator textarea:focus,
.zimcon-estimator a:focus {
    outline-color: var(--lime) !important;
    box-shadow: 0 0 0 3px rgba(191, 241, 2, 0.1) !important;
}

/* Prevent Elementor from injecting its accent/brand colour */
.zimcon-estimator .elementor-widget-container,
.zimcon-estimator .e-con,
.zimcon-estimator .e-con-inner {
    --e-global-color-accent: #BFF102 !important;
}

.zimcon-estimator .estimator-wrapper {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
}

.zimcon-estimator .estimator-container {
    width: 100%;
    max-width: 700px;
    background: var(--white);
    border: 2px solid var(--dark-green);
}

.zimcon-estimator .header {
    background: var(--dark-green);
    color: var(--white);
    padding: 40px 50px;
    text-align: center;
}

.zimcon-estimator .header h1 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.zimcon-estimator .header p {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.9;
}

.zimcon-estimator .progress-tracker {
    display: flex;
    background: var(--lime);
    padding: 0;
    overflow: hidden;
}

.zimcon-estimator .progress-step {
    flex: 1;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: var(--dark-green);
    opacity: 0.4;
    transition: all 0.3s ease;
    position: relative;
}

.zimcon-estimator .progress-step.active {
    opacity: 1;
    font-weight: 500;
    background: rgba(0, 49, 45, 0.1);
}

.zimcon-estimator .progress-step.completed {
    opacity: 0.7;
}

.zimcon-estimator .progress-step::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: var(--dark-green);
    opacity: 0.2;
}

.zimcon-estimator .progress-step:last-child::after {
    display: none;
}

.zimcon-estimator .progress-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border: 1px solid var(--dark-green);
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
}

.zimcon-estimator .progress-step.active .progress-number {
    background: var(--dark-green);
    color: var(--lime);
}

.zimcon-estimator .progress-step.completed .progress-number {
    background: var(--dark-green);
    color: var(--lime);
}

.zimcon-estimator .form-content {
    padding: 50px;
}

.zimcon-estimator .step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.zimcon-estimator .step.active {
    display: block;
}

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

.zimcon-estimator .step-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--dark-green);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.zimcon-estimator .step-description {
    font-size: 15px;
    font-weight: 300;
    color: var(--dark-green);
    opacity: 0.7;
    margin-bottom: 35px;
    line-height: 1.5;
}

.zimcon-estimator .form-group {
    margin-bottom: 28px;
}

.zimcon-estimator label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-green);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.zimcon-estimator .required {
    color: var(--error);
}

.zimcon-estimator input[type="text"],
.zimcon-estimator input[type="email"],
.zimcon-estimator input[type="tel"],
.zimcon-estimator select,
.zimcon-estimator textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--dark-green);
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--dark-green);
    background: var(--white);
    transition: all 0.2s ease;
}

.zimcon-estimator input:focus,
.zimcon-estimator select:focus,
.zimcon-estimator textarea:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(191, 241, 2, 0.1);
}

.zimcon-estimator input.error,
.zimcon-estimator select.error,
.zimcon-estimator textarea.error {
    border-color: var(--error);
}

.zimcon-estimator .error-message {
    display: none;
    font-size: 13px;
    font-weight: 400;
    color: var(--error);
    margin-top: 8px;
}

.zimcon-estimator .error-message.show {
    display: block;
}

.zimcon-estimator .radio-group,
.zimcon-estimator .checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.zimcon-estimator .radio-option,
.zimcon-estimator .checkbox-option {
    position: relative;
    display: block;
}

.zimcon-estimator .radio-option input,
.zimcon-estimator .checkbox-option input {
    position: absolute;
    opacity: 0;
}

.zimcon-estimator .radio-label,
.zimcon-estimator .checkbox-label {
    display: flex;
    align-items: center;
    padding: 18px;
    border: 2px solid var(--dark-green);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 300;
}

.zimcon-estimator .radio-label:hover,
.zimcon-estimator .checkbox-label:hover {
    background: rgba(191, 241, 2, 0.05);
}

.zimcon-estimator .radio-option input:checked + .radio-label,
.zimcon-estimator .checkbox-option input:checked + .checkbox-label {
    background: var(--lime);
    border-color: var(--dark-green);
}

.zimcon-estimator .radio-marker,
.zimcon-estimator .checkbox-marker {
    width: 20px;
    height: 20px;
    border: 2px solid var(--dark-green);
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
}

.zimcon-estimator .radio-marker {
    border-radius: 50%;
}

.zimcon-estimator .radio-marker::after,
.zimcon-estimator .checkbox-marker::after {
    content: '';
    position: absolute;
    display: none;
}

.zimcon-estimator .radio-marker::after {
    width: 10px;
    height: 10px;
    background: var(--dark-green);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.zimcon-estimator .checkbox-marker::after {
    width: 6px;
    height: 10px;
    border: solid var(--dark-green);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 2px;
    left: 6px;
}

.zimcon-estimator .radio-option input:checked + .radio-label .radio-marker::after,
.zimcon-estimator .checkbox-option input:checked + .checkbox-label .checkbox-marker::after {
    display: block;
}

.zimcon-estimator .label-content {
    flex: 1;
}

.zimcon-estimator .label-title {
    font-size: 15px;
    font-weight: 400;
    color: var(--dark-green);
    display: block;
    margin-bottom: 4px;
}

.zimcon-estimator .label-subtitle {
    font-size: 13px;
    font-weight: 300;
    color: var(--dark-green);
    opacity: 0.6;
}

.zimcon-estimator .price-tag {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-green);
}

.zimcon-estimator .form-navigation {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 49, 45, 0.1);
}

.zimcon-estimator .btn {
    flex: 1;
    padding: 18px 30px;
    border: 2px solid var(--dark-green);
    background: var(--white);
    color: var(--dark-green);
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.zimcon-estimator .btn:hover {
    background: var(--dark-green);
    color: var(--white);
}

.zimcon-estimator .btn-primary {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--dark-green);
}

.zimcon-estimator .btn-primary:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    color: var(--lime);
}

.zimcon-estimator .btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.zimcon-estimator .btn:disabled:hover {
    background: var(--white);
    color: var(--dark-green);
}

.zimcon-estimator .summary-container {
    background: rgba(191, 241, 2, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid var(--lime);
}

.zimcon-estimator .summary-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--dark-green);
    margin-bottom: 20px;
}

.zimcon-estimator .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 49, 45, 0.1);
    font-size: 14px;
}

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

.zimcon-estimator .summary-label {
    font-weight: 300;
    color: var(--dark-green);
    opacity: 0.8;
}

.zimcon-estimator .summary-value {
    font-weight: 500;
    color: var(--dark-green);
}

.zimcon-estimator .summary-item--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.zimcon-estimator .total-price {
    background: var(--dark-green);
    color: var(--white);
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zimcon-estimator .total-label {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.zimcon-estimator .total-amount {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.zimcon-estimator .guarantee-note {
    background: var(--lime);
    padding: 20px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 400;
    color: var(--dark-green);
    line-height: 1.6;
}

.zimcon-estimator .final-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.zimcon-estimator .btn-book {
    width: 100%;
    padding: 20px;
    background: var(--lime);
    border: 2px solid var(--lime);
    color: var(--dark-green);
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.zimcon-estimator .btn-book:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    color: var(--lime);
}

.zimcon-estimator .info-box {
    background: rgba(0, 49, 45, 0.05);
    padding: 15px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--dark-green);
}

.zimcon-estimator .addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border: 2px solid var(--dark-green);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.zimcon-estimator .addon-item:hover {
    background: rgba(191, 241, 2, 0.05);
}

.zimcon-estimator .addon-item.included {
    background: rgba(191, 241, 2, 0.15);
    border-color: var(--lime);
    opacity: 0.7;
}

.zimcon-estimator .addon-info {
    flex: 1;
}

.zimcon-estimator .addon-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-green);
    margin-bottom: 4px;
}

.zimcon-estimator .addon-description {
    font-size: 13px;
    font-weight: 300;
    color: var(--dark-green);
    opacity: 0.7;
}

.zimcon-estimator .addon-included-badge {
    display: inline-block;
    background: var(--lime);
    color: var(--dark-green);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
    letter-spacing: 0.3px;
}

.zimcon-estimator .addon-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zimcon-estimator .addon-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-green);
    min-width: 80px;
    text-align: right;
}

.zimcon-estimator .quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zimcon-estimator .quantity-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--dark-green);
    margin-right: 5px;
}

.zimcon-estimator .quantity-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--dark-green);
    background: var(--white);
    color: var(--dark-green);
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zimcon-estimator .quantity-btn:hover:not(:disabled) {
    background: var(--lime);
}

.zimcon-estimator .quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.zimcon-estimator .quantity-input {
    width: 50px;
    height: 32px;
    border: 2px solid var(--dark-green);
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
}

.zimcon-estimator .quantity-input:disabled {
    background: rgba(0, 49, 45, 0.05);
    cursor: not-allowed;
}

.zimcon-estimator .vat-breakdown {
    background: rgba(0, 49, 45, 0.05);
    padding: 20px;
    margin-top: 10px;
    font-size: 14px;
}

.zimcon-estimator .vat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.zimcon-estimator .vat-label {
    font-weight: 300;
    color: var(--dark-green);
}

.zimcon-estimator .vat-value {
    font-weight: 500;
    color: var(--dark-green);
}

@media (max-width: 768px) {
    .zimcon-estimator .header {
        padding: 30px 25px;
    }

    .zimcon-estimator .header h1 {
        font-size: 24px;
    }

    .zimcon-estimator .form-content {
        padding: 30px 25px;
    }

    .zimcon-estimator .progress-step {
        padding: 15px 10px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .zimcon-estimator .progress-number {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 11px;
        margin-bottom: 5px;
    }

    .zimcon-estimator .step-title {
        font-size: 20px;
    }

    .zimcon-estimator .step-description {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .zimcon-estimator .radio-label,
    .zimcon-estimator .checkbox-label {
        padding: 14px;
        min-height: 48px;
    }

    .zimcon-estimator .addon-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .zimcon-estimator .addon-controls {
        width: 100%;
        justify-content: space-between;
    }

    .zimcon-estimator .form-navigation {
        flex-direction: column;
    }

    .zimcon-estimator .btn {
        width: 100%;
    }

    .zimcon-estimator .summary-container {
        padding: 20px;
    }

    .zimcon-estimator .total-price {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .zimcon-estimator .progress-step span {
        display: none;
    }

    .zimcon-estimator .progress-step.active span {
        display: block;
    }

    .zimcon-estimator .header {
        padding: 25px 20px;
    }

    .zimcon-estimator .header h1 {
        font-size: 20px;
    }

    .zimcon-estimator .header p {
        font-size: 14px;
    }

    .zimcon-estimator .form-content {
        padding: 25px 20px;
    }

    .zimcon-estimator .step-title {
        font-size: 18px;
    }

    .zimcon-estimator input[type="text"],
    .zimcon-estimator input[type="email"],
    .zimcon-estimator input[type="tel"],
    .zimcon-estimator select,
    .zimcon-estimator textarea {
        padding: 12px;
        font-size: 14px;
    }

    .zimcon-estimator .btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .zimcon-estimator .summary-item {
        flex-direction: column;
        gap: 4px;
    }

    .zimcon-estimator .summary-label {
        font-size: 12px;
    }

    .zimcon-estimator .summary-value {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .zimcon-estimator .header {
        padding: 20px 15px;
    }

    .zimcon-estimator .form-content {
        padding: 20px 15px;
    }

    .zimcon-estimator .progress-step {
        padding: 12px 6px;
        font-size: 10px;
    }
}
