:root {
    --primary: #ff6250;
    --secondary: #4a90e2;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --success: #00b894;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s ease;
}

.body-bg {
    background-color: #f5f5f5;
}

.pie-logo {
    margin: 0;
    vertical-align: middle;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    text-shadow:
        1px 1px 0 #bebfbb,
        -1px -1px 0 #bebfbb,
        1px -1px 0 #bebfbb,
        -1px 1px 0 #bebfbb;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.navbar {
    position: fixed;
    top: -60px;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar a {
    position: relative;
    padding-bottom: 4px;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #3a3a3a !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar:hover,
body:hover .navbar {
    top: 0;
}

.navbar-links {
    display: flex;
    justify-content: left;
    gap: 4rem;
    margin-left: 5%;
}

.content {
    padding-top: 150px;
    padding-bottom: 150px;
    max-width: 1080px;
    flex: 1;
    margin: 0 auto;
    text-align: center;
}

.form-container {
    background: rgba(248, 249, 250, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    padding: 2.5rem;
    transition: transform 0.3s ease;
    margin-top: 2rem;
    backdrop-filter: blur(8px);
}

.form-container:hover {
    transform: translateY(-5px);
}

.form-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-group {
    flex: 0 0 auto;
    margin: 0;
}

.select-label {
    font-size: 1.2rem;
    margin-right: 0.2rem;
    font-weight: 600;
}

.form-label {
    font-size: 1.2rem;
    margin-right: 0.2rem;
    font-weight: 600;
    white-space: nowrap;
}

.form-select {
    padding: 0.8rem;
    font-size: 1.2rem;
    margin: 0.5rem;
    margin-right: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
}

.form-input {
    padding: 0.8rem;
    font-size: 1.2rem;
    margin: 0.5rem;
    margin-right: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 350px;
    background: rgba(255, 255, 255, 0.9);
    transition: border 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(255, 98, 80, 0.1);
}

.submit-btn {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #36f, #a898ec);
    color: rgb(255, 255, 255);
    padding: 1rem 1rem;
    min-width: 120px;
    text-align: center;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 98, 80, 0.3);
    background: linear-gradient(135deg, #2a5bd7, #9b88e6);
    opacity: 0.95;
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(255, 98, 80, 0.2);
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spinner 0.6s linear infinite;
}

@keyframes button-spinner {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn:disabled {
    background: #ff9d90;
    cursor: not-allowed;
    opacity: 0.9;
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 10, 104, 0.3);
}

.error-message {
    margin-top: 1rem;
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.3s ease-in-out;
}

.error-content {
    display: flex;
    align-items: center;
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: #d32f2f;
    font-size: 0.9rem;
}

.error-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    color: #f44336;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: #333;
    color: white;
    text-align: center;
    line-height: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    color: #6c757d;
    line-height: 1.5;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .divider {
        display: none;
    }

    .form-select,
    .form-input {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .submit-btn {
        margin-top: 1rem;
        order: 1;
    }

    .form-input {
        width: 100% !important;
        margin-right: 0;
    }

    .content {
        padding: 120px 1rem 2rem;
    }

    .footer {
        padding: 0.5rem 0.5rem;
        height: 20px;
        line-height: 10px;
    }

    .footer-text {
        font-size: 0.45rem;
    }
}