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

body {
    font-family: Arial, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.4;
    padding: 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden { display: none !important; }

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
}

h1:hover { opacity: 0.7; }

#contact-link {
    color: #0C5BD8;
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

#contact-link:hover { border-bottom-color: #0C5BD8; }

#form {
    max-width: 400px;
    margin: 20px auto;
    text-align: left;
}

.field {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0C5BD8;
}

textarea {
    height: 80px;
    resize: vertical;
}

.captcha {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.captcha-calc {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

#calc {
    font-weight: bold;
    min-width: 80px;
}

#answer {
    width: 80px;
    text-align: center;
}

#refresh {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    font-size: 16px;
}

#refresh:hover { background: #f0f0f0; }
#refresh:disabled { opacity: 0.5; cursor: not-allowed; }

#captcha-feedback {
    font-size: 12px;
    min-height: 16px;
    font-weight: bold;
}

.success { color: #27AE60; }
.error { color: #e74c3c; }

.consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 15px 0;
    cursor: pointer;
    font-size: 14px;
}

.consent input {
    width: auto;
    margin-top: 2px;
}

#terms {
    color: #0C5BD8;
    text-decoration: underline;
    cursor: pointer;
}

#terms:hover { opacity: 0.8; }

button {
    background: #0C5BD8;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: opacity 0.3s;
}

button:hover { opacity: 0.9; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

#status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    display: none;
}

#status.show { display: block; }
#status.success { background: #d4edda; color: #155724; }
#status.error { background: #f8d7da; color: #721c24; }
#status.loading { background: #d1ecf1; color: #0c5460; }

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
}

#modal > div {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    max-width: 400px;
    position: relative;
    margin: 20px;
}

#modal button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    color: #666;
    border: none;
    font-size: 20px;
    width: auto;
    padding: 0;
}

#modal h3 {
    margin-bottom: 10px;
}

#error {
    text-align: center;
}

#error h1 {
    margin-bottom: 30px;
}

#countdown {
    margin-top: 20px;
    color: #666;
}

#timer {
    font-weight: bold;
    color: #0C5BD8;
}

@media (max-width: 480px) {
    body { padding: 10px; }
    h1 { font-size: 2rem; }
    #form { margin: 15px auto; }
    .captcha-calc { flex-wrap: wrap; }
}