/**
 * Canary Connect Multi-Step Form v5.9.1
 * MyHammer-style: One field per step
 */

/* Progress Container - MyHammer Style */
.cc-progress-container {
    margin: 20px 0 30px;
    padding: 0;
}

.cc-progress-container.cc-myhammer-style {
    text-align: center;
}

/* Progress Bar */
.cc-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
}

.cc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00BFA5, #00D4AA);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Step Counter (1/15) */
.cc-step-counter {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.cc-step-counter .cc-current {
    font-weight: 700;
    color: #00BFA5;
}

/* Step Title Display - Large & Prominent */
.cc-step-title-display {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0;
    padding: 0;
    line-height: 1.3;
}

/* Legacy Step Indicators (hidden in MyHammer mode) */
.cc-myhammer-style .cc-step-indicators {
    display: none;
}

/* Step Content */
.cc-step-content {
    animation: fadeIn 0.3s ease;
    min-height: 150px;
}

.cc-step-content[style*="display: none"] {
    display: none !important;
}

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

/* Navigation Container */
.cc-nav-container {
    display: flex;
    justify-content: space-between;
    margin: 30px 0 20px;
    gap: 15px;
}

.cc-nav-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cc-prev-btn {
    background: #f5f5f5;
    color: #333;
}

.cc-prev-btn:hover {
    background: #e0e0e0;
}

.cc-next-btn {
    background: #00BFA5;
    color: #fff;
    margin-left: auto;
}

.cc-next-btn:hover {
    background: #00a896;
}

/* Hide nav buttons when not needed */
.cc-nav-btn[style*="display: none"] {
    display: none !important;
}

/* Form field improvements */
.cc-step-content .hp-form__field {
    margin-bottom: 20px;
}

/* Hide field labels (title is displayed above) - but NOT for grouped steps */
.cc-step-content:not(.cc-grouped-step) .hp-form__field > .hp-form__label:first-child {
    display: none;
}

/* Show all labels in grouped steps */
.cc-step-content.cc-grouped-step .hp-form__field {
    margin-bottom: 25px;
}

.cc-step-content.cc-grouped-step .hp-form__field > .hp-form__label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

/* Budget field styling */
.cc-step-content .hp-form__field--number input,
.cc-step-content .hp-form__field--budget input {
    max-width: 200px;
}

/* But show labels inside complex fields */
.cc-step-content .hp-form__field .hp-field__content .hp-form__label,
.cc-step-content .hp-form__field label:not(.hp-form__label) {
    display: block;
}

/* Radio button styling - Card style like MyHammer */
.cc-step-content .hp-field--radio label,
.cc-step-content .hp-form__field--radio label,
.cc-step-content .hp-form__field input[type="radio"] + label {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-size: 16px;
}

.cc-step-content .hp-field--radio label:hover,
.cc-step-content .hp-form__field--radio label:hover,
.cc-step-content .hp-form__field input[type="radio"] + label:hover {
    border-color: #00BFA5;
    background: #f9fffe;
}

.cc-step-content .hp-field--radio input[type="radio"]:checked + label,
.cc-step-content .hp-form__field--radio input[type="radio"]:checked + label,
.cc-step-content .hp-form__field input[type="radio"]:checked + label {
    border-color: #00BFA5;
    background: #e8f8f5;
}

/* Select dropdown styling */
.cc-step-content select {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.cc-step-content select:hover,
.cc-step-content select:focus {
    border-color: #00BFA5;
    outline: none;
}

/* Text input styling */
.cc-step-content input[type="text"],
.cc-step-content input[type="number"],
.cc-step-content textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.cc-step-content input[type="text"]:focus,
.cc-step-content input[type="number"]:focus,
.cc-step-content textarea:focus {
    border-color: #00BFA5;
    outline: none;
}

/* File upload area */
.cc-step-content .hp-field--attachment,
.cc-step-content .hp-form__field--attachment-upload {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    transition: all 0.2s ease;
}

.cc-step-content .hp-field--attachment:hover,
.cc-step-content .hp-form__field--attachment-upload:hover {
    border-color: #00BFA5;
    background: #f9fffe;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cc-step-title-display {
        font-size: 18px;
    }
    
    .cc-nav-container {
        flex-direction: column;
    }
    
    .cc-nav-btn {
        width: 100%;
    }
    
    .cc-next-btn {
        margin-left: 0;
        order: -1;
    }
    
    .cc-step-content .hp-field--radio label,
    .cc-step-content select,
    .cc-step-content input[type="text"] {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* === Validation error states === */
.cc-validation-error {
    background: #fdf2f2;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.cc-field-error select,
.cc-field-error input[type="text"],
.cc-field-error input[type="number"],
.cc-field-error input[type="tel"],
.cc-field-error input[type="email"],
.cc-field-error textarea {
    border-color: #e74c3c !important;
}

.cc-field-error .select2-container .select2-selection {
    border-color: #e74c3c !important;
}

.cc-field-error .hp-field--radio label,
.cc-field-error .hp-form__field--radio label,
.cc-field-error input[type="radio"] + label,
.cc-field-error input[type="checkbox"] + label {
    border-color: #e74c3c !important;
}

/* Hide title field always */
.hp-form__field--title,
.hp-form__field--titulo {
    display: none !important;
}
