@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'LagunaC';
    src: url('/resource/fonts/lagunac.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

.poll-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.poll-container {
    max-width: 500px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 32px;
}

.poll-card {
    padding: calc(12px + (24 - 12) * ((100vw - 375px) / (1440 - 375))) calc(30px + (60 - 30) * ((100vw - 375px) / (1440 - 375))) calc(50px + (80 - 50) * ((100vw - 375px) / (1440 - 375))) calc(30px + (60 - 30) * ((100vw - 375px) / (1440 - 375)));
}

.poll-title {
    font-family: 'LagunaC', 'Geologica', sans-serif;
    font-weight: 400;
    font-size: calc(24px + (40 - 24) * ((100vw - 375px) / (1440 - 375)));
    line-height: calc(30px + (48 - 30) * ((100vw - 375px) / (1440 - 375)));
    text-transform: uppercase;
    text-align: center;
    color: #000000;
    margin-bottom: calc(30px + (50 - 30) * ((100vw - 375px) / (1440 - 375)));
}

.form-group {
    margin-bottom: calc(23px + (32 - 23) * ((100vw - 375px) / (1440 - 375)));
}

.form-label {
    font-family: 'Geologica';
    font-weight: 300;
    font-size: calc(14px + (18 - 14) * ((100vw - 375px) / (1440 - 375)));
    line-height: calc(23px + (28 - 23) * ((100vw - 375px) / (1440 - 375)));
    color: #000000;
    display: block;
    margin-bottom: calc(12px + (16 - 12) * ((100vw - 375px) / (1440 - 375)));
}

.double-row {
    display: flex;
    gap: calc(12px + (20 - 12) * ((100vw - 375px) / (1440 - 375)));
}

.double-row .form-input {
    flex: 1;
}

.form-input {
    width: 100%;
    background: #F9F9F9;
    border: none;
    border-radius: calc(31.5px + (40 - 31.5) * ((100vw - 375px) / (1440 - 375)));
    padding: calc(16px + (20 - 16) * ((100vw - 375px) / (1440 - 375))) calc(20px + (24 - 20) * ((100vw - 375px) / (1440 - 375)));
    font-family: 'Geologica';
    font-weight: 300;
    font-size: calc(13px + (16 - 13) * ((100vw - 375px) / (1440 - 375)));
    line-height: calc(16px + (20 - 16) * ((100vw - 375px) / (1440 - 375)));
    color: #000000;
    outline: none;
}

.form-input::placeholder {
    color: #B4B4B4;
}

.poll-submit {
    width: 50%;
    margin: 0 auto;
    display: block;
    background: #C23A3C;
    border-radius: calc(38.5px + (50 - 38.5) * ((100vw - 375px) / (1440 - 375)));
    border: none;
    padding: calc(18px + (24 - 18) * ((100vw - 375px) / (1440 - 375)));
    font-family: 'Geologica';
    font-weight: 400;
    font-size: calc(16px + (20 - 16) * ((100vw - 375px) / (1440 - 375)));
    line-height: calc(20px + (24 - 20) * ((100vw - 375px) / (1440 - 375)));
    color: #FFFFFF;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: calc(20px + (40 - 20) * ((100vw - 375px) / (1440 - 375)));
}

.poll-submit:hover {
    opacity: 0.85;
}

.error-text {
    color: #ff4d77 !important;
}

.error-text::placeholder {
    color: #ff4d77 !important;
}

.btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 32px;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}

.modal-close {
    position: absolute;
    top: 0px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 38px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    font-weight: 300;
    z-index: 1001;
}

.modal-body {
    text-align: center;
    padding: 48px 24px 40px 24px;
}

.modal-text {
    font-family: 'Geologica';
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: #000000;
    margin-bottom: 32px;
}

.modal-btn {
    background: #C23A3C;
    border-radius: 38.5px;
    border: none;
    padding: 14px 28px;
    font-family: 'Geologica';
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal-btn:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    body {
        background: #ffffff;
    }

    .poll-container {
        max-width: 100%;
        border-radius: 0;
    }

    .modal-overlay {
        background: rgba(0, 0, 0, 0.5);
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
    }

    .modal-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 40px 20px;
        text-align: center;
    }

    .modal-close {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 40px;
        background: none;
        border: none;
        cursor: pointer;
        color: #000000;
        font-weight: 300;
        z-index: 1002;
    }

    .modal-text {
        margin-bottom: 32px;
    }
}

@media (min-width: 1440px) {
    .poll-container {
        max-width: 800px;
    }

    .poll-card {
        padding: 24px 60px 80px 60px;
    }

    .modal-content {
        max-width: 600px;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #F9F9F9 inset !important;
    -webkit-text-fill-color: #000000 !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: #F9F9F9 !important;
}

input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

button,
button:focus,
button:active,
.poll-submit,
.poll-submit:focus,
.poll-submit:active,
.form-back,
.form-back:focus,
.form-back:active,
.form-checkbox__input,
.form-checkbox__input:focus,
.form-checkbox__input:active,
.form-input,
.form-input:focus,
.form-input:active,
.poll-submit:focus-visible,
.poll-submit:active,
button:focus-visible {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}


.form-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: calc(24px + (32 - 24) * ((100vw - 375px) / (1440 - 375))) 0;
}

.form-checkbox__input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.form-checkbox__label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Geologica';
    font-weight: 300;
    font-size: calc(11px + (13 - 11) * ((100vw - 375px) / (1440 - 375)));
    line-height: calc(13px + (16 - 13) * ((100vw - 375px) / (1440 - 375)));
    color: #000000;
    user-select: none;
}

.form-checkbox__box {
    position: relative;
    width: 24px;
    height: 24px;
    border: 1.5px solid #000000;
    border-radius: 4px;
    background: transparent;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.form-checkbox__box svg {
    width: 20px;
    height: 20px;
    position: absolute;
    z-index: 1;
}

.form-checkbox__box svg path {
    stroke: #000000;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    opacity: 0;
    transition: stroke-dashoffset 0.25s cubic-bezier(0.4, 0, 0.23, 1), opacity 0.2s ease;
}

.form-checkbox__input:checked ~ .form-checkbox__label .form-checkbox__box svg path {
    animation: drawCheck 0.35s cubic-bezier(0.4, 0, 0.23, 1) 0.1s forwards;
}

@keyframes drawCheck {
    0% { stroke-dashoffset: 30; opacity: 0; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

.form-checkbox__input:not(:checked) ~ .form-checkbox__label .form-checkbox__box svg path {
    animation: eraseCheck 0.35s cubic-bezier(0.4, 0, 0.23, 1) forwards;
}

@keyframes eraseCheck {
    0% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 30; opacity: 0; }
}

.privacy-link {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-link:hover {
    color: #C23A3C;
}

.form-checkbox__box.error {
    border-color: #ff4d77 !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 119, 0.2);
}