* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, Segoe UI, sans-serif;
    background: url("../images/bg.jpg") center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Dark overlay */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 0;
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 600px;
    z-index: 2;
}

/* ---- Glassmorphism Form ---- */
form {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 38px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
}

/* ---- Grid Layout ---- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.full {
    grid-column: span 2;
}

/* ---- Input Fields ---- */
.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.input-group input,
.input-group textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    font-size: 15px;
    color: #fff;
    transition: 0.25s;
}

/* Textarea */
textarea {
    height: 100px;
    resize: none;
}

/* Placeholder color */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

/* Focus style */
.input-group input:focus,
.input-group textarea:focus {
    border-color: #7aa7ff;
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

/* ---- Submit Button ---- */
button {
    width: 100%;
    padding: 14px;
    margin-top: 22px;
    background: #4a67ff;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease-in-out;
}

button:hover {
    background: #304df0;
    transform: translateY(-2px);
}

/* ---- Success Message ---- */
.message {
    display: none;
    margin-top: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.8);
    color: #1d7d3f;
    border-left: 5px solid #1d7d3f;
    border-radius: 8px;
    font-size: 15px;
    backdrop-filter: blur(10px);
}

.message.show {
    display: block;
}

/* ---- Responsive ---- */
@media(max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: 1;
    }
}