:root {
    --primary-color: #ffcc00;
    --secondary-color: black; 
    --third-color: #d18a14; 
    --fourth-color: #f7f7f7; 
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}


.form-container {
background: white;
width: 100%;
max-width: 400px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
overflow: hidden;
transition: height 0.3s ease-in-out;
height: auto; /* Adjust height dynamically */
}

.form-header {
    display: flex;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: var(--primary-color);
    padding: 10px;
}

.form-header button {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-header button.active {
    background: var(--third-color);
}

.form {
    display: none;
    padding: 20px;
}

.form.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--third-color);
    border-radius: 4px;
    box-sizing: border-box;
}

.form-row {
display: flex;
gap: 10px; /* Space between fields */
flex-wrap: wrap; /* Ensure responsiveness */
}

.form-row .form-group {
flex: 1; /* Allow fields to grow equally */
min-width: calc(50% - 10px); /* Ensure two fields fit side by side */
}

@media (max-width: 480px) {
.form-row {
flex-direction: column; /* Stack fields vertically on small screens */
}

.form-row .form-group {
min-width: 100%; /* Full width on small screens */
}
}


.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
.signup-step  .password-wrapper {
position: relative;
margin-bottom: 30px; /* Reserve space for the error message */
}

.phone-wrapper {
display: flex;
align-items: center;
border: 1px solid var(--third-color);
border-radius: 4px;
padding: 5px;
box-sizing: border-box;
}

.phone-wrapper span {
font-size: 16px;
margin-right: 5px;
color: var(--secondary-color);
}

.phone-wrapper input {
border: none;
flex: 1;
padding: 5px;
outline: none;
}

.error-message{
color: red;
}
.password-wrapper .error-message {
position: absolute;
bottom: -35px;
left: 0;
font-size: 12px;
}

.password-wrapper input {
padding-right: 40px;
}

.password-wrapper .toggle-password {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
}
.form-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
}

.form-btn:hover {
    background: var(--third-color);
}

.form-btn.small {
    width: auto;
    padding: 5px 15px;
    font-size: 14px;
    margin-right: 10px;
}

.signup-step {
    display: none;
}

.signup-step.active {
    display: block;
}

.photo-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.photo-container .photo-box {
    flex: 1;
    height: 100px;
    border: 2px dashed var(--third-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background-color: var(--fourth-color);
    cursor: pointer;
}

.photo-container .photo-box.active {
    border-color: var(--primary-color);
    background-color: var(--third-color);
}

.form-links {
    text-align: center;
    margin-top: 10px;
}

.form-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 5px;
}

.form-links a:hover {
    text-decoration: underline;
}

.back-top {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

@keyframes shake {
0%, 100% {
transform: translateX(0);
}
25% {
transform: translateX(-5px);
}
50% {
transform: translateX(5px);
}
75% {
transform: translateX(-5px);
}
}

.shake {
animation: shake 0.3s;
border-color: red;
}

@media (max-width: 480px) {
    .form-container {
        width: 90%;
    }

    .photo-container {
        flex-direction: column;
        gap: 15px;
    }

    .photo-container .photo-box {
        height: 120px;
    }
}

#car-card-box,
#motorcycle-card-box {
    width: 90%; /* Set the width to 90% */
    height: 50px; /* Set the height to 50px */
    border: 2px dashed #ccc; /* Optional: Add a dashed border */
    border-radius: 8px; /* Optional: Add rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9; /* Light background color */
    color: #555; /* Text color */
    cursor: pointer;
    text-align: center;
}
#car-card-box:hover,
#motorcycle-card-box:hover {
    background-color: #eee; /* Slightly darker background on hover */
}
    

.modal-content {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.photo-box {
  width: 100%;
  height: 200px;
  background-color: #f0f0f0;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
}
