/* Custom CSS Variables for Theme */
:root {
    --primary-color: #38761d;
    /* Deep Forest Green */
    --secondary-color: #6aa84f;
    /* Herbal Green */
    --background-color: #f0fff0;
    /* Light Mint/Honeydew */
    --text-color: #333;
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- Header & Logo --- */
header {
    width: 100%;
    padding: 15px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

/* --- Main Container --- */
.container {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    width: 90%;
    max-width: 500px;
    /* Max width for desktop forms */
    margin: 20px 0;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* --- Tabs --- */
.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab-button {
    flex-grow: 1;
    padding: 10px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    font-weight: bold;
}

/* --- Form Elements --- */
.form-container {
    display: none;
}

.form-container.active {
    display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2e5c14;
    /* Darker green on hover */
}

/* --- Fieldsets for Structure --- */
fieldset {
    border: 1px solid var(--secondary-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

legend {
    color: var(--primary-color);
    font-weight: bold;
    padding: 0 10px;
}

.forgot-link {
    text-align: right;
    margin-bottom: 15px;
}

.forgot-link a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Profile Picture Area --- */
.profile-pic-area {
    text-align: center;
    margin-bottom: 20px;
}

.pic-placeholder {
    display: inline-block;
    width: 100px;
    height: 100px;
    background-color: #eee;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
    border: 2px dashed var(--secondary-color);
}

.pic-placeholder i {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* --- CHATBOT STYLES --- */
.chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    z-index: 1000;
}

.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    display: none;
    /* Hidden by default */
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    font-size: 1.5rem;
    cursor: pointer;
}

.chatbot-body {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: var(--background-color);
}

.bot-message {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px;
    border-radius: 5px 5px 5px 0;
    margin-bottom: 10px;
    display: inline-block;
    max-width: 80%;
}

.chatbot-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.chatbot-footer input {
    flex-grow: 1;
    margin-right: 10px;
    padding: 8px;
}

.chatbot-footer button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
    .container {
        width: 100%;
        margin: 0;
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
    }

    body {
        /* Remove center alignment for full screen use */
        align-items: initial;
    }

    header {
        padding: 10px 0;
    }

    .chatbot-window {
        /* Full width on small screens */
        width: 90%;
        left: 5%;
        right: 5%;
        height: 80%;
        bottom: 80px;
    }
}