/* In /static/kiosk_style.css */
body {
    background-color: #f4f7f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 2rem 0; /* Add padding for long forms on small screens */
}

.kiosk-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 800px; /* Increase max-width for the form */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.kiosk-header {
    margin-bottom: 2rem;
}

.company-logo {
    max-width: 180px;
    max-height: 90px;
}

h1, h2, h3 {
    color: #333;
}

h3 {
    margin-top: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    text-align: left;
}

p {
    color: #666;
    line-height: 1.6;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block; /* Allow side-by-side buttons */
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-link {
    background: none;
    color: #007bff;
    text-decoration: underline;
    padding: 0.5rem;
    font-size: 1rem;
}

.btn small {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Important for padding */
}

.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Important for padding */
}

/* Result Styles */
.result-container {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid transparent;
}
.result-container.searching { background-color: #e9ecef; border-color: #ced4da; }
.result-container.valid { background-color: #d4edda; border-color: #c3e6cb; color: #155724; }
.result-container.expired, .result-container.not_found { background-color: #fff3cd; border-color: #ffeeba; color: #856404; }
.result-container.error, .result-container.danger { background-color: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.result-container a { margin-top: 1rem; }

/* --- NEW STYLES for Part 3 --- */
.waiver-text-container, .ruleset-text-container {
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: left;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

#minors-section {
    margin-top: 2rem;
}

.minor-form {
    position: relative;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.remove-minor-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
}

.signature-pad-container {
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    margin-bottom: 0.5rem;
}

#signature-pad {
    width: 100%;
    height: 200px;
    cursor: crosshair;
}

.form-actions {
    margin-top: 2rem;
}

.redirect-message {
    font-style: italic;
    color: #666;
    margin-top: 1rem;
}


.kiosk-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end; /* Pushes the button to the right */
    width: 100%;
}

.kiosk-footer .btn-link {
    color: #dc3545; /* A standard 'danger' red */
    text-decoration: none; /* Removes the default underline */
    font-weight: 500;
}

.kiosk-footer .btn-link:hover {
    color: #c82333; /* A slightly darker red for the hover state */
    text-decoration: underline;
}