:root {
    --primary-color: #0d3b25;
    /* Deep Green from background */
    --accent-color: #c59d5f;
    /* Gold/Bronze from logo */
    --accent-hover: #b0884a;
    --text-color: #333333;
    --light-text: #ffffff;
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: #e0e0e0;
    --glass-bg: rgba(20, 45, 30, 0.85);
    /* Dark green glass */
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Use a gradient fallback or the branding image as bg */
    background: linear-gradient(135deg, #051c10 0%, #1a4d33 100%);
    color: var(--text-color);
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Optional: Add a subtle texture or pattern overlay */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c59d5f' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.form-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo {
    width: 115%;
    height: auto;
    object-fit: contain;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.header p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-color);
}

.optional {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
    font-style: italic;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

input,
select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: var(--input-bg);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    color: #333;
    appearance: none;
    /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

input:focus,
select:focus {
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 10px rgba(197, 157, 95, 0.3);
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 0.8rem;
}

.row {
    display: flex;
    gap: 15px;
}

.half {
    width: 50%;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, var(--accent-color), var(--accent-hover));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 157, 95, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success Message */
.hidden {
    display: none;
}

#successMessage {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease;
}

.check-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #fff;
}

#successMessage h2 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-btn:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 480px) {
    .row {
        flex-direction: column;
        gap: 0;
    }

    .half {
        width: 100%;
    }

    .form-wrapper {
        padding: 1.5rem;
    }
}

/* Custom Checkbox Styling */
input[type="checkbox"] {
    appearance: auto;
    /* Ensure default appearance first */
    width: 24px;
    min-width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    position: relative;
    margin-right: 12px;
    accent-color: var(--accent-color);
}