* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 40px 20px;
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.form-header {
    background: #f5f5f5;
    color: white;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.header-text {
    flex: 1;
    text-align: left;
}

.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.form-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color:#00a6c6;
}

.form-subtitle {
    font-size: 16px;
    color: #1f2937;
    font-weight: 400;
}

.progress-bar {
    height: 6px;
    background-color: rgba(0, 166, 198, 0.2);
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    margin-top: 24px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a6c6 0%, #0086a3 100%);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 166, 198, 0.5);
}

.form-content {
    padding: 40px 32px;
}

/* Intro Section Styles */
.intro-section {
    margin-bottom: 48px;
}

.intro-title {
    font-size: 24px;
    font-weight: 600;
    color: #00a6c6;
    margin-bottom: 24px;
}

.intro-text {
    color: #1f2937;
    line-height: 1.8;
    font-size: 15px;
}

.intro-text p {
    margin-bottom: 16px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.info-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    margin: 24px 32px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin: 0;
}

.info-box p {
    font-size: 14px;
    color: #78350f;
    margin: 0;
    line-height: 1.6;
}

.important-box {
    background: #e6f7fb;
    border-left: 4px solid #00a6c6;
    padding: 24px;
    margin: 24px 0;
    border-radius: 8px;
}

.important-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.important-box p {
    margin-bottom: 16px;
    color: #1f2937;
    line-height: 1.8;
}

.important-box p:last-child {
    margin-bottom: 0;
}

.important-box ul {
    margin: 16px 0;
    padding-left: 24px;
    color: #1f2937;
}

.important-box li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.privacy-consent-header {
    margin: 12px 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
}

.privacy-consent-header h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 16px;
}

.privacy-consent-header p {
    margin: 0;
    color: #374151;
    font-size: 14px;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.consent-checkbox:hover {
    background: #e5e7eb;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.consent-checkbox label {
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.consent-checkbox label .required {
    color: #ef4444;
}

.consent-checkbox label a {
    color: #0369a1;
    font-weight: 600;
    text-decoration: underline;
}

.form-content > * + * {
    margin-top: 0;
}

.form-group {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}

.form-group:last-of-type {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.required {
    color: #ef4444;
}

.form-input {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f9fafb;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:hover {
    border-color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #00a6c6;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 166, 198, 0.1);
    transform: translateY(-1px);
}

textarea.form-input {
    resize: vertical;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* Admin page styles */
.admin-body {
    background: linear-gradient(135deg, rgba(0, 166, 198, 0.08) 0%, rgba(242, 108, 40, 0.08) 100%);
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #4b5563;
}

.admin-wrapper {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 28px 32px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 166, 198, 0.12);
    border: 2px solid rgba(0, 166, 198, 0.1);
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    top: -80px;
    right: -60px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 166, 198, 0.1), rgba(242, 108, 40, 0.1));
    pointer-events: none;
}

.admin-logo img {
    width: 72px;
    height: auto;
    position: relative;
    z-index: 1;
}

.admin-title {
    position: relative;
    z-index: 1;
}

.admin-title h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
    background: linear-gradient(90deg, #00a6c6, #f26c28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.admin-title p {
    color: #6b7280;
    font-size: 14px;
}

.admin-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 166, 198, 0.12);
    border: 2px solid rgba(0, 166, 198, 0.08);
    position: relative;
    overflow: hidden;
}

.admin-card::before,
.admin-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 166, 198, 0.06), rgba(242, 108, 40, 0.06));
    pointer-events: none;
    z-index: 0;
}

.admin-card::before {
    width: 260px;
    height: 260px;
    top: -100px;
    left: -80px;
}

.admin-card::after {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -100px;
}

.admin-card > * {
    position: relative;
    z-index: 1;
}

.admin-status {
    font-size: 15px;
    margin-bottom: 20px;
    color: #6b7280;
    font-style: italic;
}

.admin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #00a6c6, #0090b0);
    box-shadow: 0 4px 14px rgba(0, 166, 198, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-button.secondary {
    background: linear-gradient(135deg, #374151, #1f2937);
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.2);
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 166, 198, 0.35);
}

.admin-button.secondary:hover {
    box-shadow: 0 8px 22px rgba(31, 41, 55, 0.3);
}

