/* Inspired by w3 schools, this css file styles a form of ordering a burger with inputs and a submit button. */

/* Animations */
@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Top navigation bar */
.top-nav {
    background: linear-gradient(135deg, #fdfdfd, #f5f5f5);
    text-align: center;
    text-decoration: double;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.6s ease-out;
}

.top-nav a {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: #333;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.home-link {
    padding: 0.5rem 1rem !important;
}

.top-nav a:hover {
    color: #11be64;
    transform: translateY(-2px);
}

/* Form layout */
.container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, #11be64, #0da852);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.8s ease-out;
}

.container h1 {
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
    font-size: 1.8rem;
}

/* Label group */
.form-group {
    margin-bottom: 1.5rem;
    animation: slideInUp 0.6s ease-out backwards;
}

.form-group:nth-of-type(1) {
    animation-delay: 0.1s;
}

.form-group:nth-of-type(2) {
    animation-delay: 0.2s;
}

.form-group:nth-of-type(3) {
    animation-delay: 0.3s;
}

.form-group:nth-of-type(4) {
    animation-delay: 0.4s;
}

.form-group:nth-of-type(5) {
    animation-delay: 0.5s;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

/* Inputs, selects and text area styling css */
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: white;
    background-color: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

/* Button style */
button.btn {
    background: linear-gradient(135deg, #25b781, #1a8b5e);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.8s ease-out 0.5s both;
}

button.btn:hover {
    background: linear-gradient(135deg, #1a8b5e, #15664a);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

button.btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Response message styling */
.response-message {
    margin-top: 1.5rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    animation: slideInUp 0.4s ease-out;
}

.response-message.success {
    background-color: rgba(37, 183, 129, 0.2);
    color: #0da852;
    border-left: 4px solid #0da852;
}

.response-message.error {
    background-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    border-left: 4px solid #dc2626;
}
  