/* Conditional Form - HVAC System Recommender */

.conditional-form-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
    position: relative;
    border-radius: 12px;
    box-sizing: border-box;
}

.conditional-form-wrapper *,
.conditional-form-wrapper *::before,
.conditional-form-wrapper *::after {
    box-sizing: border-box;
}

/* Form Title */
.cf-form-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px;
    color: #ffffff;
}

/* Step Indicator */
.cf-step-indicator {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Steps */
.cf-step {
    position: relative;
}

.cf-step-heading {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 25px;
    color: #ffffff;
}

.cf-step-subheading {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: -15px 0 20px;
}

/* Step 1 - Cards */
.cf-step1-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.cf-step1-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
    flex: 1;
    max-width: 200px;
    position: relative;
}

.cf-step1-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cf-step1-card.selected {
    border-color: #2196F3;
}

.cf-step1-card.selected::after {
    content: '\2713';
    font-family: inherit;
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #2196F3;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 24px;
}

.cf-card-icon {
    margin-bottom: 15px;
}

.cf-card-icon i {
    font-size: 36px;
    color: #1a2332;
}

.cf-card-icon img {
    max-width: 60px;
    height: auto;
}

.cf-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a2332;
    line-height: 1.3;
}

/* Step 2 - Options */
.cf-step2-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.cf-step2-option {
    background: #ffffff;
    border: 3px solid transparent;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 500;
    color: #1a2332;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.cf-step2-option:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Step 3 - Results */
.cf-results-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cf-result-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.cf-result-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
    flex: 1;
    max-width: 260px;
    position: relative;
}

.cf-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cf-result-card.selected {
    border-color: #2196F3;
}

.cf-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cf-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 8px;
}

.cf-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 18px;
}

.cf-card-pricing {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.cf-price-monthly,
.cf-price-total {
    text-align: center;
}

.cf-price-label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cf-price-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a2332;
}

/* Step 3 - Confirmation Text */
.cf-confirmation-text {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px;
    line-height: 1.4;
}

/* Step 3 - Colored Divider */
.cf-colored-divider {
    border: none;
    height: 3px;
    background-color: #4fb8d4;
    margin: 0 0 20px;
}

/* Step 3 - Card Footer */
.cf-card-footer {
    font-size: 12px;
    color: #666;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.cf-footer-check {
    color: #4CAF50;
    font-weight: 700;
    margin-right: 4px;
}

/* Step 3 - Price Layout (new vertical layout) */
.cf-card-pricing--vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid #eee;
    padding-top: 15px;
    gap: 8px;
}

.cf-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.cf-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1a2332;
}

.cf-price-amount--total {
    font-size: 20px;
}

.cf-price-suffix {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

/* Result card left-aligned variant */
.cf-result-card--left {
    text-align: left;
}

/* Step 3 - Contact Form */
.cf-form-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 500px;
    margin: 0 auto 25px;
}

.cf-form-field {
    display: flex;
    flex-direction: column;
}

.cf-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.cf-form-required {
    color: #e53935;
    margin-left: 2px;
}

.cf-form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 6px;
    border: 2px solid transparent;
    background-color: #ffffff;
    color: #1a2332;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.cf-form-input:focus {
    border-color: #2196F3;
}

.cf-form-input.cf-error {
    border-color: #e53935;
}

.cf-form-error-msg {
    font-size: 12px;
    color: #e53935;
    margin-top: 4px;
}

.cf-form-error-general {
    text-align: center;
    font-size: 14px;
    color: #e53935;
    margin-bottom: 15px;
}

.cf-form-disclaimer {
    max-width: 500px;
    margin: 0 auto 25px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    text-align: center;
}

.cf-form-disclaimer a {
    color: #4fb8d4;
    text-decoration: underline;
}

.cf-form-disclaimer a:hover {
    opacity: 0.8;
}

.cf-btn-submit {
    background-color: #2196F3;
    color: #ffffff;
}

.cf-btn-submit:hover:not(:disabled) {
    opacity: 0.9;
}

.cf-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Navigation Buttons */
.cf-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.cf-btn-next,
.cf-btn-prev {
    padding: 12px 35px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.cf-btn-next {
    background-color: #2196F3;
    color: #ffffff;
}

.cf-btn-next:hover:not(:disabled) {
    opacity: 0.9;
}

.cf-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cf-btn-prev {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cf-btn-prev:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .cf-step1-cards,
    .cf-result-cards {
        flex-direction: column;
        align-items: center;
    }

    .cf-step1-card,
    .cf-result-card {
        max-width: 100%;
        width: 100%;
    }

    .cf-step-indicator {
        position: relative;
        top: auto;
        right: auto;
        text-align: center;
        margin-bottom: 15px;
    }

    .conditional-form-wrapper {
        padding: 25px 20px !important;
    }

    .cf-form-title {
        font-size: 20px;
    }

    .cf-step-heading {
        font-size: 18px;
    }
}
