:root {
    --primary-color: #080808;
    --secondary-color: #d6d3d1;
    --accent-color: #fdba74;
    --text-color: #373737;
    --background-color:  #fb923c;
    --input-border-color: #A29595;
    --system-ui: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

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

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

html {
    font-family: var(--system-ui);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 20px;
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--text-color));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

#survey-form {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 1s ease-out;
}

#description, #title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

#title {
    font-size: 2.5rem;
    font-weight: 700;
    animation: fadeIn 1s ease-out 0.2s both;
}

#description {
    font-size: 1.2rem;
    font-weight: 400;
    animation: fadeIn 1s ease-out 0.4s both;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 0.6s both;
}

input[type=date],
input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
#textarea,
select,
textarea {
    border: 2px solid var(--input-border-color);
    border-radius: 8px;
    padding: 12px 15px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--text-color);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.1);
    transform: translateY(-2px);
}

input[type=submit] {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

input[type=submit]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

input[type=submit]:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

input[type=submit]:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 137, 29, 0.3);
}

input[type=submit]:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(242, 137, 29, 0.3);
}

.submit-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 30px;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sm {
    font-size: 0.9rem;
    color: var(--text-color);
}

.bold {
    font-weight: 700;
}

.bottom-space {
    margin-bottom: 20px;
}

.top-space {
    margin-top: 10px;
}

#dropdown {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237F7F7F' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

#specify {
    display: none;
}

#checkbox-7:checked ~ #specify {
    display: block;
}

#textarea {
    font-family: var(--system-ui);
    min-height: 5rem;
    max-height: 20rem;
    width: 100%;
    resize: vertical;
}

.pink {
    accent-color: var(--accent-color);
}

input[type=date]:hover,
input[type=email]:hover,
input[type=number]:hover,
input[type=password]:hover,
input[type=search]:hover,
input[type=tel]:hover,
input[type=text]:hover,
input[type=url]:hover,
#textarea:hover,
select:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

label {
    transition: all 0.3s ease;
    color: var(--primary-color);
}

label:hover {
    transform: translateX(5px);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    #survey-form {
        padding: 30px;
    }

    #title {
        font-size: 2rem;
    }

    #description {
        font-size: 1rem;
    }
}