/* --- FalahCart Advanced Vendor Registration Styles --- */

:root {
    --primary: #233d4d;
    --secondary: #fe7f2d;
    --highlight: #fcca46;
    --supportive: #a1c181;
    --background: #f9f7f3;
    --text-dark: #333333;
    --text-light: #ffffff;
    --error: #d9534f;
    --border-light: #e0e0e0;
}

/* --- Base & Animated Background --- */
.vendor-registration-page-advanced {
    font-family: 'Lora', serif;
    color: var(--text-dark);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 25s infinite ease-in-out;
}

.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -200px; left: -150px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; background: var(--secondary); bottom: -150px; right: -150px; animation-delay: 8s; }
.shape-3 { width: 180px; height: 180px; background: var(--highlight); top: 50%; left: 15%; animation-delay: 16s; }
.shape-4 { width: 120px; height: 120px; background: var(--supportive); bottom: 25%; right: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, 60px) rotate(15deg); }
    50% { transform: translate(-20px, 30px) rotate(-10deg); }
    75% { transform: translate(25px, -40px) rotate(10deg); }
}

/* --- Registration Card Layout --- */
.registration-main {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.registration-card {
    background: var(--text-light);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    padding: 2.5rem 3rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.2s ease-out forwards;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-dark);
    opacity: 0.8;
}

/* --- Progress Bar --- */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}
.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border-light);
    transform: translateY(-50%);
    z-index: 1;
}
.progress-bar .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 33.33%;
}
.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-light);
    border: 3px solid var(--border-light);
    color: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.4s ease;
}
.step p {
    font-size: 0.8rem;
    color: var(--border-light);
    margin-top: 0.5rem;
    font-family: 'Poppins', sans-serif;
    transition: color 0.4s ease;
}
.step.active .step-icon {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--text-light);
    transform: scale(1.1);
}
.step.active p {
    color: var(--secondary);
}

/* --- Form Steps & Fields --- */
#vendor-registration-form {
    position: relative;
}
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.form-step.active {
    display: block;
}

.form-field-group {
    margin-bottom: 1.5rem;
}

.form-field-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-field-group input[type="text"],
.form-field-group input[type="email"],
.form-field-group input[type="tel"],
.form-field-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-field-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(254, 127, 45, 0.2);
}
.form-field-group input.input-error {
    border-color: var(--error);
    animation: shake 0.5s;
}

.form-field-group small {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    display: block;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
}
.checkbox-group input[type="checkbox"] {
    appearance: none; width: 20px; height: 20px;
    border: 2px solid var(--primary); border-radius: 4px;
    margin-right: 10px; cursor: pointer; transition: all 0.2s ease-in-out;
    flex-shrink: 0;
}
.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--secondary); border-color: var(--secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 70%; background-position: center; background-repeat: no-repeat;
}
.checkbox-group label { margin: 0; font-family: 'Lora', serif; }
.checkbox-group a { color: var(--secondary); text-decoration: none; font-weight: bold; }


/* --- Navigation & Buttons --- */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn {
    display: inline-block; background: var(--secondary); color: var(--text-light);
    padding: 12px 30px; border-radius: 50px; text-decoration: none;
    font-family: 'Poppins', sans-serif; font-weight: 600; transition: all 0.3s ease;
    border: none; cursor: pointer; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.btn:hover { background: var(--primary); transform: translateY(-3px); }
.btn-highlight { background: var(--highlight); color: var(--primary); }
.btn-highlight:hover { background: var(--supportive); color: var(--text-light); }
.btn-secondary { background: none; color: var(--primary); border: 2px solid var(--border-light); box-shadow: none; }
.btn-secondary:hover { background: var(--border-light); color: var(--primary); transform: translateY(-3px); }

/* --- Messages & Footer --- */
.error-message {
    color: var(--error); font-size: 0.85rem; padding-top: 5px;
    display: none; opacity: 0; transition: opacity 0.3s;
}
.error-message.visible {
    display: block; opacity: 1; animation: fadeInUp 0.3s;
}
.general-error {
    text-align: center; margin-bottom: 1.5rem; background-color: rgba(217, 83, 79, 0.1);
    padding: 10px; border-radius: 8px; border: 1px solid var(--error);
}

.form-footer {
    text-align: center; margin-top: 2rem;
    font-size: 0.9rem; border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}
.form-footer a { color: var(--secondary); font-weight: bold; text-decoration: none; }

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .vendor-registration-page-advanced { height: auto; min-height: 100vh; padding: 2rem 0; }
    .registration-card { padding: 2rem 1.5rem; }
    .form-header h1 { font-size: 1.8rem; }
    .step p { display: none; } /* Hide text on mobile for cleaner progress bar */
    .form-navigation { flex-direction: column-reverse; gap: 10px; }
    .form-navigation .btn { width: 100%; }
}

