/**
 * Single Event Page Styles
 * MEC booking form with custom InvestHub styling
 *
 * @package InvestHub
 * @since 1.1.0
 */

/* ==========================================================================
   Base Reset & Variables
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: #16161f;
    --accent: #a855f7;
    --accent-pink: #ec4899;
    --accent-glow: rgba(168, 85, 247, 0.3);
    --success: #22c55e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255,255,255,0.1);
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary) !important;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}


/* ==========================================================================
   Ambient Effects
   ========================================================================== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 10% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}


/* ==========================================================================
   Header/Navigation styles are in common.css
   ========================================================================== */


/* ==========================================================================
   Main Container
   ========================================================================== */

.ih-event-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px 60px;
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   Hero Section
   ========================================================================== */

.ih-event-hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.ih-event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.ih-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent);
    border: 1px solid var(--border-color);
}

.ih-event-badge-location {
    color: var(--text-primary);
}

.ih-event-badge-zoom {
    color: #2d8cff;
    border-color: rgba(45, 140, 255, 0.3);
    background: rgba(45, 140, 255, 0.1);
}

.ih-event-badge-free {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
    font-weight: 600;
}

.ih-event-badge-deposit {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-weight: 600;
}

.ih-event-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ih-event-hero-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
}

.ih-event-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.ih-event-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.ih-event-meta-item svg {
    color: var(--accent);
}

.ih-event-meta-item strong {
    color: var(--text-primary);
}


/* ==========================================================================
   Main Layout
   ========================================================================== */

.ih-event-layout {
    display: grid;
    grid-template-columns: 1fr 580px;
    gap: 40px;
    align-items: start;
}


/* ==========================================================================
   Content Section
   ========================================================================== */

.ih-event-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ih-event-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.ih-event-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid var(--accent);
    color: var(--text-primary);
}

.ih-event-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.ih-event-description p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}


/* ==========================================================================
   Features
   ========================================================================== */

.ih-event-features {
    display: grid;
    gap: 16px;
}

.ih-event-feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ih-event-feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.ih-event-feature h4 {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ih-event-feature p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}


/* ==========================================================================
   Location
   ========================================================================== */

.ih-event-location-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
}

.ih-event-location-card h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.ih-event-location-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ih-event-location-option {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.ih-event-location-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ih-event-location-option-icon {
    font-size: 24px;
}

.ih-event-location-option-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.ih-event-location-option-badge.offline {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent);
}

.ih-event-location-option-badge.online {
    background: rgba(45, 140, 255, 0.2);
    color: #2d8cff;
}

