:root {
    --primary-color: #004d40;
    --secondary-color: #c8e6c9;
    --accent-color: #00695c;
    --bg-color: #d1dad7;
    --card-bg: #ffffff;
    --text-color: #1a1a1a;
    --border-radius: 24px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Outfit', sans-serif;
    background: url('../img/bg.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align to the top */
    padding-top: 50px;
    /* Space from the top edge */
    margin: 0;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 40px;
    border: none;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    justify-content: flex-end;
}

.logo {
    max-width: 120px;
    height: auto;
}

h1 {
    text-align: left;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

input,
select,
textarea {
    width: 100%;
    height: 48px;
    /* Fixed height for consistency */
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    transition: var(--transition);
    box-sizing: border-box;
    appearance: none;
    /* Remove default styling for cross-browser consistency */
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

textarea {
    height: auto;
    padding: 12px 16px;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

input.error,
select.error {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(234, 4, 54, 0.705) !important;
}

.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: var(--primary-color);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 77, 64, 0.2);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    max-width: 400px;
}

.popup h2 {
    color: #27ae60;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 480px) {
    .card {
        padding: 20px;
    }
}