body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    color: #A87BFF;
    font-size: 28px;
    text-decoration: none;
    font-weight: 600;
}

.navbar .menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar .menu li {
    margin-left: 20px;
}

.navbar .menu li a {
    text-decoration: none;
    color: #000000;
}

.container {
    margin-top: 100px;
    padding: 20px;
    flex: 1;
}

.container h1 {
    color: #A87BFF;
    padding: 20px;
}

.subtext {
    margin-top: 10px;
    font-size: 18px;
}

.suggestions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestions span {
    background-color: #F0F0F0;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
}

.input-box {
    margin-top: 30px;
}

.input-box textarea {
    width: 80%;
    height: 100px;
    padding: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
}

.generate-button {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.generate-button button {
    padding: 15px 40px;
    font-size: 18px;
    background-color: #A87BFF;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    width: 50%;
    max-width: 300px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(168, 123, 255, 0.3);
}

.generate-button button:hover {
    background-color: #9C5BFF;
    transform: translateY(-3px);
}

.email-box {
    padding-bottom: 20px;
    display: inline-block;
    background-color: #fff;
}

.email-box input, .email-box button {
    display: block;
    margin: 10px auto;
    border-radius: 10px;
}

.email-box input {
    padding: 10px;
    font-size: 16px;
    width: 250px;
    border-radius: 10px;
}

.email-box button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #A87BFF;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
}

.result {
    margin-top: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

#preview_text {
    position: relative;
    z-index: 1;
    text-align: left;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    color: transparent;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    user-select: none;
}

#preview_text * {
    color: transparent;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.footer {
    background-color: #ececec;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #3c3c3c;
}

.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #A87BFF;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

.disclaimer {
    margin-top: 30px;
}

.disclaimer-text {
    font-size: 12px;
    font-style: italic;
}

/* Location styles */

.location-box {
    margin-top: 20px;
}

.location-label {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    color: #000000;
}

.location-dropdown {
    width: 20%;
    min-width: 260px;
    padding: 10px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
}

.location-dropdown:focus {
    outline: none;
    border-color: #A87BFF;
}

/* Suggestions styles */

.suggestions span {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.suggestions span.visible {
    display: inline-block;
    opacity: 1;
}

/* Care type styles */

.care-type-box {
    margin-top: 20px;
}

.care-type-label {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    color: #000000;
    margin-top: 40px;
}

.care-type-dropdown {
    width: 20%;
    min-width: 150px;
    padding: 10px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
}

.care-type-dropdown:focus {
    outline: none;
    border-color: #A87BFF;
}

/* New styles for forms */

#care-home-form, #home-care-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#care-home-form h3, #home-care-form h3 {
    color: #A87BFF;
    margin-bottom: 20px;
}

.form-group {
    margin-top: 20px;
    text-align: left;
    width: 80%;
    max-width: 600px;
}

.form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    color: #000000;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #A87BFF;
}

/* Spinner animation */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */

@media only screen and (max-width: 600px) {
    .input-box textarea, .result {
        width: 95%;
    }
    .email-box input, .email-box button {
        width: 100%;
    }
    .form-group {
        width: 95%;
    }
    .care-type-dropdown, .location-dropdown {
        width: 95%;
        min-width: unset;
    }
}