.ih-event-location-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.ih-event-location-address {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .ih-event-location-options {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Booking Card
   ========================================================================== */

.ih-event-booking {
    position: sticky;
    top: 100px;
}

.ih-event-booking-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.ih-event-booking-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.ih-event-booking-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.ih-event-booking-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.ih-event-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.ih-event-info-box svg {
    color: var(--accent);
    flex-shrink: 0;
}


/* ==========================================================================
   MEC Form Styling
   ========================================================================== */

.ih-mec-form-wrapper {
    padding: 10px 0;
}

/* Reset all MEC backgrounds */
.ih-mec-form-wrapper,
.ih-mec-form-wrapper *,
.ih-mec-form-wrapper .mec-booking,
.ih-mec-form-wrapper .mec-booking *,
.ih-mec-form-wrapper .mec-events-meta-group-booking,
.ih-mec-form-wrapper .mec-booking-shortcode {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.ih-mec-form-wrapper .mec-booking,
.ih-mec-form-wrapper .mec-events-meta-group-booking,
.ih-mec-form-wrapper .mec-booking-shortcode {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Headers */
.ih-mec-form-wrapper h4,
.ih-mec-form-wrapper h5,
.ih-mec-form-wrapper .mec-booking h4,
.ih-mec-form-wrapper .mec-booking h5,
.ih-mec-form-wrapper .mec-book-first h4 {
    color: var(--text-primary) !important;
    font-size: 16px !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
}

/* Date/time selector */
.ih-mec-form-wrapper .mec-booking-dates-wrapper,
.ih-mec-form-wrapper .mec-book-date-wrap,
.ih-mec-form-wrapper .mec-book-dates {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: var(--bg-secondary) !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    text-align: center !important;
}

.ih-mec-form-wrapper .mec-book-date-wrap span,
.ih-mec-form-wrapper .mec-book-dates span {
    color: var(--accent) !important;
}

/* Ticket containers */
.ih-mec-form-wrapper .mec-book-ticket-container,
.ih-mec-form-wrapper .mec-ticket-wrap,
.ih-mec-form-wrapper .mec-book-tickets,
.ih-mec-form-wrapper .mec-event-tickets-list,
.ih-mec-form-wrapper .mec-event-ticket {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    transition: all 0.2s !important;
}

.ih-mec-form-wrapper .mec-book-ticket-container:hover,
.ih-mec-form-wrapper .mec-ticket-wrap:hover,
.ih-mec-form-wrapper .mec-event-ticket:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1) !important;
}

/* Ticket name */
.ih-mec-form-wrapper .mec-ticket-name,
.ih-mec-form-wrapper .mec-book-ticket-name,
.ih-mec-form-wrapper .mec-event-ticket-name {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    margin-bottom: 8px !important;
}

/* Ticket description */
.ih-mec-form-wrapper .mec-ticket-description,
.ih-mec-form-wrapper .mec-event-ticket-description {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* Available spots */
.ih-mec-form-wrapper .mec-ticket-available-spots,
.ih-mec-form-wrapper .mec-book-ticket-available,
.ih-mec-form-wrapper .mec-event-ticket-available {
    color: var(--text-muted) !important;
    font-size: 12px !important;
    margin-top: 8px !important;
}

/* Ticket price */
.ih-mec-form-wrapper .mec-ticket-price,
.ih-mec-form-wrapper .mec-book-price-total,
.ih-mec-form-wrapper .mec-event-ticket-price,
.ih-mec-form-wrapper .mec-book-price-details,
.ih-mec-form-wrapper .mec-book-price-details span {
    color: var(--accent) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

/* Total row */
.ih-mec-form-wrapper .mec-book-form-total-price,
.ih-mec-form-wrapper .mec-book-price-total-wrapper,
.ih-mec-form-wrapper .mec-book-form-price {
    background: var(--bg-tertiary) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    margin: 15px 0 !important;
    border: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.ih-mec-form-wrapper .mec-book-form-total-price *,
.ih-mec-form-wrapper .mec-book-price-total-wrapper *,
.ih-mec-form-wrapper .mec-book-form-price * {
    color: var(--text-primary) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ih-mec-form-wrapper .mec-book-form-total-price .mec-book-price-amount,
.ih-mec-form-wrapper .mec-book-form-total-price strong,
.ih-mec-form-wrapper .mec-book-price-total-wrapper .mec-book-price-amount {
    color: var(--accent) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.ih-mec-form-wrapper .mec-book-form-total-price br,
.ih-mec-form-wrapper .mec-book-price-total-wrapper br {
    display: none !important;
}


/* ==========================================================================
   Quantity Controls
   ========================================================================== */

.ih-mec-form-wrapper input[type="number"],
.ih-mec-form-wrapper .mec-book-ticket-number input {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    width: 70px !important;
    text-align: center !important;
    padding: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    -moz-appearance: textfield !important;
}

.ih-mec-form-wrapper input[type="number"]::-webkit-outer-spin-button,
.ih-mec-form-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.ih-mec-form-wrapper .mec-book-ticket-number a,
.ih-mec-form-wrapper .mec-plus-icon,
.ih-mec-form-wrapper .mec-minus-icon,
.ih-mec-form-wrapper button.mec-increase-ticket,
.ih-mec-form-wrapper button.mec-decrease-ticket {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    font-size: 20px !important;
    cursor: pointer !important;
}

.ih-mec-form-wrapper .mec-book-ticket-number a:hover,
.ih-mec-form-wrapper .mec-plus-icon:hover,
.ih-mec-form-wrapper .mec-minus-icon:hover,
.ih-mec-form-wrapper button.mec-increase-ticket:hover,
.ih-mec-form-wrapper button.mec-decrease-ticket:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}


/* ==========================================================================
   Form Fields
   ========================================================================== */

.ih-mec-form-wrapper .mec-book-reg-form,
.ih-mec-form-wrapper .mec-booking-attendee-form,
.ih-mec-form-wrapper .mec-book-form-attendees,
.ih-mec-form-wrapper .mec-book-attendee-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.ih-mec-form-wrapper .mec-form-row,
.ih-mec-form-wrapper .mec-book-reg-form .mec-form-row {
    width: 100% !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    display: block !important;
    float: none !important;
}

.ih-mec-form-wrapper .mec-form-row svg,
.ih-mec-form-wrapper .mec-form-row i {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
}

.ih-mec-form-wrapper .mec-form-row > span,
.ih-mec-form-wrapper .mec-form-row > div:first-child {
    width: 30px !important;
    min-width: 30px !important;
    padding: 5px !important;
}

/* Input fields for attendee form */
.ih-mec-form-wrapper .mec-book-ticket-attendees input[type="text"],
.ih-mec-form-wrapper .mec-book-ticket-attendees input[type="email"],
.ih-mec-form-wrapper .mec-book-reg-form input[type="text"],
.ih-mec-form-wrapper .mec-book-reg-form input[type="email"] {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    width: 180px !important;
    max-width: 180px !important;
    font-size: 13px !important;
    margin: 0 !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    height: 38px !important;
}

/* Stripe/Payment fields - FULL WIDTH */
.ih-mec-form-wrapper .mec-gateway-stripe input,
.ih-mec-form-wrapper .mec-book-form-gateway-checkout input,
.ih-mec-form-wrapper .StripeElement,
.ih-mec-form-wrapper #card-element,
.ih-mec-form-wrapper [class*="stripe"] input,
.ih-mec-form-wrapper .mec-gateway-wrap input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 200px !important;
}

/* General form inputs */
.ih-mec-form-wrapper input[type="text"],
.ih-mec-form-wrapper input[type="email"],
.ih-mec-form-wrapper input[type="tel"],
.ih-mec-form-wrapper select,
.ih-mec-form-wrapper textarea {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
}

.ih-mec-form-wrapper input:focus,
.ih-mec-form-wrapper select:focus,
.ih-mec-form-wrapper textarea:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15) !important;
}

.ih-mec-form-wrapper input::placeholder,
.ih-mec-form-wrapper textarea::placeholder {
    color: var(--text-muted) !important;
}

.ih-mec-form-wrapper label {
    color: var(--text-secondary) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.ih-mec-form-wrapper .mec-book-reg-form {
    padding: 5px 0 !important;
}

.ih-mec-form-wrapper .mec-book-attendee,
.ih-mec-form-wrapper .mec-booking-attendee,
.ih-mec-form-wrapper .mec-book-ticket-attendees {
    padding: 10px !important;
    font-size: 12px !important;
}

.ih-mec-form-wrapper .mec-form-row {
    margin-bottom: 8px !important;
    font-size: 12px !important;
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.ih-mec-form-wrapper button,
.ih-mec-form-wrapper input[type="submit"],
.ih-mec-form-wrapper .mec-book-form-btn,
.ih-mec-form-wrapper .mec-book-now-btn,
.ih-mec-form-wrapper .mec-button,
.ih-mec-form-wrapper .mec-book-form-btn-wrap button {
    background: var(--gradient-purple) !important;
    border: none !important;
    color: white !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    width: 100% !important;
    margin-top: 10px !important;
    text-transform: none !important;
    line-height: 1.4 !important;
}

.ih-mec-form-wrapper button:hover,
.ih-mec-form-wrapper input[type="submit"]:hover,
.ih-mec-form-wrapper .mec-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.4) !important;
}

/* Back/Next buttons */
.ih-mec-form-wrapper .mec-book-form-back-btn,
.ih-mec-form-wrapper .mec-book-form-back-button,
.ih-mec-form-wrapper button[type="button"].mec-book-form-back-button {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    margin-top: 10px !important;
}

.ih-mec-form-wrapper .mec-book-form-back-btn:hover,
.ih-mec-form-wrapper .mec-book-form-back-button:hover {
    background: var(--bg-secondary) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}

/* Arrow colors */
.ih-mec-form-wrapper button svg,
.ih-mec-form-wrapper button svg path,
.ih-mec-form-wrapper button i,
.ih-mec-form-wrapper button i::before,
.ih-mec-form-wrapper button::before,
.ih-mec-form-wrapper button::after,
.ih-mec-form-wrapper button span,
.ih-mec-form-wrapper .mec-book-form-btn svg,
.ih-mec-form-wrapper .mec-book-form-btn i,
.ih-mec-form-wrapper .mec-book-form-next-btn svg,
.ih-mec-form-wrapper .mec-book-form-next-btn i {
    color: white !important;
    fill: white !important;
    stroke: white !important;
}

.ih-mec-form-wrapper .mec-book-form-back-btn svg,
.ih-mec-form-wrapper .mec-book-form-back-btn svg path,
.ih-mec-form-wrapper .mec-book-form-back-btn i,
.ih-mec-form-wrapper .mec-book-form-back-button svg,
.ih-mec-form-wrapper .mec-book-form-back-button svg path,
.ih-mec-form-wrapper .mec-book-form-back-button i {
    color: var(--text-primary) !important;
    fill: var(--text-primary) !important;
    stroke: var(--text-primary) !important;
}

.ih-mec-form-wrapper .mec-book-form-btn-wrap button:not(.mec-book-form-back-button) svg,
.ih-mec-form-wrapper .mec-book-form-btn-wrap button:not(.mec-book-form-back-button) svg path,
.ih-mec-form-wrapper .mec-book-form-btn-wrap button:not(.mec-book-form-back-button) i {
    color: white !important;
    fill: white !important;
    stroke: white !important;
}


/* ==========================================================================
   Payment Section
   ========================================================================== */

.ih-mec-form-wrapper .mec-book-form-gateways,
.ih-mec-form-wrapper .mec-book-form-gateway-wrap,
.ih-mec-form-wrapper .mec-gateway-wrap {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
}

.ih-mec-form-wrapper .mec-book-form-gateways label,
.ih-mec-form-wrapper .mec-gateway-label {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.ih-mec-form-wrapper .mec-gateway-logo img {
    max-height: 30px !important;
    filter: brightness(1.2) !important;
}

.ih-mec-form-wrapper .mec-book-form-checkout,
.ih-mec-form-wrapper .mec-book-checkout {
    padding: 0 !important;
}


/* ==========================================================================
   Payment Page Fixes
   ========================================================================== */

.ih-mec-form-wrapper hr {
    display: none !important;
}

.ih-mec-form-wrapper .mec-stripe-name-and-email-wrapper {
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ih-mec-form-wrapper .mec-gateway-comment {
    display: none !important;
}

.ih-mec-form-wrapper .mec-card-element-stripe,
.ih-mec-form-wrapper [id^="mec_card_element_stripe"],
.ih-mec-form-wrapper .StripeElement,
.ih-mec-form-wrapper #payment-element {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    min-height: 40px !important;
    opacity: 1 !important;
}

.ih-mec-form-wrapper .mec-gateway-stripe,
.ih-mec-form-wrapper .mec-stripe-wrap,
.ih-mec-form-wrapper #mec-stripe-payment-form,
.ih-mec-form-wrapper .StripeElement,
.ih-mec-form-wrapper .mec-book-form-gateway-checkout,
.ih-mec-form-wrapper .mec-book-form-gateways-wrap,
.ih-mec-form-wrapper .mec-gateway-wrap,
.ih-mec-form-wrapper [class*="stripe"],
.ih-mec-form-wrapper [id*="stripe"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ih-mec-form-wrapper .mec-gateway-stripe iframe,
.ih-mec-form-wrapper [class*="stripe"] iframe,
.ih-mec-form-wrapper .StripeElement iframe {
    width: 100% !important;
    min-width: 100% !important;
}

.ih-mec-form-wrapper .mec-book-form-gateways {
    margin: 15px 0 !important;
    padding: 15px !important;
    width: 100% !important;
}

.ih-mec-form-wrapper .StripeElement,
.ih-mec-form-wrapper #card-element,
.ih-mec-form-wrapper .mec-stripe-card-element {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 16px !important;
}

.ih-mec-form-wrapper .mec-book-price-checkout,
.ih-mec-form-wrapper .mec-book-checkout-summary {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 0 !important;
}

.ih-mec-form-wrapper .mec-book-price-checkout *,
.ih-mec-form-wrapper .mec-book-checkout-summary * {
    color: var(--text-primary) !important;
}

.ih-mec-form-wrapper .mec-book-price-checkout .mec-book-checkout-total,
.ih-mec-form-wrapper .mec-book-checkout-total {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--accent) !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid var(--border-color) !important;
}


/* ==========================================================================
   Messages
   ========================================================================== */

.ih-mec-form-wrapper .mec-error,
.ih-mec-form-wrapper .mec-alert-error,
.ih-mec-form-wrapper .mec-booking-message-error {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid #ef4444 !important;
    color: #f87171 !important;
    padding: 16px !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
}

.ih-mec-form-wrapper .mec-success,
.ih-mec-form-wrapper .mec-alert-success,
.ih-mec-form-wrapper .mec-booking-message-success {
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid #22c55e !important;
    color: #4ade80 !important;
    padding: 16px !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
}

/* Steps indicator */
.ih-mec-form-wrapper .mec-book-form-steps,
.ih-mec-form-wrapper .mec-booking-steps {
    margin-bottom: 25px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.ih-mec-form-wrapper .mec-book-form-steps li,
.ih-mec-form-wrapper .mec-booking-steps li {
    color: var(--text-muted) !important;
}

.ih-mec-form-wrapper .mec-book-form-steps li.mec-active,
.ih-mec-form-wrapper .mec-booking-steps li.active {
    color: var(--accent) !important;
    font-weight: 600 !important;
}

/* Hide empty elements */
.ih-mec-form-wrapper hr,
.ih-mec-form-wrapper .mec-book-form-empty {
    display: none !important;
}

/* All text must be light on dark */
.ih-mec-form-wrapper p,
.ih-mec-form-wrapper span,
.ih-mec-form-wrapper div,
.ih-mec-form-wrapper li,
.ih-mec-form-wrapper td,
.ih-mec-form-wrapper th {
    color: var(--text-secondary) !important;
}

.ih-mec-form-wrapper strong,
.ih-mec-form-wrapper b,
.ih-mec-form-wrapper h1,
.ih-mec-form-wrapper h2,
.ih-mec-form-wrapper h3,
.ih-mec-form-wrapper h4,
.ih-mec-form-wrapper h5,
.ih-mec-form-wrapper h6 {
    color: var(--text-primary) !important;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.ih-event-footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .ih-event-layout {
        grid-template-columns: 1fr;
    }

    .ih-event-booking {
        position: static;
        order: -1;
    }

    .ih-event-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .ih-event-container {
        padding: 100px 20px 40px;
    }

    .ih-event-hero h1 {
        font-size: 28px;
    }

    .ih-event-meta {
        flex-direction: column;
        gap: 15px;
    }

    .ih-event-booking-card {
        padding: 20px;
    }

    .ih-event-section {
        padding: 20px;
    }
}
