/* Add your existing form styles here */
.ratin-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.ratin-form .form-step {
    display: none;
}
.ratin-form .form-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

.ratin-form .progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}
.ratin-form .progress {
    width: 0%;
    height: 100%;
    background: #007bff;
    transition: width 0.4s ease;
}

.ratin-form .form-group {
    margin-bottom: 20px;
}
.ratin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}
.ratin-form input[type="text"],
.ratin-form input[type="tel"],
.ratin-form input[type="email"],
.ratin-form input[type="url"],
.ratin-form input[type="number"],
.ratin-form select,
.ratin-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}
.ratin-form textarea {
    resize: vertical;
    min-height: 100px;
}

.ratin-form .form-row {
    display: flex;
    gap: 20px;
}
.ratin-form .form-row .form-group {
    flex: 1;
}

.ratin-form .btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.ratin-form .next-btn,
.ratin-form .prev-btn,
.ratin-form .submit-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.ratin-form .next-btn,
.ratin-form .submit-btn {
    background-color: #007bff;
    color: white;
}
.ratin-form .next-btn:hover,
.ratin-form .submit-btn:hover {
    background-color: #0056b3;
}
.ratin-form .prev-btn {
    background-color: #6c757d;
    color: white;
}
.ratin-form .prev-btn:hover {
    background-color: #5a6268;
}

/* Success Modal Styles */
.success-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.5s;
}

.success-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.5s;
}

.success-content i {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.success-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.close-success-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.close-success-btn:hover {
    background-color: #0056b3;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* Style for error messages inside each step */
.step-error-message {
    display: none; /* Hidden by default */
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Style for the main error container at the top of the form */
.form-error-container {
    display: none; /* Hidden by default */
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    animation: slideDown 0.3s ease-in-out;
}

/* A simple animation for showing errors */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style for error messages inside each step */
.step-error-message {
    display: none; /* Hidden by default */
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px !important;
    border-radius: 5px !important;
    margin-top: 10px !important;
    margin-bottom: 15px !important;
    font-size: 14px;
    animation: fadeIn 0.3s ease-in-out;
}

/* A simple animation for showing errors */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}