/* ===================================
   survey-4.css – Pizza Survey
   CSS3 Styling
   Shirmenbaatar / 120222199
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Lato:wght@300;400;700&display=swap');

:root {
    --red:      #c0392b;
    --red-dark: #922b21;
    --orange:   #e67e22;
    --yellow:   #f39c12;
    --cream:    #fdf6ec;
    --brown:    #6e3b1f;
    --green:    #27ae60;
    --shadow:   rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    background-image:
        radial-gradient(circle at 10% 90%, rgba(230,126,34,0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(192,57,43,0.07) 0%, transparent 45%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

/* ---- Header ---- */
header {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--orange) 100%);
    color: #fff;
    text-align: center;
    padding: 40px 20px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    animation: fadeDown 0.7s ease both;
}

header p {
    margin-top: 8px;
    font-size: 1rem;
    color: #ffe0b2;
    letter-spacing: 0.5px;
}

/* ---- Main Section ---- */
section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 60px;
}

/* ---- Form Card ---- */
article {
    background: #fff;
    width: 100%;
    max-width: 560px;
    border-radius: 20px;
    padding: 40px 45px;
    box-shadow: 0 8px 30px var(--shadow);
    border-top: 5px solid var(--red);
    animation: fadeUp 0.7s ease both;
}

/* ---- Form Groups ---- */
.form-group {
    margin-bottom: 24px;
}

/* ---- Labels ---- */
label,
.form-group > span {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--red-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* ---- Text Input ---- */
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8d5c4;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #444;
    background: #fffaf5;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(230,126,34,0.15);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c0392b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

/* ---- Radio Buttons ---- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option span {
    font-size: 0.95rem;
    color: #555;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
}

/* ---- Submit Button ---- */
.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192,57,43,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192,57,43,0.4);
    filter: brightness(1.08);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ---- Success Message ---- */
#success-msg {
    display: none;
    background: linear-gradient(135deg, #d5f5e3, #a9dfbf);
    border: 2px solid var(--green);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
    color: #1e8449;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 20px;
    animation: popIn 0.4s ease both;
}

/* ---- Footer ---- */
footer {
    background: linear-gradient(135deg, var(--red-dark), var(--brown));
    color: #ffe0b2;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9rem;
}

footer a {
    display: inline-block;
    margin-top: 10px;
    color: var(--yellow);
    text-decoration: none;
    font-weight: 700;
    padding: 7px 18px;
    border: 2px solid var(--yellow);
    border-radius: 20px;
    font-size: 0.88rem;
    transition: all 0.3s;
}

footer a:hover {
    background: var(--yellow);
    color: var(--brown);
    transform: scale(1.05);
}

/* ---- Animations ---- */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-25px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes popIn {
    0%   { opacity: 0; transform: scale(0.85); }
    70%  { transform: scale(1.04); }
    100% { opacity: 1; transform: scale(1); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    header h1 { font-size: 1.8rem; }
    article   { padding: 30px 22px; }
}
