/* General Body Styles */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #fce4ec 0%, #ffe0f0 100%); /* Soft pink gradient */
    font-family: 'Open Sans', sans-serif;
    color: #333;
    margin: 0;
    overflow: hidden; /* Prevent scrollbars from confetti */
}

/* Main Container Styling */
.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    max-width: 550px;
    width: 90%;
    z-index: 10; /* Ensure container is above confetti */
    border: 1px solid rgba(255, 255, 255, 0.8); /* Subtle white border */
    backdrop-filter: blur(5px); /* Frosted glass effect */
}

/* Heart Decoration */
.heart {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(-45deg); /* Center and rotate */
    width: 60px; /* Base square size */
    height: 60px;
    background-color: #ff6f91; /* Vibrant pink */
    box-shadow: 0 8px 20px rgba(255, 111, 145, 0.4);
    z-index: 12;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 60px; /* Same size as base square */
    height: 60px;
    background-color: #ff6f91;
    border-radius: 50%; /* Perfect circles */
}

.heart::before {
    top: -30px; /* Half of width/height above */
    left: 0;
}

.heart::after {
    top: 0;
    left: 30px; /* Half of width/height to the right */
}

/* Headings */
h1 {
    font-family: 'Pacifico', cursive; /* Elegant script font */
    color: #e91e66; /* Deep pink */
    font-size: 3em;
    margin-bottom: 30px;
    white-space: pre-wrap; /* Allow newlines from JS */
    line-height: 1.2;
}

h2 {
    font-family: 'Open Sans', sans-serif;
    color: #c2185b; /* Slightly darker pink */
    font-size: 1.8em;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #880e4f; /* Darker romantic pink */
    font-size: 1.1em;
}

input[type="text"],
textarea {
    width: calc(100% - 24px); /* Account for padding */
    padding: 12px;
    border: 1px solid #f8bbd0; /* Soft pink border */
    border-radius: 10px;
    font-size: 1em;
    color: #555;
    background-color: #fff9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #e91e66; /* Highlight on focus */
    box-shadow: 0 0 8px rgba(233, 30, 102, 0.2);
    outline: none;
}

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

/* Buttons Styling */
.buttons, .proposal-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

button {
    padding: 14px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#customize-btn {
    background: linear-gradient(45deg, #ff6f91, #ff9a8d); /* Pink-orange gradient */
    color: white;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(255, 111, 145, 0.4);
}

#customize-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 111, 145, 0.6);
}

#yes-btn {
    background: linear-gradient(45deg, #a8e063, #56ab2f); /* Green gradient */
    color: white;
    box-shadow: 0 5px 15px rgba(168, 224, 99, 0.4);
}

#yes-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 7px 20px rgba(168, 224, 99, 0.6);
}

#no-btn {
    background: linear-gradient(45deg, #ff416c, #ff4b2b); /* Red-orange gradient */
    color: white;
    position: relative;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4);
}

#no-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 65, 108, 0.6);
}

/* Response Message */
#response-message {
    margin-top: 40px;
}

#response-message h2 {
    color: #e91e66;
    font-size: 2.5em;
    font-family: 'Pacifico', cursive;
}

#saved-message {
    color: #777;
    font-size: 1em;
    margin-top: 10px;
}

/* Confetti Animation */
#confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 5; /* Below container but above background */
}

.confetti-heart {
    position: absolute;
    background-color: #ff80ab; /* Pink */
    width: 25px; /* Slightly larger hearts */
    height: 25px;
    transform: rotate(-45deg);
    border-radius: 50% 50% 0 50%;
    animation: fall 6s linear infinite; /* Slower, longer fall */
    opacity: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.confetti-heart::before,
.confetti-heart::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: #ff80ab;
    border-radius: 50%;
}

.confetti-heart::before {
    top: -12.5px;
    left: 0;
}

.confetti-heart::after {
    top: 0;
    left: 12.5px;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(-45deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(315deg) scale(1.2);
        opacity: 0;
    }
}

.hidden {
    display: none;
}

/* Saved Proposals List */
hr {
    border: 0;
    border-top: 1px dashed #f8bbd0; /* Dotted line */
    margin: 40px 0;
}

#saved-proposals-list {
    margin-top: 25px;
    text-align: left;
}

.proposal-item {
    background: #fffafa; /* Very light background */
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 6px solid #ffcdd2; /* Soft pink border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.proposal-item:hover {
    transform: translateY(-3px);
}

.proposal-item h3 {
    margin: 0 0 8px 0;
    color: #e91e66;
    font-size: 1.3em;
    font-family: 'Open Sans', sans-serif;
}

.proposal-item p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #666;
}

.proposal-item small {
    font-size: 0.8em;
    color: #999;
    display: block;
    margin-top: 10px;
}