/**
 * Contact Hub Page - Pauian Pilot Basketball Team
 * Orange/White Modern Design
 * 
 * Colors:
 * --orange: #FF6B35 (Primary)
 * --orange-dark: #E85A24 (Hover)
 * --orange-light: #FF8B5E (Light)
 * --white: #FFFFFF
 * --cream: #FFF8F5 (Background)
 * --charcoal: #2D2D2D (Text)
 */

/* ============================================
   CSS Custom Properties
   ============================================ */
.contact-hub-page {
    /* Primary Orange Palette */
    --orange: #FF6B35;
    --orange-dark: #E85A24;
    --orange-light: #FF8B5E;
    --orange-pale: #FFE8DF;
    
    /* Supporting Colors */
    --white: #FFFFFF;
    --cream: #FFF8F5;
    --cream-dark: #FFF0E8;
    --charcoal: #2D2D2D;
    --charcoal-light: #4A4A4A;
    --gray: #6B6B6B;
    --gray-light: #E8E8E8;
    
    /* Accent Colors */
    --coral: #FF7F6B;
    --amber: #FFAA33;
    --sunset: #FF5E3A;
    
    /* Gradients */
    --gradient-orange: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    --gradient-warm: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
    --gradient-sunset: linear-gradient(135deg, #FF8B5E 0%, #FF5E3A 50%, #E85A24 100%);
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(255, 107, 53, 0.15);
    --shadow-strong: 0 8px 40px rgba(255, 107, 53, 0.25);
    --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.3);
    
    /* Typography */
    --font-display: 'Noto Sans TC', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   Base Page Styles
   ============================================ */
.contact-hub-page {
    min-height: 100vh;
    background: transparent;
    font-family: var(--font-body);
    position: relative;
    z-index: 0;
}

/* Override theme's overflow clipping to show helper on sides */
body.page-template-page-contact-hub,
.page-template-page-contact-hub main,
.page-template-page-contact-hub .site-main,
.page-template-page-contact-hub main > div:first-child {
    overflow: visible !important;
    overflow-x: visible !important;
}

/* ============================================
   Hero Section
   ============================================ */
.contact-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-sunset);
    overflow: hidden;
    padding: 100px 20px 80px;
}

/* Hero with Background Image */
.contact-hero.has-bg-image {
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-hero.has-bg-image .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0.5));
    z-index: 1;
}

/* Basketball Court Pattern */
.court-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: 
        /* Center circle */
        radial-gradient(circle at 50% 50%, transparent 80px, var(--white) 80px, var(--white) 84px, transparent 84px),
        /* Half court line */
        linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,0.5) 49.5%, rgba(255,255,255,0.5) 50.5%, transparent 50.5%),
        /* Three point arc */
        radial-gradient(ellipse 300px 200px at 50% 100%, transparent 180px, var(--white) 180px, var(--white) 184px, transparent 184px);
    background-size: 100% 100%;
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
}

/* Basketball Icon Animation - Dribbling with pauses */
.basketball-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: var(--white);
    animation: dribble 4s ease-in-out infinite;
}

.ball-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
    animation: rotate-ball 4s ease-in-out infinite;
}

@keyframes dribble {
    0%, 5% {
        transform: translateX(-15px) translateY(0);
    }
    10% {
        transform: translateX(-15px) translateY(-20px);
    }
    15% {
        transform: translateX(-15px) translateY(0);
    }
    20% {
        transform: translateX(-15px) translateY(-18px);
    }
    25%, 50% {
        transform: translateX(-15px) translateY(0);
    }
    55% {
        transform: translateX(15px) translateY(0);
    }
    60% {
        transform: translateX(15px) translateY(-20px);
    }
    65% {
        transform: translateX(15px) translateY(0);
    }
    70% {
        transform: translateX(15px) translateY(-18px);
    }
    75%, 100% {
        transform: translateX(15px) translateY(0);
    }
}

