@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #eaffd0, #d1fcb2);
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

/* Card container */
.card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    border-top: 6px solid #7bbf3f;
}

.card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4a772f;
    font-weight: 600;
    font-size: 20px;
}

/* Input group styling */
.input-group {
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 13px;
    color: #3f5e2d;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b9e490;
    border-radius: 10px;
    background-color: #f7fff0;
    font-size: 13px;
    color: #333;
    transition: border 0.3s, background-color 0.3s;
}

/* Dropdown appearance */
.input-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #7bbf3f;
    background-color: #ffffff;
    outline: none;
}

/* Two-column row for first/last name */
.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.input-row .input-group.half {
    flex: 1;
}

/* Submit button styling */
button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background-color: #7bbf3f;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #5a9f28;
}

/* Spinner Overlay */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #cdeaa0;
    border-top: 4px solid #7bbf3f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #7bbf3f;
    color: white;
    padding: 14px 22px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .card {
        padding: 24px 18px;
    }

    .input-row {
        flex-direction: column;
        gap: 0;
    }

    .input-row .input-group.half {
        width: 100%;
    }

    .card h2 {
        font-size: 18px;
    }

    .input-group input,
    .input-group select,
    button {
        font-size: 13px;
    }
}
