/* Main Container Styles */
.cf-partner-form-widget {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(59, 172, 223, 0.1);
    border-radius: 16px;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Progress Bar */
.cf-progress-container {
    margin-bottom: 2rem;
}

.cf-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

.cf-progress-steps::before {
    content: '';
    background-color: #e0e0e0;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    z-index: 1;
}

.cf-progress-bar {
    background-color: #3BACDF;
    position: relative;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 0%;
    z-index: 2;
    transition: 0.3s ease;
}

.cf-step {
    background-color: #ffffff;
    border: 4px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    z-index: 3;
    position: relative;
    transition: 0.3s ease;
}

.cf-step.cf-active {
    border-color: #3BACDF;
    color: #3BACDF;
}

.cf-step.cf-completed {
    border-color: #3BACDF;
    background-color: #3BACDF;
    color: white;
}

/* Form Title */
.cf-partner-form-widget h2 {
    color: #2b2b2b;
    font-size: 2rem;
    margin-bottom: 2.5rem !important;
    text-align: center;
}

/* Section Styles */
.cf-form-section {
    display: none;
    animation: cf-fadeIn 0.5s;
}
.cf-form-section.cf-active {
    display: block;
}
@keyframes cf-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Group Styles */
.cf-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.cf-form-group label {
    display: block;
    color: #333;
    font-weight: 500;
}

.cf-form-group label.required::after {
    content: '*';
    color: #e02b27;
    margin-left: 4px;
}

/* Input Styling */
.cf-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.cf-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3BACDF;
    pointer-events: none;
}

.cf-form-group input:not([type="checkbox"]):not([type="radio"]),
.cf-form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    height: 45px;
}

input[type=file].cf-file-input {
    padding: 0.55rem 1rem 0.875rem 1.5rem !important;
}

.cf-form-group input:focus,
.cf-form-group textarea:focus {
    border-color: #3BACDF;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 172, 223, 0.1);
    outline: none;
}

/* Error States */
.cf-form-group .cf-field-error {
    display: none;
    color: #e02b27;
}

.cf-form-group.cf-invalid .cf-field-error {
    display: block;
}

.cf-form-group.cf-invalid input,
.cf-form-group.cf-invalid textarea {
    border-color: #e02b27;
    background-color: #fff6f6;
}

.cf-form-group.cf-invalid .cf-input-icon {
    color: #e02b27;
}

/* Checkbox and Radio Styles */
.cf-checkbox-container,
.cf-radio-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.cf-checkbox-item,
.cf-radio-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cf-checkbox-item:hover,
.cf-radio-item:hover {
    background-color: rgba(59, 172, 223, 0.1);
}

.cf-checkbox-item input[type="checkbox"],
.cf-radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    accent-color: #3BACDF;
}

/* File Upload */
.cf-file-upload-container {
    border: 2px dashed #3BACDF;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    background: rgba(59, 172, 223, 0.05);
    cursor: pointer;
    transition: 0.3s ease;
}

.cf-file-upload-container:hover {
    background: rgba(59, 172, 223, 0.1);
}

/* Navigation Buttons */
.cf-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.cf-nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #3BACDF;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
}

.cf-nav-button:hover {
    background: #2d8ab3;
}

.cf-nav-button.cf-previous {
    background: #e0e0e0;
}

.cf-nav-button.cf-previous:hover {
    background: #c0c0c0;
}

/* .cf-form-group.cf-invalid svg.cf-input-icon path{
    fill: #e02b27;
} */

.cf-noinput-icon {
    padding: 0.875rem 1rem 0.875rem 1rem !important;
}

/* Error Animation */
@keyframes cf-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.cf-form-group.cf-invalid.cf-shake input {
    animation: cf-shake 0.3s ease-in-out;
}

/* Adjusted Hover/Active State for Buttons */
button.cf-nav-button {
    color: rgb(45, 138, 179);
    border-color: rgb(45, 138, 179);
    border-radius: 2px;
}
.cf-nav-button:hover {
    background-color: #3BACDF;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cf-partner-form-widget {
        padding: 1.5rem;
        margin: 1rem;
    }
    .cf-progress-steps {
        margin-bottom: 20px;
    }
    .cf-step {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
}

.cf-field-error div.mage-error {
    color: #e02b27;
    font-size: 1em;
    position: absolute;
    top: 45px;
    left: 0;
}

.cf-file-upload-container.cf-drag-over {
    background-color: rgba(59, 172, 223, 0.2);
    border: 2px solid #3BACDF;
}

/* Add More Files Button */
#cf-addMoreFiles {
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #3BACDF;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 400;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

#cf-addMoreFiles:hover {
    background-color: #2d8ab3;
    box-shadow: 0 4px 8px rgba(59, 172, 223, 0.2);
}

#cf-addMoreFiles:active {
    background-color: #1c6d8e;
    box-shadow: none;
}

#cf-addMoreFiles:focus {
    outline: 2px solid rgba(59, 172, 223, 0.5);
    outline-offset: 2px;
}

.cf-file-limit-text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #666;
}
@media (max-width: 768px) {
.cf-field-error div.mage-error {
    font-size: 0.8em;
    }
}