@keyframes rotate-ball {
    0%, 25% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75%, 100% {
        transform: rotate(10deg);
}
}

/* ============================================
   Helper Mascot with Chat Bubble (Bottom Right of Cards)
   ============================================ */
.contact-categories {
    position: relative;
}

/* ============================================
   Helper Character - Position System
   ============================================ */

/* Hide all helpers by default */
.helper-character {
    display: none;
}

/* Helper inner container - chat bubble always on LEFT of mascot */
.helper-inner {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-direction: row; /* chat bubble (first) on left, mascot (second) on right */
    animation: helper-enter 1s ease-out 0.3s both;
}

/* Categories wrapper for side-by-side layout */
.categories-wrapper {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* When helper is on sides, position relative for absolute overlay */
@media (min-width: 901px) {
    [data-helper-desktop="cards-left"] .categories-wrapper,
    [data-helper-desktop="cards-right"] .categories-wrapper {
        position: relative;
    }
    
    /* Reduce container width to make room for helper overlay */
    [data-helper-desktop="cards-right"] .categories-container {
        max-width: 900px;
        margin-left: auto;
        margin-right: 380px;
    }
    
    [data-helper-desktop="cards-left"] .categories-container {
        max-width: 900px;
        margin-left: 380px;
        margin-right: auto;
    }
}

/* Helper in banner position */
.helper-in-banner {
    position: absolute;
    bottom: 20px;
    right: 40px;
    z-index: 10;
}

/* Helper above cards */
.helper-above-cards {
    justify-content: center;
    margin-bottom: 40px;
}

/* Helper below cards */
.helper-below-cards {
    justify-content: center;
    margin-top: 40px;
}

/* Position chat bubble near mascot's head for above/below positions */
.helper-above-cards .helper-inner,
.helper-below-cards .helper-inner {
    align-items: flex-start; /* Align to top */
    position: relative;
}

.helper-above-cards .chat-bubble,
.helper-below-cards .chat-bubble {
    margin-top: 15px; /* Position near mascot's head level */
    align-self: flex-start;
}

/* Adjust chat bubble arrow to point toward mascot's head */
.helper-above-cards .chat-bubble::after,
.helper-below-cards .chat-bubble::after {
    top: 25px; /* Position arrow near top of bubble */
    bottom: auto;
}

.helper-above-cards .helper-avatar,
.helper-below-cards .helper-avatar {
    margin-top: 0; /* Avatar stays at top */
}

/* Helper left/right of cards - positioned as overlay */
.helper-left-cards,
.helper-right-cards {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    z-index: 10;
}

.helper-right-cards {
    right: 20px;
}

.helper-left-cards {
    left: 20px;
}

.helper-left-cards .helper-inner,
.helper-right-cards .helper-inner {
    flex-direction: column-reverse; /* Mascot on top, chat bubble below */
    align-items: center;
    gap: 15px;
}

.helper-left-cards .chat-bubble,
.helper-right-cards .chat-bubble {
    max-width: 100%;
    width: 100%;
}

/* Chat bubble arrow points UP toward mascot when stacked */
.helper-left-cards .chat-bubble::after,
.helper-right-cards .chat-bubble::after {
    right: 50%;
    top: -18px;
    bottom: auto;
    transform: translateX(50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid var(--white);
    border-top: none;
}

/* ============================================
   Desktop Position Logic (>900px)
   ============================================ */
@media (min-width: 901px) {
    /* Show helper based on data attribute - Desktop */
    [data-helper-desktop="cards-right"] .helper-right-cards { display: block; }
    [data-helper-desktop="cards-left"] .helper-left-cards { display: block; }
    [data-helper-desktop="cards-above"] .helper-above-cards { display: flex; justify-content: center; }
    [data-helper-desktop="cards-below"] .helper-below-cards { display: flex; justify-content: center; }
    [data-helper-desktop="banner-right"] .helper-in-banner { display: block; }
}

@keyframes helper-enter {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mascot Avatar */
.helper-avatar {
    width: var(--mascot-size-desktop, 220px);
    height: var(--mascot-size-desktop, 220px);
    flex-shrink: 0;
    animation: mascot-hover 3s ease-in-out infinite;
    order: 2; /* Always on the right */
}

.helper-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.3));
}

