/* ============================================================
   PHYSICS PLATFORM - SUPPORT & INQUIRY PAGE STYLES (RED / BLUE / GOLD)
   ============================================================ */

/* Main Container */
.ph-support-container {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text, #1B2748);
    max-width: 980px;
    margin: 20px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* --- HERO HEADER CARD --- */
.ph-support-hero {
    background: linear-gradient(135deg, var(--teal-dark, #0D2F75) 0%, var(--primary-teal, #154193) 100%);
    color: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    border-bottom: 4px solid var(--gold, #DDA624);
    box-shadow: 0 10px 30px rgba(13, 47, 117, 0.12);
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}

.ph-support-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg, 
        transparent, 
        transparent 28px, 
        rgba(255, 255, 255, 0.03) 28px, 
        rgba(255, 255, 255, 0.03) 29px
    );
    pointer-events: none;
}

.ph-support-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ph-support-hero h1::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--gold, #DDA624), var(--gold-light, #F4D06F));
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(221, 166, 36, 0.4);
    flex-shrink: 0;
}

.ph-support-hero p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(243, 247, 255, 0.9);
    margin: 0;
    padding: 0;
}

/* --- SECTION TITLES --- */
.ph-section-title {
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--teal-dark, #0D2F75);
    margin: 35px 0 20px 0;
    padding: 12px 18px;
    background: linear-gradient(90deg, rgba(21, 65, 147, 0.06) 0%, rgba(221, 166, 36, 0.02) 100%);
    border-right: 5px solid var(--primary-teal, #154193);
    border-bottom: 1px solid rgba(221, 166, 36, 0.2);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- INQUIRY MATRIX TABLE --- */
.ph-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(13, 47, 117, 0.08);
    border: 1px solid var(--primary-teal, #154193);
    margin-bottom: 35px;
    background: #ffffff;
}

.ph-matrix-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: right;
    font-size: 0.95rem;
    background-color: #ffffff;
}

.ph-matrix-table th {
    background-color: var(--teal-dark, #0D2F75);
    color: #ffffff !important;
    padding: 18px 20px;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 3px solid var(--gold, #DDA624);
}

.ph-matrix-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: var(--text, #1B2748);
    line-height: 1.6;
    font-size: 0.95rem;
}

.ph-matrix-table tr:nth-child(even) {
    background-color: var(--aim-soft, #f2f6fc);
}

.ph-matrix-table tr:hover {
    background-color: #eaf1fc;
    transition: background 0.3s ease;
}

/* Table Scrollbar Styling (Blue / Gold) */
.ph-table-wrapper::-webkit-scrollbar {
    height: 8px;
}
.ph-table-wrapper::-webkit-scrollbar-track {
    background: #f2f6fc;
}
.ph-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--gold, #DDA624);
    border-radius: 10px;
}

/* Badges */
.ph-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.ph-badge-urgent {
    background: #fde8e9;
    color: var(--aim-red-dk, #A30710);
    border: 1px solid rgba(208, 9, 16, 0.3);
}

.ph-badge-standard {
    background: #edf3fc;
    color: var(--primary-teal, #154193);
    border: 1px solid rgba(21, 65, 147, 0.3);
}

.ph-badge-weekly {
    background: #fff3cc;
    color: #8a5a00;
    border: 1px solid rgba(221, 166, 36, 0.4);
}

/* --- DEEP WORK POLICY BOX --- */
.ph-notice-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-right: 4px solid var(--gold, #DDA624);
    border-left: 1px solid rgba(221, 166, 36, 0.2);
    border-top: 1px solid rgba(221, 166, 36, 0.2);
    border-bottom: 1px solid rgba(221, 166, 36, 0.2);
    border-radius: 8px;
    padding: 22px 25px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(13, 47, 117, 0.04);
}

.ph-notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--teal-dark, #0D2F75);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.ph-notice-card p {
    margin: 0;
    padding: 0;
    line-height: 1.75;
    color: #334155;
    font-size: 0.95rem;
}

/* ============================================================
   THIRD-PARTY INTEGRATION — JETPACK CONTACT FORM (SOVEREIGN BLUE/GOLD)
   ============================================================ */
.wp-block-jetpack-contact-form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin-bottom: 35px !important;
}

/* Form Container Block */
.wp-block-jetpack-contact-form [data-wp-interactive="jetpack/form"] {
    background-color: #f6f9fe !important;
    padding: 35px;
    border-top: 4px solid var(--teal-dark, #0D2F75) !important;
    border-bottom: 3px solid var(--gold, #DDA624) !important;
    border-left: 1px solid rgba(13, 47, 117, 0.1) !important;
    border-right: 1px solid rgba(13, 47, 117, 0.1) !important;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(13, 47, 117, 0.06);
}

/* Field Labels */
.wp-block-jetpack-contact-form .grunion-field-label {
    color: var(--teal-dark, #0D2F75) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.88rem !important;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

/* Inputs & Textareas */
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form textarea {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
    color: var(--text, #1B2748) !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form textarea:focus {
    border-color: var(--primary-teal, #154193) !important;
    box-shadow: 0 0 0 3px rgba(21, 65, 147, 0.15) !important;
    outline: none !important;
    background-color: #ffffff !important;
}

/* --- CENTER SUBMIT BUTTON & WRAPPER --- */
.wp-block-jetpack-contact-form .wp-block-button,
.wp-block-jetpack-contact-form .wp-block-jetpack-button,
.wp-block-jetpack-contact-form .grunion-field-submit-wrap {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
}

/* Submit Button Style & Alignment */
.wp-block-jetpack-contact-form .wp-block-button__link,
.wp-block-jetpack-contact-form input[type="submit"],
.wp-block-jetpack-contact-form button[type="submit"] {
    background: linear-gradient(180deg, var(--primary-teal, #154193), var(--teal-dark, #0D2F75)) !important;
    color: #ffffff !important;
    border: 1px solid var(--gold, #DDA624) !important;
    font-weight: 700 !important;
    padding: 14px 38px !important;
    border-radius: 30px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(13, 47, 117, 0.18) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.wp-block-jetpack-contact-form .wp-block-button__link:hover,
.wp-block-jetpack-contact-form input[type="submit"]:hover,
.wp-block-jetpack-contact-form button[type="submit"]:hover {
    background: var(--gold, #DDA624) !important;
    color: var(--teal-dark, #0D2F75) !important;
    border-color: var(--teal-dark, #0D2F75) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 166, 36, 0.3) !important;
}

/* --- FOOTER CTA BANNER --- */
.ph-cta-banner {
    background: linear-gradient(135deg, var(--footer-bg, #08123A) 0%, var(--teal-dark, #0D2F75) 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    border-top: 3px solid var(--gold, #DDA624);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(8, 18, 58, 0.2);
}

.ph-cta-text h3 {
    font-family: Georgia, serif;
    color: var(--gold, #DDA624);
    margin: 0 0 8px 0;
    font-size: 1.35rem;
}

.ph-cta-text p {
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.ph-cta-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.ph-btn-gold {
    background: var(--gold, #DDA624);
    color: var(--teal-dark, #0D2F75) !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.ph-btn-gold:hover {
    background: var(--gold-light, #F4D06F);
    transform: translateY(-2px);
}

.ph-btn-outline {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid var(--gold, #DDA624);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.ph-btn-outline:hover {
    background: rgba(221, 166, 36, 0.15);
    color: var(--gold-light, #F4D06F) !important;
    transform: translateY(-2px);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .ph-matrix-table th, .ph-matrix-table td {
        padding: 15px 12px;
    }
    .ph-cta-banner {
        flex-direction: column;
        text-align: center;
    }
    .ph-cta-buttons {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }
    .ph-btn-gold, .ph-btn-outline {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .ph-support-hero h1 {
        font-size: 1.6rem;
    }
    .wp-block-jetpack-contact-form [data-wp-interactive="jetpack/form"] {
        padding: 22px 18px;
    }
}