/* ========== Form Card Container ========== */
.contact-form-container {
    max-width: 640px;
    margin: 80px auto;
    padding: 48px 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Questrial', sans-serif;
    font-size: 1.2rem;

}

body.contact-page {
    position: relative;
    min-height: 100vh;
    background-color: transparent; /* base fallback */
    overflow-x: hidden;
    font-family: 'Questrial', sans-serif;
}

body.contact-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
}

.contact-info-box {
    color: #fff; /* ensures light text stands out */
    padding: 30px;
    border-radius: 12px;
}

/* ========== Heading ========== */
.contact-form-container h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 2rem;
}

.contact-info-box h2 {
    font-size: 4rem;
    font-family: 'Questrial', sans-serif;
    font-weight: bold;
}


.contact-info-box h5 {
    font-size: 2.5rem;
    font-family: 'Questrial', sans-serif;
}

.contact-info-box p {
    font-size: 1.7rem;
    line-height: 1.7;
}

/* ========== Input Groups ========== */
.form-group {
    margin-bottom: 1.75rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    color: #333;
}

.form-group small {
    color: #888;
    font-size: 1.1rem;
}

/* ========== Form Inputs ========== */
.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.6rem;
    transition: all 0.25s ease-in-out;
}

.form-control:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
    outline: none;
}

textarea.form-control.larger-textarea {
    height: 140px;
    resize: none !important; /* 禁止手动拖动 */
}

/* ========== Message Helper Text ========== */
#messageHelp {
    font-size: 1.3rem;
    margin-top: 0.3rem;
    display: block;
    color: #888;
}

/* ========== Checkout Form Container ========== */
.checkout-form {
    margin-top: 40px; /* Additional spacing if required */
}

.checkout-form table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* Table Headers */
.checkout-form table th {
    background-color: #f9f9f9;
    text-align: left;
    padding: 0.8rem;
    border-bottom: 2px solid #ddd;
    font-size: 1.4rem;
}

/* Table Cells */
.checkout-form table td {
    padding: 0.8rem;
    font-size: 1.3rem;
}

/* Total Row Styling */
.checkout-form table tfoot td {
    font-weight: 700;
    font-size: 1.4rem;
}

/* Responsive Design Adjustments */
@media (max-width: 576px) {
    .checkout-form table td,
    .checkout-form table th {
        font-size: 1.2rem;
        padding: 0.6rem;
    }
}


/* ========== Button Container ========== */
.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    gap: 40px;
    flex-wrap: wrap;
}

/* ========== Primary Button ========== */
.btn.btn-primary {
    background: linear-gradient(145deg, #000000, #1a1a1a);
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    border: 1px solid #000;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn.btn-primary:hover {
    background: #ffffff;
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* ========== Danger Button ========== */
.btn.btn-danger {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 0.75rem 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn.btn-danger:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* ========== Secondary Button (Go Back) ========== */
.btn.btn-secondary {
    background-color: transparent;
    border: 1px solid #000000;
    color: #000000;
    padding: 0.75rem 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn.btn-secondary:hover {
    background-color: #000;
    color: #fff;
}

/* ========== reCAPTCHA Container ========== */
.recaptcha-container {
    margin-top: 2rem;
}

/* ========== Flash Messages ========== */
.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #888;
}

/* ========== Responsive Design ========== */
@media (max-width: 576px) {
    .contact-form-container {
        padding: 30px 20px;
    }

    .button-container {
        flex-direction: column;
        gap: 20px;
    }

    .btn {
        width: 100%;
    }
}

