/* css/parties.css */

.parties-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.parties-hero img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
}

.parties-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.parties-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    color: var(--primary-gold, #D4AF37);
}

.parties-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.parties-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.parties-content {
    flex: 1 1 600px;
}

.parties-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #121212;
    margin-bottom: 20px;
}

.parties-content .text-body {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-wrap;
    margin-bottom: 30px;
}

.parties-sidebar {
    flex: 1 1 350px;
}

.info-card {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-top: 4px solid var(--primary-gold, #D4AF37);
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.info-card h3 {
    margin-top: 0;
    font-family: 'Playfair Display', serif;
    color: #121212;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-card li:last-child {
    border-bottom: none;
}

.feature-check {
    width: 100%; 
    text-align: right; 
    color: #121212;
    font-weight: 500;
}

.party-form .form-group {
    margin-bottom: 15px;
    width: 100%;
}

/* Form Row Logic */
.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-row .form-group {
    flex: 1;
}

.party-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.party-form input, .party-form textarea {
    display: block; 
    width: 100% !important;
    max-width: 100% !important; 
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box; 
    appearance: none;
    -webkit-appearance: none;
}

.party-form button {
    background: #121212;
    color: #fff;
    padding: 15px;
    width: 100%;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.party-form button:hover {
    background: var(--primary-gold, #D4AF37);
    color: #121212;
}

.success-msg {
    background: rgba(212, 175, 55, 0.1);
    color: #121212;
    border: 1px solid var(--primary-gold, #D4AF37);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

/* --- MOBILE TWEAKS --- */
@media screen and (max-width: 768px) {
    .parties-hero h1 {
        font-size: 2.5rem;
    }

    .parties-hero p {
        font-size: 1rem;
    }

    .parties-container {
        margin: 30px auto;
        gap: 20px;
    }

    /* THE FIX: Ensure the sidebar doesn't expand the page */
    .parties-sidebar {
        width: 100% !important;
        flex: none !important;
    }

    /* Stack the Date and Guests fields on mobile */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .info-card {
        padding: 20px;
    }
}