/*------------------------------
   # Popup Form Container
------------------------------*/

/* Default: Desktop */
.popup-form-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

/* When popup is active (slide in) */
.popup-form-container.active {
    right: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .popup-form-container {
        width: 90vw;
        /* Use 90% of viewport width */
        right: -100vw;
        /* Move it completely off screen */
    }

    .popup-form-container.active {
        right: 0;
    }
}

/*------------------------------
   # Multi-step Form
------------------------------*/
.multi-step-form .form-step {
    display: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 15px;
    animation: slideIn 0.4s ease;
}

.multi-step-form .form-step.active {
    display: flex;
    visibility: visible;
    height: auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form elements styling */
.multi-step-form label {
    font-weight: bold;
    margin-top: 10px;
}

.multi-step-form input,
.multi-step-form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Buttons */
.multi-step-form .next-btn,
.multi-step-form button[type="submit"] {
    margin-top: 20px;
    padding: 10px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Popup Close Button */
.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
    z-index: 10000;
}

.popup-close-btn:hover {
    color: red;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    accent-color: var(--accent-color);
    /* optional: style the radio */
}

.multi-step-form label:not(.radio-group label) {
    margin-bottom: 5px;
}


.form-step {
  display: none;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.form-step.active {
  display: block;
}

.form-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
}
