:root {
    --dark: #290907;
    --brown: #57473A;
    --green: #6E8658;
    --blue: #73A1B2;
    --light: #D0D5CE;
    --offwhite: #EFE9E1;
}

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

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, var(--offwhite) 0%, var(--light) 25%, #B8C5B8 50%, var(--light) 75%, var(--offwhite) 100%);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

/* FLOOR REFLECTION */
body::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(41, 9, 7, 0.08), transparent);
    pointer-events: none;
}

/* AMBIENT BLOBS */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.bg-blob.one {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue), var(--green));
    top: -150px;
    left: -150px;
    opacity: 0.35;
    animation: float 18s infinite ease-in-out, morph 20s infinite ease-in-out;
}

.bg-blob.two {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--green), var(--brown));
    bottom: -120px;
    right: -120px;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out 3s, morph 18s infinite ease-in-out 2s;
}

.bg-blob.three {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--blue), var(--light));
    top: 40%;
    right: -150px;
    opacity: 0.28;
    animation: float 16s infinite ease-in-out 6s, morph 22s infinite ease-in-out 4s;
}

.bg-blob.four {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--brown), var(--dark));
    top: -100px;
    right: 20%;
    opacity: 0.2;
    animation: float 14s infinite ease-in-out 1s, morph 16s infinite ease-in-out 3s;
}

.bg-blob.five {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--light), var(--blue));
    bottom: 20%;
    left: -100px;
    opacity: 0.25;
    animation: float 17s infinite ease-in-out 4s, morph 19s infinite ease-in-out 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(60px, -50px) rotate(90deg); }
    50% { transform: translate(-40px, 60px) rotate(180deg); }
    75% { transform: translate(50px, 40px) rotate(270deg); }
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 40% 60% 50% / 40% 70% 50% 60%; }
    75% { border-radius: 40% 70% 50% 60% / 70% 50% 60% 40%; }
}

/* CONTAINER */
.container {
    width: 460px;
    padding: 50px 45px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 90px rgba(41, 9, 7, 0.18),
                0 20px 40px rgba(110, 134, 88, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease;
}

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

/* REFLECTION EFFECT */
.container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent);
    transform: scaleY(-1);
    opacity: 0.3;
    border-radius: 24px;
    z-index: -1;
}

h2 {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.2;
}

h2 span {
    color: var(--green);
}

.subtitle {
    font-size: 14px;
    color: var(--brown);
    margin-bottom: 35px;
}

/* MESSAGE */
.message {
    background: rgba(110, 134, 88, 0.15);
    color: var(--green);
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 3px solid var(--green);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

input {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    padding: 15px 20px;
    border: 1px solid rgba(87, 71, 58, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--dark);
    transition: all 0.3s ease;
    outline: none;
}

input::placeholder {
    color: var(--brown);
    opacity: 0.6;
}

input:focus {
    border-color: var(--green);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(110, 134, 88, 0.1);
    transform: translateY(-2px);
}

button {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 15px;
    border-radius: 14px;
    border: none;
    background: var(--dark);
    color: var(--offwhite);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    position: relative;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(41, 9, 7, 0.3);
}

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

a {
    text-align: center;
    color: var(--green);
    text-decoration: none;
    font-size: 14px;
    margin-top: 18px;
    display: block;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dark);
}

/* DECORATIVE ELEMENTS */
.decorative-line {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--green), transparent);
    opacity: 0.4;
}

.decorative-circle {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--green);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(110, 134, 88, 0.4); }
    100% { box-shadow: 0 0 0 12px rgba(110, 134, 88, 0); }
}

/* LOADING STATE */
button.loading {
    pointer-events: none;
    opacity: 0.7;
}

button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--offwhite);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}