/* --- BBQ Event Page Specific Styles --- */

.bbq-hero {
    padding: 10rem 2rem 4rem;
    background: var(--bg-main);
    background-image: radial-gradient(circle at top right, rgba(21, 122, 105, 0.05), transparent 40%);
}

.event-year {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.bbq-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #0C5346;
    margin-bottom: 0;
}

.bbq-hero h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.event-details-card {
    background: white;
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    text-align: left;
}

.detail-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    width: 100px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.detail-value {
    font-weight: 500;
    color: var(--text-main);
}

.highlight-red {
    color: #D32F2F;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Form Styles */
.form-container {
    max-width: 500px;
}

.form-header {
    text-align: center;
    padding-bottom: 1.5rem;
}

.form-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

.bbq-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.required {
    color: #D32F2F;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(21, 122, 105, 0.15);
}

.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.phone-input-wrapper select {
    width: 150px;
    flex-shrink: 0;
}

.w-100 {
    width: 100%;
}

.warning-text {
    display: block;
    color: #f59e0b;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    min-height: 1.2rem;
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.form-message.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* --- 表單驗證提示訊息 --- */
.error-text {
    display: block;
    color: #D32F2F; /* 醒目的紅色 */
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.4rem;
    min-height: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.error-text.visible {
    opacity: 1;
}

/* 當有錯誤時，讓輸入框邊框也變紅 */
input.is-invalid {
    border-color: #D32F2F;
    background-color: #fffafa;
}

input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
    border-color: #D32F2F;
}

/* Email 防呆修正提示(黃色系)，與錯誤提示(紅色)區隔 */
.warning-text {
    display: block;
    color: #d97706; 
    font-size: 0.85rem;
    margin-top: 0.2rem;
    min-height: 0;
}

@media (max-width: 768px) {
    .detail-row {
        flex-direction: column;
    }
    .detail-label {
        margin-bottom: 0.25rem;
    }
    .phone-input-wrapper select{
        width: 100px;
    }
}