/* Global layout */
body {
    font-family: system-ui, sans-serif;
    background-color: #f4f4f4;
    color: #111;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header, main, footer {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

form {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

h2 {
    font-size: 1.25rem;
    color: #222;
    margin-bottom: 12px;
}

p {
    color: #555;
}

/* Form controls */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="file"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #000;
    outline: none;
}

/* Image preview */
#imagePreviewContainer {
    margin-top: 12px;
    text-align: center;
}

#imagePreview {
    width: 100%;
    max-height: 300px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Date & slot pickers */
.date-picker,
.slot-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    width: 100%;
}

.date-button, .slot-button {
    background: #e0e0e0;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
    width: 100%;
}

.date-button.selected,
.slot-button.selected {
    background: #018dff;
    color: white;
    font-weight: bold;
}

.date-button:hover,
.slot-button:hover {
    background: #4da4da;
    color: white;
}

/* Button */
button {
    background: #111;
    color: rgb(0, 0, 0);
    border: none;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

#submitBtn{
    color: white; 
}

button:hover:not(:disabled) {
    background: #4da4da;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Footer */
footer {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 24px 0;
}
