/* Klimatek Configurator Styles */

.klimatek-configurator-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.klimatek-configurator {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.configurator-header {
    text-align: left;
    margin-bottom: 40px;
}

.configurator-header h2 {
    color: #2874A6;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.configurator-header p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Progress Indicator */
.configurator-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.configurator-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

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

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle,
.progress-step.completed .progress-circle {
    background: #2874A6;
    border-color: #2874A6;
    color: #fff;
}

.progress-label {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Form Steps */
.configurator-step {
    display: none;
}

.configurator-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.configurator-step h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.configurator-step h2 {
    color: #2874A6;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Option Grid */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    position: relative;
    cursor: pointer;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #2874A6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 116, 166, 0.2);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.option-card input:checked + .option-content {
    color: #2874A6;
}

.option-card input:checked ~ .option-content::before {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #2874A6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.option-card input:checked {
    border-color: #2874A6;
}

.option-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.option-content img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.option-content span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: #2874A6;
    background: #f0f7fc;
}

.radio-option input,
.checkbox-option input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option input:checked + span,
.checkbox-option input:checked + span {
    color: #2874A6;
    font-weight: 600;
}

.radio-option span,
.checkbox-option span {
    font-size: 16px;
    color: #333;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.checkbox-card input[type="checkbox"]:checked + .option-content::before {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #2874A6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2874A6;
    box-shadow: 0 0 0 3px rgba(40, 116, 166, 0.1);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2874A6;
    color: #fff;
}

.btn-primary:hover {
    background: #1f5a85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 116, 166, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Success and Error Messages */
.configurator-success,
.configurator-error {
    text-align: center;
    padding: 60px 20px;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.success-icon {
    background: #27ae60;
    color: #fff;
}

.error-icon {
    background: #e74c3c;
    color: #fff;
}

.configurator-success h2,
.configurator-error h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
}

.configurator-success p,
.configurator-error p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.retry-submit {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .klimatek-configurator {
        padding: 25px 15px;
    }

    .configurator-header h2 {
        font-size: 22px;
    }

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

    .configurator-step h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .configurator-step h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* Smaller option grid on tablets */
    .option-grid,
    .checkbox-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .option-card {
        padding: 15px 10px;
    }

    .option-content img {
        width: 60px;
        height: 60px;
    }

    .option-content span {
        font-size: 13px;
    }

    /* Progress indicator adjustments */
    .progress-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .progress-label {
        font-size: 12px;
    }

    /* Form adjustments */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .radio-option,
    .checkbox-option {
        padding: 12px 15px;
    }

    .radio-option span,
    .checkbox-option span {
        font-size: 14px;
    }

    /* Button adjustments */
    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .klimatek-configurator-wrapper {
        padding: 0 10px;
        margin: 20px auto;
    }

    .klimatek-configurator {
        padding: 20px 12px;
    }

    .configurator-header {
        margin-bottom: 25px;
    }

    .configurator-header h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .configurator-header p {
        font-size: 13px;
        line-height: 1.5;
    }

    .configurator-step h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .configurator-step h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* Progress indicator - stack on very small screens */
    .configurator-progress {
        margin-bottom: 25px;
    }

    .configurator-progress::before {
        display: none;
    }

    .progress-step {
        flex: 0 0 25%;
    }

    .progress-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin-bottom: 5px;
    }

    .progress-label {
        font-size: 10px;
    }

    /* Two columns for option grid on mobile */
    .option-grid,
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .option-card {
        padding: 12px 8px;
        border-radius: 6px;
    }

    .option-content {
        gap: 8px;
    }

    .option-content img {
        width: 50px;
        height: 50px;
    }

    .option-content span {
        font-size: 12px;
        line-height: 1.2;
    }

    /* Checkmark adjustment for smaller cards */
    .option-card input:checked ~ .option-content::before,
    .checkbox-card input[type="checkbox"]:checked + .option-content::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: -8px;
        right: -8px;
    }

    /* Radio and checkbox lists */
    .radio-group,
    .checkbox-list {
        gap: 10px;
        margin-bottom: 20px;
    }

    .radio-option,
    .checkbox-option {
        padding: 10px 12px;
        border-radius: 6px;
    }

    .radio-option input,
    .checkbox-option input {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }

    .radio-option span,
    .checkbox-option span {
        font-size: 13px;
    }

    /* Form inputs */
    .form-grid {
        gap: 15px;
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Buttons */
    .button-group {
        margin-top: 20px;
        gap: 8px;
    }

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

    /* Success/Error messages */
    .configurator-success,
    .configurator-error {
        padding: 40px 15px;
    }

    .success-icon,
    .error-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
        margin-bottom: 15px;
    }

    .configurator-success h2,
    .configurator-error h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .configurator-success p,
    .configurator-error p {
        font-size: 14px;
    }
}

/* Extra small devices (very small phones) */
@media (max-width: 360px) {
    .option-grid,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .option-card {
        padding: 15px;
    }

    .option-content {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }

    .option-content img {
        width: 45px;
        height: 45px;
    }

    .option-content span {
        font-size: 14px;
        text-align: left;
    }
}

