* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #eaeae2;
    position: relative;
    color: #333333;
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5vh;
    width: 100%;
    height: 100dvh;
    padding: 7vh 0 2vh 0;
    overflow-y: auto;
}

.header {
    text-align: center;
    flex-shrink: 0;
    margin-top: 0;
}

h1 {
    font-family: 'Luckiest Guy', 'Comic Sans MS', 'Comic Sans', sans-serif;
    letter-spacing: 3px;
    font-size: 5.2vh;
    margin: 0;
    flex-shrink: 0;
    color: #000000;
    text-shadow: 0 0.3vh 0.6vh rgba(74, 144, 226, 0.15);
}

.subtitle {
    font-size: 1.6vh;
    text-align: center;
    margin: 0.3vh 0 0 0;
    color: #4b5563;
    flex-shrink: 0;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.home-btn {
    position: fixed;
    top: 2vh;
    left: 2vh;
    background: rgba(255, 255, 255, 0.95);
    color: #4A90E2;
    border: 0.2vh solid #4A90E2;
    border-radius: 1vh;
    padding: 0.8vh 1.6vh;
    font-size: 1.8vh;
    font-family: inherit;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 0.4vh 1.2vh rgba(74, 144, 226, 0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    height: auto;
}

.home-btn:hover {
    background: #f0f5fd;
    color: #4A90E2;
    transform: translateY(-3px);
    box-shadow: 0 0.6vh 1.6vh rgba(74, 144, 226, 0.2);
}

.feedback-container {
    width: min(90vw, 55vh);
    background: #f0f5fd;
    padding: 3vh;
    border-radius: 1.2vh;
    box-shadow: 0 0.2vh 0.6vh rgba(0, 0, 0, 0.1);
    border: 0.1vh solid #e5e7eb;
    margin-bottom: 2vh;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6vh;
}

.form-group label {
    font-size: 1.6vh;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.3px;
}

.required {
    color: #e53e3e;
    margin-left: 0.2vh;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1.2vh 1.6vh;
    border: 0.15vh solid #d1d5db;
    border-radius: 0.8vh;
    font-size: max(1.5vh, 16px);
    font-family: inherit;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 12vh;
    font-size: max(1.5vh, 16px);
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A90E2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2vh center;
    padding-right: 3.5vh;
}

.submit-btn {
    padding: 1.4vh 2.5vh;
    border-radius: 1vh;
    border: none;
    background: #4A90E2;
    color: #ffffff;
    font-size: 1.8vh;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0.4vh 1.2vh rgba(74, 144, 226, 0.2);
    min-height: 4.8vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1vh;
}

.submit-btn:hover {
    background: #3B7FD9;
    transform: translateY(-3px);
    box-shadow: 0 0.6vh 1.8vh rgba(74, 144, 226, 0.3);
}

.submit-btn:active {
    background: #2E5AAD;
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #b0bac6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#submitted-message {
    text-align: center;
    padding: 2vh;
    background: #d1fae5;
    border: 0.1vh solid #a7f3d0;
    border-radius: 0.8vh;
    color: #047857;
    font-size: 1.6vh;
    font-weight: 600;
    margin-top: 1vh;
}

#submitted-message.hidden {
    display: none;
}

@media (max-width: 480px) {
    h1 {
        font-size: 4vh;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1.3vh;
        margin: 0.2vh 0 0 0;
    }

    .home-btn {
        padding: 0.8vh 1.6vh;
        font-size: 1.5vh;
        top: 1.2vh;
        left: 1.2vh;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 3.6vh;
        letter-spacing: 1.5px;
    }

    .subtitle {
        font-size: 1.3vh;
        margin: 0.15vh 0 0 0;
    }

    .home-btn {
        padding: 0.7vh 1.4vh;
        font-size: 1.3vh;
        top: 1vh;
        left: 1vh;
    }
}

#submitted-message p {
    margin: 0;
}

.feedback-form.submitted {
    opacity: 0.6;
    pointer-events: none;
}

.feedback-form.submitted .form-group input,
.feedback-form.submitted .form-group select,
.feedback-form.submitted .form-group textarea {
    background: #f3f4f6;
    color: #9ca3af;
}
