/*
 * =============================================
 * Contact Page Styles (Consistent with Site)
 * =============================================
 */

/* Use site-wide variables if available */
:root {
    --primary-bg: #5b4b8a;
    --primary-accent: #0070ba;
    --primary-accent-dark: #005082;
    --secondary-accent: #007bff;
    --secondary-accent-dark: #0056b3;
    --text-light: #e3e6ea;
    --text-dark: #1a171b;
    --border-radius: 0.7rem;
    --box-shadow: 0 2px 12px 0 rgba(0,0,0,0.09);
    --font-family: 'Segoe UI', Arial, sans-serif;
}

/* Layout & Containers */
.contact-box {
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
    font-family: var(--font-family);
}

.contact-box h2 {
    border-bottom: 1px solid var(--text-light);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.contact-layout-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.divider {
    border-bottom: 1px solid var(--text-light);
    margin: 2rem 0;
}

/* Contact Info & Donations */
#contact-info,
#paypal-donation {
    flex: 1;
    min-width: 280px;
}

#contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#contact-info li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.paypal-button,
#file-upload-button,
#contact-form button {
    background-color: var(--primary-accent);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.07);
    font-family: var(--font-family);
    margin-top: 0.5rem;
}

.paypal-button:hover,
.paypal-button:focus {
    background-color: var(--primary-accent-dark);
    outline: none;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.12);
}

#file-upload-button {
    background-color: var(--secondary-accent);
}

#file-upload-button:hover,
#file-upload-button:focus {
    background-color: var(--secondary-accent-dark);
    box-shadow: 0 2px 8px 0 rgba(0,123,255,0.13);
}

#contact-form button {
    background: #222222cc;
    color: var(--text-light);
    padding: 0.7rem 2rem;
    margin-top: 1rem;
}

#contact-form button:hover,
#contact-form button:focus {
    background: var(--primary-bg);
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(91,75,138,0.18);
}

/* Contact Form */
#contact-form form {
    background: rgba(0, 0, 0, 0.22);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto 2rem;
    box-shadow: var(--box-shadow);
    font-family: var(--font-family);
}

#contact-form form div {
    margin-bottom: 1.2rem;
}

#contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

#contact-form input,
#contact-form textarea,
#contact-form select {
    width: 100%;
    padding: 0.7rem;
    box-sizing: border-box;
    border: 1px solid #222;
    border-radius: 0.4rem;
    background-color: var(--text-light);
    color: var(--text-dark);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-family);
}

#contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%235b4b8a" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2em;
    cursor: pointer;
    min-height: 2.5rem;
    padding-right: 2.5rem;
}

#contact-form select:focus {
    border-color: var(--primary-bg);
    outline: none;
    box-shadow: 0 0 0 2px #5b4b8a33;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--primary-bg);
    outline: none;
    box-shadow: 0 0 0 2px #5b4b8a33;
}

/* Radio Buttons */
.form-row-radio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    justify-content: center; /* Center horizontally */
    width: 100%;             /* Ensure full width for centering */
}

#contact-form input[type="radio"] {
    width: 1.1em;
    height: 1.1em;
    accent-color: var(--primary-bg);
    margin-right: 0.4em;
}

#contact-form .radio-group label {
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
    font-size: 1rem;
}

/* Item Description Fields */
#item_description_fields {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(.4,0,.2,1), opacity 0.4s;
    pointer-events: none;
}

#item_description_fields.show {
    max-height: 600px; /* Should be enough for your content */
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-layout-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    #contact-form form {
        padding: 1.2rem;
    }
}