.mascot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
}

@keyframes mascot-hover {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Chat Bubble */
.chat-bubble {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 25px 30px;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: bubble-pop 0.6s ease-out 0.8s both;
    order: 1; /* Always on the left */
}

/* Chat bubble arrow pointing RIGHT (toward mascot) */
.chat-bubble::after {
    content: '';
    position: absolute;
    bottom: 30px;
    right: -18px;
    width: 0;
    height: 0;
    border-left: 20px solid var(--white);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

@keyframes bubble-pop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateX(20px);
    }
    60% {
        transform: scale(1.02) translateX(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

.chat-bubble p {
    margin: 0;
    color: var(--charcoal);
    font-size: 1rem;
    line-height: 1.7;
}

.chat-bubble .greeting {
    display: block;
    font-weight: 700;
    color: var(--orange);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ============================================
   Tablet Position Logic (481px - 900px)
   ============================================ */
@media (min-width: 481px) and (max-width: 900px) {
    /* Hide all desktop helpers */
    .helper-character { display: none; }
    
    /* Show helper based on data attribute - Tablet */
    [data-helper-tablet="cards-right"] .helper-right-cards { display: block; }
    [data-helper-tablet="cards-left"] .helper-left-cards { display: block; }
    [data-helper-tablet="cards-above"] .helper-above-cards { display: flex; }
    [data-helper-tablet="cards-below"] .helper-below-cards { display: flex; }
    [data-helper-tablet="banner-right"] .helper-in-banner { display: block; }
    
    /* Wrapper adjustments for tablet */
    .categories-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    [data-helper-tablet="cards-left"] .categories-wrapper,
    [data-helper-tablet="cards-right"] .categories-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .helper-inner {
        flex-direction: row;
        justify-content: center;
    }
    
    .helper-avatar {
        width: var(--mascot-size-tablet, 180px);
        height: var(--mascot-size-tablet, 180px);
    }
    
    .chat-bubble {
        max-width: 350px;
    }
}

/* ============================================
   Mobile Position Logic (≤480px)
   ============================================ */
@media (max-width: 480px) {
    /* Hide all helpers */
    .helper-character { display: none; }
    
    /* Show helper based on data attribute - Mobile */
    [data-helper-mobile="cards-above"] .helper-above-cards { display: flex; }
    [data-helper-mobile="cards-below"] .helper-below-cards { display: flex; }
    [data-helper-mobile="banner-right"] .helper-in-banner { display: block; }
    
    /* Wrapper adjustments for mobile */
    .categories-wrapper {
        flex-direction: column;
        padding: 0 15px;
        gap: 20px;
    }
    
    .helper-inner {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .helper-avatar {
        width: var(--mascot-size-mobile, 120px);
        height: var(--mascot-size-mobile, 120px);
    }
    
    .chat-bubble {
        max-width: 220px;
        padding: 18px 20px;
        border-radius: 18px;
    }
    
    .chat-bubble p {
        font-size: 0.85rem;
    }
    
    .chat-bubble .greeting {
        font-size: 1rem;
    }
    
    /* Banner helper on mobile */
    .helper-in-banner {
        bottom: 10px;
        right: 15px;
    }
    
    .helper-in-banner .helper-inner {
        flex-direction: column-reverse;
        align-items: center;
    }
    
    .helper-in-banner .chat-bubble::after {
        display: none;
    }
}

/* Title Styling */
.contact-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.title-part {
    display: inline;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.title-accent {
    color: var(--white);
    position: relative;
}

.contact-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.95;
}

.contact-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Floating Decorations */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.el-1 {
    width: 300px;
    height: 300px;
    background: var(--white);
    top: -100px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.el-2 {
    width: 200px;
    height: 200px;
    background: var(--amber);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.el-3 {
    width: 150px;
    height: 150px;
    background: var(--white);
    top: 50%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-10px, 10px) scale(0.95);
    }
}

/* ============================================
   Contact Categories Section
   ============================================ */
.contact-categories {
    padding: 80px 20px 100px;
    background: transparent;
    position: relative;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* ============================================
   Category Cards
   ============================================ */
.category-card {
    position: relative;
    display: block;
    background: var(--white);
    border-radius: 24px;
    padding: 40px 35px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 107, 53, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: var(--shadow-strong);
}

.category-card:hover::before {
    transform: scaleX(1);
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(circle at 50% 0%, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
}

.category-card:hover .card-glow {
    opacity: 1;
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 2;
}

/* Card Icon */
.card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
    color: var(--orange);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Different card accent colors */
.card-products .card-icon { color: var(--orange); }
.card-events .card-icon { color: var(--coral); }
.card-tickets .card-icon { color: var(--amber); }
.card-sponsorship .card-icon { color: var(--sunset); }
.card-other .card-icon { color: var(--orange-light); }

.card-products::before { background: var(--gradient-orange); }
.card-events::before { background: linear-gradient(135deg, var(--coral) 0%, #FF5E5E 100%); }
.card-tickets::before { background: linear-gradient(135deg, var(--amber) 0%, #FF9500 100%); }
.card-sponsorship::before { background: linear-gradient(135deg, var(--sunset) 0%, #FF4136 100%); }
.card-other::before { background: linear-gradient(135deg, var(--peach) 0%, var(--orange-light) 100%); }

/* Card Title */
.card-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.category-card:hover .card-title {
    color: var(--orange);
}

/* Card Description */
.card-desc {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Card Arrow */
.card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    transition: all 0.3s ease;
}

.card-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.category-card:hover .card-arrow {
    background: var(--orange);
    color: var(--white);
}

.category-card:hover .card-arrow svg {
    transform: translateX(3px);
}

/* Card Background Pattern */
.card-bg-pattern {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='48' fill='none' stroke='%23FF6B35' stroke-width='2'/%3E%3Cpath d='M50 2 Q 50 50 50 98' fill='none' stroke='%23FF6B35' stroke-width='2'/%3E%3Cpath d='M2 50 Q 50 50 98 50' fill='none' stroke='%23FF6B35' stroke-width='2'/%3E%3C/svg%3E");
    background-size: contain;
    transition: opacity 0.3s ease;
}

.category-card:hover .card-bg-pattern {
    opacity: 0.08;
}

/* ============================================
   Contact Info Section
   ============================================ */
.contact-info-section {
    padding: 0 20px 100px;
    background: var(--white);
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    text-align: center;
    padding: 30px 25px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: var(--orange-pale);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.info-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: var(--orange);
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .contact-hero {
        min-height: 40vh;
        padding: 80px 20px 60px;
    }
    
    .basketball-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .title-accent::after {
        height: 6px;
    }
    
    .categories-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        padding: 30px 25px;
    }
    
    .card-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 20px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .contact-categories {
        padding: 60px 15px 80px;
    }
    
    .info-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 70px 15px 50px;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }
    
    .contact-description {
        font-size: 0.9rem;
    }
    
    .category-card {
        padding: 25px 20px;
        border-radius: 18px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-desc {
        font-size: 0.9rem;
    }
}

/* ============================================
   Animation on Scroll (Entry Animations)
   ============================================ */
.contact-hub-page .category-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.contact-hub-page .category-card:nth-child(1) { animation-delay: 0.1s; }
.contact-hub-page .category-card:nth-child(2) { animation-delay: 0.2s; }
.contact-hub-page .category-card:nth-child(3) { animation-delay: 0.3s; }
.contact-hub-page .category-card:nth-child(4) { animation-delay: 0.4s; }
.contact-hub-page .category-card:nth-child(5) { animation-delay: 0.5s; }
.contact-hub-page .category-card:nth-child(6) { animation-delay: 0.6s; }
.contact-hub-page .category-card:nth-child(7) { animation-delay: 0.7s; }
.contact-hub-page .category-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Focus States (Accessibility)
   ============================================ */
.category-card:focus {
    outline: none;
}

.category-card:focus-visible {
    outline: none;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .contact-hub-page {
        background: white !important;
    }
    
    .contact-hero {
        background: var(--orange) !important;
        min-height: auto !important;
        padding: 40px 20px !important;
    }
    
    .hero-decoration,
    .court-pattern,
    .card-glow,
    .card-bg-pattern,
    .hero-overlay {
        display: none !important;
    }
}

/* ============================================
   ============================================
   CONTACT FORM PAGE STYLES
   ============================================
   ============================================ */

/* Base Page Styles */
.contact-form-page {
    --orange: #FF6B35;
    --orange-dark: #E85A24;
    --orange-light: #FF8B5E;
    --orange-pale: #FFE8DF;
    --white: #FFFFFF;
    --cream: #FFF8F5;
    --charcoal: #2D2D2D;
    --gray: #6B6B6B;
    --gray-light: #E8E8E8;
    
    min-height: 100vh;
    background: transparent;
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Form Header Section - Simple Title */
.contact-form-page .form-header {
    padding: 40px 20px 30px;
    text-align: center;
    background: transparent;
}

.form-header-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 25px;
    background: var(--orange-pale);
    border: 1px solid var(--orange-light);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* Category Icon */
.contact-form-page .category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--white);
}

.contact-form-page .category-icon svg {
    width: 100%;
    height: 100%;
}

/* Form Title */
.form-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 1rem;
    color: var(--gray);
}

/* Form Section */
.form-section {
    padding: 60px 20px 100px;
    background: transparent;
}

.form-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Form Wrapper */
.form-wrapper {
    padding: 0;
}

/* Placeholder Notice */
.placeholder-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px;
    margin-bottom: 30px;
    background: var(--orange-pale);
    border: 1px dashed var(--orange-light);
    border-radius: 12px;
    color: var(--orange-dark);
    text-align: center;
}

.placeholder-notice p {
    margin: 0;
    font-size: 0.95rem;
}

.placeholder-notice code {
    background: rgba(255, 107, 53, 0.1);
    padding: 8px 15px;
    border-radius: 6px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--orange-dark);
}

/* Demo Form Styles */
.demo-contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
}

.form-group .required {
    color: var(--orange);
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    color: var(--charcoal);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Submit Button */
.form-actions {
    margin-top: 10px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--gradient-orange);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(3px);
}

/* Form Sidebar */
.form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 16px;
    padding: 25px;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 12px;
}

.sidebar-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-methods {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-methods li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--charcoal);
    font-size: 0.9rem;
}

.contact-methods li svg {
    color: var(--orange);
    flex-shrink: 0;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    color: var(--gray);
    font-size: 0.9rem;
}

.hours-list .time {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.9rem;
}

/* WPForms - Keep original styling, no overrides */

/* Responsive Styles for Form Page */
@media (max-width: 900px) {
    .form-container {
        grid-template-columns: 1fr;
    }
    
    .form-sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 600px) {
    .form-header {
        padding: 30px 15px 20px;
    }
    
    .form-wrapper {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .back-link {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px 30px;
    }
    
    .sidebar-card {
        min-width: 100%;
    }
}

/* Animation for Form Page */
.contact-form-page .form-header-content {
    animation: fadeIn 0.6s ease;
}

.contact-form-page .form-wrapper {
    animation: slideUp 0.6s ease 0.1s both;
}

.contact-form-page .form-sidebar {
    animation: slideUp 0.6s ease 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   WPForms Container - Basic Positioning Only
   ============================================ */

/* Let WPForms handle its own styling, just provide proper spacing */
.contact-form-page .wpforms-container {
    max-width: 100%;
}