.admin-info {
    padding: 16px 20px;
    background: rgba(0, 166, 198, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(0, 166, 198, 0.15);
    margin-bottom: 20px;
}

.admin-denied {
    padding: 20px 24px;
    border-radius: 14px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    margin-bottom: 20px;
}

.admin-panel {
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 166, 198, 0.04), rgba(242, 108, 40, 0.04));
    border: 1.5px solid rgba(0, 166, 198, 0.12);
    color: #0f172a;
}

.admin-panel h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    background: linear-gradient(90deg, #00a6c6, #f26c28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.admin-section {
    margin-bottom: 32px;
}

.admin-section h3 {
    font-size: 16px;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.admin-section .section-description {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.admin-add-form {
    margin-bottom: 24px;
}

.admin-add-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.admin-add-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-add-row input[type="email"] {
    flex: 1;
    padding: 11px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-add-row input[type="email"]:focus {
    outline: none;
    border-color: #00a6c6;
    box-shadow: 0 0 0 3px rgba(0, 166, 198, 0.1);
}

.admin-form-msg {
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
}

.admin-form-msg.success {
    color: #15803d;
}

.admin-form-msg.error {
    color: #dc2626;
}

.admin-list-section {
    border-top: 1px solid rgba(0, 166, 198, 0.12);
    padding-top: 16px;
}

.admin-list-section h3 {
    font-size: 15px;
    color: #374151;
    margin-bottom: 12px;
    font-weight: 600;
}

.admin-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-list-item {
    display: grid;
    grid-template-columns: 1fr 220px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #f3f4f6;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.admin-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 166, 198, 0.08);
    border-color: rgba(0, 166, 198, 0.2);
}

.admin-list-email {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-list-empty {
    padding: 16px;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    list-style: none;
    border: 1.5px dashed #e5e7eb;
    border-radius: 12px;
}

.admin-list-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.admin-history-btn {
    padding: 5px 12px;
    border: 1.5px solid rgba(0, 166, 198, 0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #00a6c6;
    background: rgba(0, 166, 198, 0.05);
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.admin-history-btn:hover {
    background: rgba(0, 166, 198, 0.12);
    transform: translateY(-1px);
}

.admin-reset-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    background: #f59e0b;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.admin-reset-btn:hover:not(:disabled) {
    background: #d97706;
    transform: translateY(-1px);
}

.admin-reset-btn.confirming {
    background: #ef4444;
}

.admin-reset-btn.confirming:hover:not(:disabled) {
    background: #dc2626;
}

.admin-reset-btn:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
    color: #9ca3af;
}

.admin-new-test-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    background: #10b981;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.admin-new-test-btn:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.admin-new-test-btn:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
    color: #9ca3af;
}

.admin-cancel-btn {
    padding: 5px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #9ca3af;
    background: #f9fafb;
    transition: background 0.2s;
    flex-shrink: 0;
}

.admin-cancel-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.admin-remove-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    background: #ef4444;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
    margin-left: 6px;
}

.admin-remove-btn:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
}

.admin-remove-btn:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
    color: #9ca3af;
}

.admin-action-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 7px 28px 7px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #374151;
    background-color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex: 1;
    min-width: 0;
}

.admin-action-select:focus {
    outline: none;
    border-color: #00a6c6;
    box-shadow: 0 0 0 3px rgba(0, 166, 198, 0.1);
    background-color: #ffffff;
}

.admin-action-select:hover {
    border-color: #00a6c6;
    background-color: #ffffff;
}

.admin-exec-btn {
    padding: 7px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #00a6c6, #0090b0);
    box-shadow: 0 2px 8px rgba(0, 166, 198, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.admin-exec-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 166, 198, 0.4);
}

.admin-exec-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 166, 198, 0.25);
}

