﻿:root {
    --bg: #ffe8f0;
    --card: #ffffff;
    --accent: #513d6f;
    --muted: #6b7280;
    --radius: 12px;
    --gap: 12px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #513d6f;
}

.card {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    padding: 20px;
    border: 1px solid #eee;
}

h2 {
    margin: 0 0 8px 0;
    font-size: 20px
}

p.lead {
    margin: 0 0 18px 0;
    color: var(--muted);
    font-size: 14px
}

form {
    display: grid;
    gap: var(--gap);
    grid-template-columns: 1fr;
}

/* On wider screens use two columns */
@media (min-width:720px) {
    form {
        grid-template-columns: repeat(2, 1fr)
    }

    .full {
        grid-column: 1 / -1
    }
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #513d6f;
    font-weight: 600;
}

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border-radius: 12px;
    border: 2px solid #513d6f;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    color: #513d6f;
    transition: box-shadow .25s, border-color .25s, transform .25s;
    position: relative;
}

}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 6px 18px rgba(11,116,222,0.08);
    border-color: var(--accent);
}

.hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px
}

textarea {
    min-height: 120px;
    resize: vertical
}

.row {
    display: flex;
    gap: 10px
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 6px
}

button {
    background: #513d6f;
    color: #ffffff;
    border: 2px solid #513d6f;
    padding: 11px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: transform .25s ease, box-shadow .25s ease;
}

}

button.secondary {
    background: #f4effc;
    color: #513d6f;
    border: 2px solid #513d6f;
}

}

/* simple invalid state styling */
input:invalid, textarea:invalid {
    border-color: #e02424;
}

/* small helper layout */
.field {
    display: flex;
    flex-direction: column
}

/* small responsive tweaks */
@media (max-width:420px) {
    .card {
        padding: 16px
    }

    h2 {
        font-size: 18px
    }
}

.title-bar {
    background: #ffffff;
    color: #513d6f;
    padding: 0px 5px;
    border-radius: 14px;
    margin-bottom: 14px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    gap: 10px;
    animation: titleFade 1.2s ease;
    border: 2px solid #513d6f;
}

@keyframes titleFade {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-star::before {
    content: "★";
    font-size: 26px;
    color: #ffd369;
    text-shadow: 0 0 10px rgba(255,211,105,0.6);
}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 12px rgba(81,61,111,0.55);
    border-color: var(--accent);
    transform: scale(1.01);
}

button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(81,61,111,0.45);
}

button.secondary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(81,61,111,0.25);
}

@keyframes floatPulse {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-4px)
    }

    100% {
        transform: translateY(0)
    }
}

.card {
    animation: floatPulse 6s ease-in-out infinite;
}

.field {
    position: relative
}

    .field .icon {
        position: absolute;
        left: 12px;
        top: 42px;
        font-size: 20px;
        color: #513d6f;
        opacity: 1;
        z-index: 5;
        animation: iconFloat 3s ease-in-out infinite;
    }

}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 18px rgba(81,61,111,0.85);
    border-color: #513d6f;
    transform: scale(1.02);
}

/* Submit success animation */
@keyframes successPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.success-message {
    display: none;
    margin-top: 18px;
    padding: 14px;
    background: #ffffff;
    border: 2px solid #00c878;
    backdrop-filter: blur(6px);
    color: #004d2a;
    border-radius: 12px;
    animation: successPop .6s ease;
    text-align: center;
    font-weight: 600;
}

.icon {
    position: absolute;
    left: 12px;
    top: 42px;
    font-size: 18px;
    opacity: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0% {
        transform: translateY(0);
        opacity: .7
    }

    50% {
        transform: translateY(-4px);
        opacity: 1
    }

    100% {
        transform: translateY(0);
        opacity: .7
    }
}
