/* frontend/css/frontend-styles.css */

/* General Layout */
.cev-registration-form-container {
    max-width: 900px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cev-registration-form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.pdf-interactive-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Wrapper for all pages, enabling scrolling if needed */
.pdf-viewer-and-overlay-wrapper {
    width: 100%;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: #fff;
    border-radius: 4px;
}

/* Individual page container */
.pdf-page-container {
    position: relative; /* Essential for positioning overlay over each page */
    width: 100%;
    margin-bottom: 10px; /* Space between pages */
    box-sizing: content-box; /* Changed from border-box to fix positioning calculation */
    border-bottom: 1px dashed #eee; /* Visual separator between pages */
    padding-bottom: 10px;
}
.pdf-page-container:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pdf-page-canvas { /* Canvas for each page */
    display: block;
    width: 100%;
    height: auto;
}

.pdf-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
}

/* Styling for dynamically created HTML inputs */
.pdf-form-overlay input[type="text"],
.pdf-form-overlay input[type="checkbox"],
.pdf-form-overlay textarea {
    position: absolute;
    z-index: 2;
    border: none;
    background-color: rgba(255, 255, 255, 0);
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    padding: 2px 4px;
    box-sizing: border-box;
    border-radius: 3px;
}

.pdf-form-overlay textarea {
    resize: none;
    overflow-y: auto;
}

.pdf-form-overlay input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

/* Styling for radio button groups */
input[type="radio"] {
    margin: 0;
}

.submit-button {
    /* Styling for the submit button */
    margin: 20px auto;
    background-color: #0073aa;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 200px;
    display: block;
    text-align: center;
}
.submit-button:hover {
    background-color: #005177;
    transform: translateY(-2px);
}

.submission-notice {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    margin: 10px 15px 32px;
}

.description {
    font-size: 0.9em;
    color: #888;
    margin-top: -10px;
    margin-bottom: 15px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cev-registration-form-container {
        padding: 10px;
    }
}
