body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0ebf8; /* Light purple background similar to Google Forms */
    margin: 0;
    padding: 0;
    color: #202124;
}

.form-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #dadce0;
    padding: 24px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15); /* Material shadow */
    position: relative;
}

.title-card {
    border-top: 10px solid #673ab7; /* Google Forms purple header */
}

h1 {
    font-size: 32px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
}

p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

hr {
    border: 0;
    border-bottom: 1px solid #dadce0;
    margin: 16px 0;
}

.required-info {
    color: #d93025;
    font-size: 12px;
}

.field-card {
    /* Styles for individual question cards */
}

label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #d93025;
}

.description {
    font-size: 12px;
    color: #5f6368;
    margin-top: -4px;
    margin-bottom: 16px;
}

input[type="text"],
input[type="email"] {
    width: 100%; /* Full width */
    max-width: 300px; /* Or a specific width like 50% for standard look */
    border: none;
    border-bottom: 1px solid #dadce0; /* Only bottom border like Google Forms */
    padding: 8px 0;
    font-size: 14px;
    outline: none;
    transition: border-bottom-color 0.2s;
    background-color: transparent;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-bottom: 2px solid #673ab7; /* Focus color */
}

input::placeholder {
    color: #70757a;
}

.poster-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.submit-container {
    margin-top: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submit-btn {
    background-color: #673ab7;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #5e35b1;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.footer-text {
    font-size: 12px;
    color: #5f6368;
    margin-top: 24px;
    text-align: center;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #673ab7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #5f6368;
}

/* Input checkbox for email copy - minimal styling */
input[type="checkbox"] {
    margin-right: 8px;
}
