/* style.css - Enchanted Prom Theme */

/* Basic Resets & Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Dancing+Script:wght@400;700&display=swap');

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

body {
    font-family: 'Playfair Display', serif; /* Elegant serif font */
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom right, #fce4ec, #e0f2f7); /* Soft, magical gradient */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    margin: 20px auto;
    overflow: hidden; /* For rounded corners */
}

/* Header */
header h1 {
    font-family: 'Dancing Script', cursive; /* Whimsical cursive font for title */
    font-size: 2.5em;
    color: #8e44ad; /* Deep purple */
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

header p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #555;
}

.rsvp-due {
    font-weight: bold;
    color: #e74c3c; /* Red for urgency */
    margin-top: 20px;
}

/* Main Content - Form */
main {
    margin-top: 30px;
}

.form-section {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease-in-out;
}

.form-section.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-section h2 {
    font-family: 'Dancing Script', cursive;
    color: #c0392b; /* A lovely red for subheadings */
    font-size: 1.8em;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #666;
    font-size: 0.95em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1em;
    transition: border-color 0.2s;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #8e44ad; /* Focus highlight */
    outline: none;
    box-shadow: 0 0 5px rgba(142, 68, 173, 0.3);
}

textarea {
    resize: vertical;
}

/* Radio Buttons */
.radio-group {
    text-align: left;
}

.radio-group p {
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.radio-group label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: normal; /* Override bold from .form-group label */
    color: #333;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2); /* Slightly larger radio buttons */
    vertical-align: middle;
}

/* Buttons */
button {
    background-color: #f39c12; /* Golden orange button */
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    display: inline-block; /* To allow transform */
    margin-top: 15px;
}

button:hover {
    background-color: #e67e22; /* Darker orange on hover */
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Messages */
.error-message, .success-message, .info-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

.error-message {
    background-color: #ffe0e0;
    color: #cc0000;
    border: 1px solid #ffb3b3;
}

.success-message {
    background-color: #e6ffe6;
    color: #008000;
    border: 1px solid #b3ffb3;
}

.info-message {
    background-color: #e0f7fa;
    color: #00796b;
    border: 1px solid #b2ebf2;
}

/* Calendar Section */
.calendar-section {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.calendar-section h2 {
    font-family: 'Dancing Script', cursive;
    color: #2e7d32; /* Green for calendar actions */
    font-size: 1.8em;
    margin-bottom: 15px;
}

.calendar-note {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
}

/* Footer */
footer {
    margin-top: 40px;
    font-size: 0.85em;
    color: #777;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        margin: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    button {
        padding: 12px 20px;
        font-size: 1em;
    }
}