/* ContactFlow - Frontend Styles */

.contactflow-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: #9CA8BF;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contactflow-form-title {
    text-align: center;
    color: #FFFFFF;
    font-size: 32px;
    font-weight: 400;
    margin: 0 0 30px;
    line-height: 1.3;
}

.contactflow-form-title em {
    font-style: italic;
}

/* Progress Steps */
.contactflow-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.contactflow-step {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.contactflow-step.active {
    color: #FFFFFF;
    font-weight: 600;
}

.contactflow-step span {
    display: block;
}

/* Progress Bar */
.contactflow-progress-container {
    width: 100%;
    height: 4px;
    background-color: #D1D9E6;
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
}

.contactflow-progress-bar {
    height: 100%;
    background-color: #FF5C35;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Form Steps */
.contactflow-form-step {
    display: none;
}

.contactflow-form-step.active {
    display: block;
}

/* Form Layout */
.contactflow-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contactflow-form-col-6 {
    flex: 1;
    min-width: 0;
}

.contactflow-form-group {
    margin-bottom: 20px;
}

.contactflow-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}

.contactflow-form-group .required {
    color: #FF5C35;
}

/* Form Inputs */
.contactflow-input,
.contactflow-select,
.contactflow-textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #333333;
    font-size: 14px;
    font-family: inherit;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
}

.contactflow-input::placeholder,
.contactflow-textarea::placeholder {
    color: #999999;
}

.contactflow-input:focus,
.contactflow-select:focus,
.contactflow-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 92, 53, 0.3);
}

.contactflow-input.error,
.contactflow-select.error,
.contactflow-textarea.error {
    border: 2px solid #dc3545;
}

.contactflow-error {
    display: block;
    margin-top: 5px;
    color: #FFD4D4;
    font-size: 12px;
}

.contactflow-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox Grid */
.contactflow-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.contactflow-checkbox-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.contactflow-checkbox-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.contactflow-checkbox-item label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    margin: 0;
}

.contactflow-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.contactflow-checkbox-item span {
    color: #FFFFFF;
    font-size: 14px;
}

/* Rating Scale */
.contactflow-rating-scale {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contactflow-rating-scale .rating-label {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
}

.contactflow-radio-label {
    display: inline-block;
    cursor: pointer;
}

.contactflow-radio-label input[type="radio"] {
    display: none;
}

.contactflow-radio-label .radio-custom {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contactflow-radio-label input[type="radio"]:checked + .radio-custom {
    background-color: #FF5C35;
    color: #FFFFFF;
    transform: scale(1.1);
}

.contactflow-radio-label:hover .radio-custom {
    transform: scale(1.05);
}

/* File Upload */
.contactflow-upload-area {
    margin-top: 10px;
}

.contactflow-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.image-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #FF5C35;
    color: #FFFFFF;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.image-preview .remove-image:hover {
    background-color: #E54D2A;
}

.image-preview .upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    padding: 5px;
    font-size: 12px;
    text-align: center;
}

/* Buttons */
.contactflow-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.contactflow-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
}

.contactflow-btn-primary {
    background-color: #FF5C35;
    color: #FFFFFF;
}

.contactflow-btn-primary:hover {
    background-color: #E54D2A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 92, 53, 0.3);
}

.contactflow-btn-primary:disabled {
    background-color: #CCCCCC;
    cursor: not-allowed;
    transform: none;
}

.contactflow-btn-secondary {
    background-color: #FFFFFF;
    color: #333333;
}

.contactflow-btn-secondary:hover {
    background-color: #F5F5F5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Success Message */
.contactflow-success-message {
    text-align: center;
    padding: 60px 20px;
}

.contactflow-success-message .success-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background-color: #28A745;
    color: #FFFFFF;
    font-size: 48px;
}

.contactflow-success-message h3 {
    color: #FFFFFF;
    font-size: 32px;
    margin: 0 0 15px;
}

.contactflow-success-message .success-text {
    color: #FFFFFF;
    font-size: 18px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .contactflow-form-container {
        padding: 30px 20px;
    }
    
    .contactflow-form-title {
        font-size: 24px;
    }
    
    .contactflow-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contactflow-steps {
        font-size: 9px;
        gap: 5px;
    }
    
    .contactflow-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .contactflow-rating-scale {
        justify-content: center;
    }
    
    .contactflow-radio-label .radio-custom {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 12px;
    }
    
    .contactflow-form-actions {
        flex-direction: column-reverse;
    }
    
    .contactflow-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contactflow-steps {
        font-size: 8px;
    }
    
    .contactflow-rating-scale .rating-label {
        width: 100%;
        text-align: center;
    }
    
    .contactflow-rating-scale {
        gap: 5px;
    }
    
    .contactflow-radio-label .radio-custom {
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
}
