/* Progress Bar Styles */
.mold-progress-bar-wrapper {
    margin: 15px 0;
    text-align: center;
}

.mold-progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background-color: #F2F2F2;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 5px;
}

.mold-progress {
    width: 0;
    height: 100%;
    background-color: #336BFD;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.mold-progress-val {
    font-weight: bold;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
    padding: 10px;
    min-width: 250px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.button {
    background-color: #336BFD;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #2651c9;
}

.prev-step {
    background-color: #666;
    margin-right: 10px;
}

.prev-step:hover {
    background-color: #555;
}

.form-success-message {
    background-color: #e0ffe0;
    border: 1px solid #00b000;
    color: #006600;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.error {
    border-color: #ff0000 !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .form-col {
        flex: 100%;
    }
}

/* Enhanced Form Error and Success Styling */
.error-field {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.error-empty,
.error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

/* Form Step Transitions */
.form-step {
    transition: opacity 0.3s ease-in-out;
}

.form-step.active {
    opacity: 1;
}

.form-step:not(.active) {
    opacity: 0;
}

/* Button Loading State */
.step-button-post:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Progress Bar Enhancement */
.mold-progress-bar {
    position: relative;
    overflow: hidden;
}

.mold-progress {
    transition: width 0.6s ease;
}

/* Mobile Responsiveness for Forms */
@media (max-width: 768px) {
    .step-flex-fields {
        flex-direction: column;
    }
    
    .col-item-50 {
        width: 100% !important;
        margin-bottom: 15px;
    }
    
    .form-navigation {
        text-align: center;
    }
    
    .prev-button,
    .next-button,
    .step-button-post {
        width: 100%;
        margin: 5px 0;
    }
}

/* Radio Button Styling */
.field-radio {
    margin-right: 10px;
}

.container-yes,
.container-no {
    display: inline-block;
    /* margin-right: 20px; */
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.container-yes:hover,
.container-no:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.field-radio:checked + .container-yes,
.field-radio:checked + .container-no {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* Form Field Focus States */
.field-text:focus,
.field-email:focus,
.field-phone:focus,
.field-textarea:focus,
.field-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

/* Detailed Success Message Styling */
.detailed-success-message {
    animation: fadeInSlideUp 0.6s ease-out;
}

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

.detailed-success-message .site_btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Mobile responsiveness for success message */
@media (max-width: 768px) {
    .detailed-success-message {
        padding: 20px !important;
        margin: 20px 0 !important;
    }
    
    .detailed-success-message .site_btn {
        display: block !important;
        margin: 10px auto !important;
        width: 80%;
        text-align: center;
    }
    
    .detailed-success-message h2 {
        font-size: 22px !important;
    }
    
    .detailed-success-message h3 {
        font-size: 18px !important;
    }
}
