/* =========================
   Base Styling
========================= */
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #d9a7c7, #fffcdc);
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

/* Main Container */
.container {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

/* =========================
   Heading
========================= */
h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* =========================
   Inputs & Select
========================= */
input {
    padding: 10px 2px;
    margin: 8px 0;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    outline: none;
    width: 100%;
    background: #f9f9f9;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

::placeholder{
    padding-left: 5px;
}
select {
    padding: 10px 14px;
    margin: 8px 0;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    outline: none;
    width: 100%;
    background: #f9f9f9;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

input:focus, select:focus {
    transform: scale(1.03);
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

/* =========================
   Button Styling
========================= */
button {
    padding: 12px;
    background: #a0c4ff; /* Default soft blue */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
    width: 100%;
    margin-top: 12px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

button:active {
    transform: scale(0.98);
}

/* =========================
   Modal (unchanged)
========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background: linear-gradient(135deg, #e6b8d5, #fceabb);
    margin: 15% auto;
    padding: 20px 25px;
    border-radius: 12px;
    width: 320px;
    max-width: 85%;
    text-align: center;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0px 6px 18px rgba(0,0,0,0.25);
    animation: scaleUp 0.25s ease-in-out;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #777;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}
.close:hover {
    color: #333;
    transform: scale(1.2);
}

#modalMessage {
    margin-top: 10px;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* =========================
   Result Display
========================= */
#result {
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 12px 15px;
    border-radius: 8px;
    display: inline-block;
    min-width: 260px;
    animation: fadeIn 0.3s ease-in-out;
}

/* =========================
   Animations
========================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* =========================
   Responsive Design
========================= */
@media (max-width: 768px) {
    h2 {
        font-size: 1.4rem;
    }
    .container {
        padding: 20px;
    }
}
