/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   BODY (GREEN BACKGROUND)
========================= */
body {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    min-height: 100vh;
    padding: 20px;
    color: #222;
}

/* =========================
   LOGO PLACEHOLDER
========================= */
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo-container img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Optional fallback if no image */
.logo-placeholder {
    width: 100px;
    height: 100px;
    margin: auto;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #2e7d32;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =========================
   FORM CARD
========================= */
form {
    max-width: 500px;
    margin: auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* =========================
   TITLE
========================= */
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1b5e20;
}

/* =========================
   INPUTS
========================= */
input,
select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46,125,50,0.2);
}

/* =========================
   BUTTON
========================= */
button {
    width: 100%;
    padding: 14px;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #1b5e20;
}

/* =========================
   ERROR MESSAGE
========================= */
p[style*="color:red"] {
    background: #ffe5e5;
    border: 1px solid #ffb3b3;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* =========================
   GENDER CARDS
========================= */
.gender-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gender-card {
    flex: 1;
    min-width: 120px;
    cursor: pointer;
}

.gender-card input {
    display: none;
}

.gender-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 14px;
    background: #fafafa;
    transition: 0.2s;
    text-align: center;
}

.gender-card .icon {
    font-size: 22px;
    margin-bottom: 5px;
}

.gender-card:hover .card-content {
    border-color: #2e7d32;
}

.gender-card input:checked + .card-content {
    border-color: #2e7d32;
    background: #e8f5e9;
    font-weight: bold;
}

/* =========================
   CLEAN SPACING
========================= */
form br {
    display: none;
}

form input,
form select,
form .gender-group,
form button {
    margin-bottom: 15px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {

    body {
        padding: 10px;
    }

    form {
        padding: 18px;
    }

    .logo-container img,
    .logo-placeholder {
        width: 80px;
        height: 80px;
    }
}




/* Validation colors */
input, select {
    border: 1px solid #ccc;
}

input.valid, select.valid {
    border-color: #2e7d32;
}

input.invalid, select.invalid {
    border-color: #d32f2f;
}

small {
    font-size: 12px;
    display: block;
    margin-top: 3px;
}

/* Disabled button */
button:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.7;
}