.admin-exec-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 640px) {
    .admin-body {
        padding: 24px 16px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
    }

    .admin-title h1 {
        font-size: 22px;
    }

    .admin-card {
        padding: 28px 20px;
    }

    .admin-add-row {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-add-row input[type="email"] {
        font-size: 16px;
    }
}

.btn-submit {
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #00a6c6 0%, #f26c28 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f26c28 0%, #00a6c6 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Texto precisa ficar acima do ::before (que é positioned, pinta sobre flow content) */
.btn-submit span {
    position: relative;
    z-index: 1;
}

/* Hover só em dispositivos que realmente suportam hover (mouse).
   Em touch (iOS/Android) o :hover fica "preso" após o tap — o ::before cobre o texto
   (z-index bug) e o transform translateY fica grudado também. */
@media (hover: hover) {
    .btn-submit:hover::before {
        opacity: 1;
    }
    .btn-submit:hover {
        box-shadow: 0 8px 20px rgba(0, 166, 198, 0.4);
        transform: translateY(-2px);
    }
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
}

.btn-submit:disabled:hover {
    box-shadow: none;
    transform: none !important;
}

.status-message {
    margin-top: 24px;
    padding: 16px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-message.success {
    background: linear-gradient(135deg, #dcfce7, #d1fae5);
    color: #15803d;
    border-left: 4px solid #22c55e;
    display: block;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.status-message.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid #ef4444;
    display: block;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Custom Radio and Checkbox Styles */
.question-group {
    margin-bottom: 40px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.question-group:hover {
    border-color: #00a6c6;
    box-shadow: 0 4px 12px rgba(0, 166, 198, 0.08);
}

.question-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #00a6c6;
    margin: 48px 0 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 166, 198, 0.08), rgba(242, 108, 40, 0.08));
    border-left: 4px solid #00a6c6;
    border-radius: 8px;
}

/* Hide default radio and checkbox in question groups */
.question-group input[type="radio"],
.question-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom checkbox style */
.question-group input[type="checkbox"] + label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 8px 0;
    cursor: pointer;
    border-radius: 8px;
    background: white;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
    position: relative;
    font-size: 15px;
    color: #4b5563;
}

.question-group.align-left input[type="checkbox"] + label {
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
}

.question-group.align-left input[type="checkbox"] + label::before {
    margin-top: 2px;
}

.question-group input[type="checkbox"]:focus + label {
    outline: 3px solid rgba(0, 166, 198, 0.5);
    outline-offset: 2px;
}

.question-group input[type="checkbox"] + label:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateX(4px);
}

.question-group input[type="checkbox"]:checked + label {
    background: linear-gradient(135deg, rgba(0, 166, 198, 0.1), rgba(242, 108, 40, 0.1));
    border-color: #00a6c6;
    color: #00a6c6;
    font-weight: 500;
}

.question-group input[type="checkbox"] + label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.question-group input[type="checkbox"]:checked + label::before {
    border-color: #00a6c6;
    background: #00a6c6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Custom radio button style */
.question-group input[type="radio"] + label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 8px 0;
    cursor: pointer;
    border-radius: 8px;
    background: white;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
    position: relative;
    font-size: 15px;
    color: #4b5563;
}

input[type="radio"]:focus + label {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

input[type="radio"] + label:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateX(4px);
}

input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(0, 166, 198, 0.1), rgba(242, 108, 40, 0.1));
    border-color: #00a6c6;
    color: #00a6c6;
    font-weight: 500;
}

input[type="radio"] + label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.2s;
    flex-shrink: 0;
}

input[type="radio"]:checked + label::before {
    border-color: #00a6c6;
    background: #00a6c6;
    box-shadow: inset 0 0 0 3px white;
}

/* Toggle switch style for yes/no questions */
.toggle-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.toggle-container input[type="checkbox"] + label,
input[type="radio"].toggle + label {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 50px;
    background: #e5e7eb;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    user-select: none;
}

.toggle-container input[type="checkbox"] + label:hover,
input[type="radio"].toggle + label:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

.toggle-container input[type="checkbox"]:focus + label,
input[type="radio"].toggle:focus + label {
    outline: 3px solid rgba(0, 166, 198, 0.5);
    outline-offset: 2px;
}

input[type="checkbox"]:checked + label,
input[type="radio"].toggle:checked + label {
    background: linear-gradient(#00a6c6);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 166, 198, 0.3);
}

/* Select dropdown style */
select {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2937;
    background-color: #f9fafb;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 400px;
}

select:hover {
    border-color: #9ca3af;
}

select:focus {
    outline: none;
    border-color: #00a6c6;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 166, 198, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-group {
    animation: fadeIn 0.5s ease-out;
}

/* Pillar Indicator */
.pillar-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.pillar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.pillar-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    gap: 16px;
}

.btn-previous,
.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #00a6c6;
    background: white;
    color: #00a6c6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-previous svg,
.btn-next svg {
    transition: transform 0.2s ease;
}

.btn-previous:hover:not(:disabled) {
    background: #00a6c6;
    color: white;
    transform: translateX(-2px);
}

.btn-next:hover:not(:disabled) {
    background: #00a6c6;
    color: white;
    transform: translateX(2px);
}

