@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

body {
    font-family: 'Lato', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* For admin page, make wider on larger screens */
.admin-container {
    max-width: 1200px;
}

.header {
    margin-bottom: 30px;
}

h1 {
    color: #2e8b57;
    margin: 0 0 5px 0;
    font-size: 2.2em;
    font-weight: 700;
}

.location {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 300;
}

h2 {
    color: #2e8b57;
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.subtitle {
    color: #555;
    margin: 0;
    font-size: 1.1em;
    line-height: 1.4;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.message {
    margin-top: 20px;
    padding: 12px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    font-size: 1em;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

form {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2e8b57;
    box-shadow: 0 0 5px rgba(46, 139, 87, 0.3);
}

select {
    background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjNDQ0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDEzLjMwNmwtNC4xNC00LjE0YTEuMjUgMS4yNSAwIDEgMSAxLjY5OC0xLjg4NGw0IDQtYTEuMjUgMS4yNSAwIDAgMSAwIDEuNzU5bC00IDUtYTEuMjUgMS4yNSAwIDEgMS0xLjY5OC0xLjg4NEw3LjE0NCAxMnoiLz4KPC9zdmc+');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 30px;
    appearance: none;
    -webkit-appearance: none;
}

input[type="submit"] {
    background: linear-gradient(135deg, #2e8b57 0%, #228b22 100%);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.2em;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

input[type="submit"]:active {
    transform: translateY(0);
}

.table-container {
    max-height: 70vh; /* Make it scrollable if long */
    overflow-y: auto;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #2e8b57;
    color: #fff;
    font-weight: 700;
}

tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

tbody tr:hover {
    background-color: rgba(46, 139, 87, 0.1);
}

.g-recaptcha {
    display: inline-block;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fafafa;
    vertical-align: middle;
}

label[for="dropoff"] {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: red;
    text-align: left;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 25px;
        margin: 10px;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.3em;
    }
    .subtitle {
        font-size: 1em;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select {
        font-size: 1em;
    }
    input[type="submit"] {
        font-size: 1.1em;
        padding: 12px;
    }
    .table-container {
        padding: 10px;
        font-size: 0.8em;
        overflow-x: auto;
    }
    table {
        font-size: 0.8em;
    }
    th, td {
        padding: 8px 4px;
    }
}
