/* Updated color scheme */
:root {
    --primary-color: #203779;
    --secondary-color: #203779;
    --accent-color: #203779;
    --background-color: #f4f2ea;
    --text-color: #203779;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-color);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.4;
    position: relative;
}

.logo-top-left {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 160px;
    height: 160px;
    object-fit: contain;
    z-index: 1000;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.beta-tag {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--warning-color);
    opacity: 0.8;
}

.sloth-emoji {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 400;
}

.limit-notice {
    background: linear-gradient(135deg, var(--warning-color), #ff9800);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 500;
    display: block;
    font-size: 0.8rem;
    text-align: center;
    margin: 15px 0;
}

main {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.radio-group {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

/* First radio group (8 options) - 4 columns for symmetry */
.form-group:first-of-type .radio-group {
    grid-template-columns: repeat(4, 1fr);
}

/* Second radio group (4 options) - 2 columns */
.form-group:nth-of-type(3) .radio-group {
    grid-template-columns: repeat(2, 1fr);
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 400;
    font-size: 0.9rem;
}

.radio-option:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-option input[type="radio"]:checked ~ * {
    color: var(--primary-color);
    font-weight: 600;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 55, 121, 0.3);
}

.submit-button:active {
    transform: translateY(-1px);
}

.button-text {
    transition: opacity 0.3s ease;
}

.sloth-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-button.loading .button-text {
    opacity: 0;
}

.submit-button.loading .sloth-animation {
    opacity: 1;
}

.sloth {
    font-size: 1.5rem;
    animation: surf 1.5s ease-in-out infinite;
}

.wave {
    font-size: 1.2rem;
    margin-top: -8px;
    animation: wave 1s ease-in-out infinite;
}

@keyframes surf {
    0%, 100% { transform: rotate(-5deg) translateX(-5px); }
    50% { transform: rotate(5deg) translateX(5px); }
}

@keyframes wave {
    0%, 100% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
}

.result-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.result-message.show {
    opacity: 1;
    transform: translateY(0);
}

.result-message.success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
}

.result-message.error {
    background: linear-gradient(135deg, var(--error-color), #e74c3c);
    color: white;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

.privacy-disclaimer {
    font-size: 0.75rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.privacy-disclaimer a {
    color: #666;
    text-decoration: underline;
    font-weight: normal;
    transition: color 0.3s ease;
}

.privacy-disclaimer a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .logo-top-left {
        width: 80px;
        height: 80px;
        top: 10px;
        left: 10px;
        padding: 5px;
    }
    
    .container {
        padding: 10px;
        padding-top: 100px;
    }
    
    header, main {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
    
    .radio-group,
    .form-group:first-of-type .radio-group,
    .form-group:nth-of-type(3) .radio-group {
        grid-template-columns: 1fr;
    }
    
    .sloth-emoji {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo-top-left {
        width: 60px;
        height: 60px;
        top: 8px;
        left: 8px;
        padding: 4px;
    }
    
    .container {
        padding-top: 80px;
    }
}