.btn-previous:hover:not(:disabled) svg {
    transform: translateX(-2px);
}

.btn-next:hover:not(:disabled) svg {
    transform: translateX(2px);
}

.btn-previous:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #d1d5db;
    color: #9ca3af;
}

.btn-previous:active:not(:disabled),
.btn-next:active:not(:disabled) {
    transform: scale(0.98);
}

.question-counter {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 20px;
}

.question-counter span {
    color: #00a6c6;
}

/* Question animation */
.question-animated {
    animation: slideInQuestion 0.4s ease-out;
}

@keyframes slideInQuestion {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Simplified header for question pages */
.form-header.simplified .header-text {
    display: none;
}

.form-header.simplified .header-content {
    justify-content: center;
    padding: 20px 0;
}

.form-header.simplified .logo-container img {
    height: 60px;
}

.form-header.simplified {
    padding: 24px 40px 16px;
}

/* Section subtitle styling */
.section-subtitle {
    margin-bottom: 24px;
    color: #6b7280;
    line-height: 1.6;
    font-size: 15px;
}

/* Better mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 20px 12px;
    }

    .form-wrapper {
        border-radius: 12px;
    }

    .form-header {
        padding: 32px 20px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .header-text {
        text-align: center;
    }

    .form-header::before {
        display: none;
    }

    .form-title {
        font-size: 24px;
    }

    .form-subtitle {
        font-size: 14px;
    }

    .logo-container img {
        height: 80px;
    }

    .form-content {
        padding: 24px 16px;
    }

    .intro-title {
        font-size: 20px;
    }

    .important-box {
        padding: 16px;
    }

    .consent-checkbox {
        padding: 16px;
        flex-direction: row;
        align-items: center;
    }

    .consent-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    .consent-checkbox label {
        font-size: 14px;
    }

    .question-group {
        padding: 20px 16px;
    }

    /* Align checkboxes to the left on mobile for q10, q12, q14 */
    .question-group input[type="checkbox"] + label {
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .question-group input[type="checkbox"] + label::before {
        flex-shrink: 0;
        margin-right: 12px;
    }

    .section-title {
        font-size: 18px;
        margin: 32px 0 20px;
    }

    input[type="radio"] + label {
        padding: 10px 12px;
        font-size: 14px;
    }

    .toggle-container {
        gap: 8px;
    }

    .toggle-container input[type="checkbox"] + label,
    input[type="radio"].toggle + label {
        padding: 12px 20px;
        font-size: 14px;
        flex: 1;
        justify-content: center;
    }

    .question-group.align-left input[type="checkbox"] + label {
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-submit {
        width: 100%;
        padding: 14px 24px;
    }

    .form-input,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .pagination-controls {
        flex-wrap: wrap;
        gap: 12px;
    }

    .btn-previous,
    .btn-next {
        padding: 10px 20px;
        font-size: 14px;
    }

    .question-counter {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .form-header.simplified {
        padding: 16px 20px 12px;
    }

    .form-header.simplified .logo-container img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 20px;
    }

    .form-subtitle {
        font-size: 13px;
    }

    .logo-container img {
        height: 60px;
    }

    .intro-title {
        font-size: 18px;
    }

    .important-box {
        padding: 16px;
        margin: 16px 0;
    }

    .important-title {
        font-size: 16px;
    }

    .intro-text {
        font-size: 14px;
    }

    .question-title {
        font-size: 15px;
    }

    input[type="radio"] + label {
        font-size: 13px;
        padding: 8px 10px;
    }

    input[type="radio"] + label::before {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }

    .btn-previous,
    .btn-next {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }

    .pagination-controls {
        gap: 8px;
    }

    .form-header.simplified .logo-container img {
        height: 40px;
    }

    .form-header.simplified {
        padding: 12px 16px 8px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .form-wrapper {
        box-shadow: none;
    }

    .form-header {
        background: #00a6c6;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .form-actions,
    .status-message {
        display: none;
    }
}

/* Landing page styles */
body.landing-body {
    background: linear-gradient(135deg, rgba(0, 166, 198, 0.08) 0%, rgba(242, 108, 40, 0.08) 100%);
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
}

.landing {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.landing-card {
    background: white;
    border-radius: 28px;
    padding: 56px 32px 48px;
    box-shadow: 0 25px 60px rgba(0, 166, 198, 0.15);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(0, 166, 198, 0.1);
}

.landing-card::before,
.landing-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 166, 198, 0.12), rgba(242, 108, 40, 0.12));
    z-index: 0;
}

.landing-card::before {
    width: 220px;
    height: 220px;
    top: -80px;
    left: -60px;
}

.landing-card::after {
    width: 280px;
    height: 280px;
    bottom: -140px;
    right: -120px;
}

.landing-card > * {
    position: relative;
    z-index: 1;
}

.landing-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.landing-title {
    font-size: 34px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.6px;
}

.landing-title span {
    background: linear-gradient(90deg, #00a6c6, #f26c28);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-subtitle {
    font-size: 16px;
    color: #6b7280;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.landing-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #00a6c6, #f26c28);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 166, 198, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(242, 108, 40, 0.35);
    background: linear-gradient(135deg, #f26c28, #00a6c6);
}

.landing-button-icon {
    font-size: 16px;
    line-height: 1;
}

.landing-secondary-link {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.landing-secondary-link:hover {
    border-color: #0e7490;
    color: #0e7490;
}

.subtle-history-button {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.82);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.subtle-history-button:hover {
    border-color: #94a3b8;
    color: #334155;
    background: #ffffff;
}

.subtle-history-button-auth {
    margin-top: 12px;
    margin-left: 10px;
    vertical-align: middle;
}

@media (max-width: 560px) {
    .subtle-history-button-auth {
        display: block;
        width: fit-content;
        margin-left: 0;
    }
}

.landing-meta {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
}

.landing-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #00a6c6;
    box-shadow: 0 0 0 4px rgba(0, 166, 198, 0.15);
}

.landing-footer {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 32px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 13px;
}

.footer-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    border: 1px solid rgba(0, 166, 198, 0.15);
}

.footer-icon {
    font-size: 14px;
}

@media (max-width: 600px) {
    body.landing-body {
        padding: 60px 16px;
    }

    .landing-card {
        padding: 48px 24px 40px;
    }

    .landing-title {
        font-size: 28px;
    }
}

/* ===================================
   Quiz Authentication Page Styles
   =================================== */

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, #e0f7fa 0%, #f0f9ff 45%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.auth-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    box-shadow:
        0 20px 60px rgba(0, 166, 198, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 166, 198, 0.08);
    max-width: 480px;
    width: 100%;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 100px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(0, 166, 198, 0.15));
}

.auth-header h1 {
    font-size: 28px;
    color: #00a6c6;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.auth-status {
    text-align: center;
    font-size: 16px;
    color: #374151;
    margin-bottom: 28px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f7fa 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 166, 198, 0.15);
    line-height: 1.5;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: #1f2937;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.auth-button svg {
    flex-shrink: 0;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03), transparent);
    transition: left 0.5s;
}

.auth-button:hover::before {
    left: 100%;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button.secondary {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    box-shadow:
        0 4px 14px rgba(31, 41, 55, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.auth-button.secondary::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.auth-button.secondary:hover {
    box-shadow:
        0 8px 24px rgba(31, 41, 55, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Logout Button in Quiz Page */
.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #dc2626;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #dc2626;
}

.logout-button svg {
    flex-shrink: 0;
}

.logout-button:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.logout-button:active {
    transform: translateY(0);
}

.auth-user-info {
    padding: 20px;
    background: linear-gradient(135deg, #ecfeff 0%, #f0f9ff 100%);
    border-radius: 16px;
    border: 2px solid rgba(0, 166, 198, 0.2);
    margin-bottom: 24px;
    text-align: center;
}

.auth-user-info p {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
}

.auth-user-info strong {
    color: #00a6c6;
    font-weight: 600;
}

.auth-user-info span {
    color: #1f2937;
    font-weight: 500;
}

.auth-denied {
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 2px solid #fecdd3;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.auth-denied h2 {
    font-size: 22px;
    color: #9f1239;
    margin-bottom: 12px;
    font-weight: 700;
}

.auth-denied p {
    font-size: 15px;
    color: #be123c;
    line-height: 1.6;
    margin-bottom: 8px;
}

.auth-denied p:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 600px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-logo {
        width: 80px;
        margin-bottom: 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-status {
        font-size: 15px;
        padding: 14px;
    }

    .auth-button {
        padding: 14px 24px;
        font-size: 15px;
    }

    .auth-denied {
        padding: 24px 20px;
    }

    .auth-denied h2 {
        font-size: 20px;
    }

    .auth-denied p {
        font-size: 14px;
    }
}
