/* Ensure content clears the fixed navbar */
.registration-content {
    padding-top: 160px;
    padding-bottom: 2rem;
}
@media (max-width: 991px) {
    .registration-content {
        padding-top: 130px;
    }
}

/* Brand colors & buttons */
.c-button1 {
    background-color: #325d3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.c-button1:hover {
    background-color: #264a2e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 93, 60, 0.3);
}

/* Cards */
.registration-content .card {
    border: none;
    border-radius: 12px;
}
.registration-content .card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0;
}
.registration-content .card .card-body h2 {
    margin-bottom: 0;
}
.registration-content .card .card-body h6 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Event list cards */
.event-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}
.event-card .card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #325d3c 0%, #4a8a58 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-card .event-meta {
    font-size: 0.9rem;
    color: #666;
}
.event-card .event-meta i {
    width: 18px;
    color: #325d3c;
}
.event-card .event-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #325d3c;
}

/* Event detail page */
.event-detail-meta {
    font-size: 1.05rem;
    line-height: 2;
}
.event-detail-meta i {
    width: 22px;
    color: #325d3c;
}
.sidebar-sticky {
    position: sticky;
    top: 180px;
}
.ticket-card {
    border: 2px solid #325d3c !important;
    border-radius: 12px;
}
.ticket-card .ticket-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #325d3c;
}

/* Attendee cards on order form */
.attendee-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
.attendee-card:hover {
    border-color: #325d3c;
}
.attendee-card .attendee-number {
    font-weight: 600;
    color: #325d3c;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Order summary */
.order-summary-card {
    border: 2px solid #325d3c !important;
    border-radius: 12px;
}
.order-summary-card .table td {
    border-top: 1px solid #eee;
    padding: 0.75rem 0;
}
.order-summary-card .table tr:first-child td {
    border-top: none;
}
#summary_total {
    font-size: 1.2em;
    font-weight: 700;
    color: #325d3c;
}

/* Stripe card element */
#card-element {
    min-height: 44px;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s;
}
#card-element.StripeElement--focus {
    border-color: #325d3c;
    box-shadow: 0 0 0 3px rgba(50, 93, 60, 0.1);
}

/* Test mode banner */
.test-mode-banner {
    background: linear-gradient(90deg, #fff3cd, #ffeaa7);
    border: none;
    border-radius: 0;
    font-weight: 500;
}

/* Confirmation page */
.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.confirmation-icon i {
    font-size: 2.5rem;
    color: #fff;
}

/* Dashboard table */
.table-responsive .table th {
    white-space: nowrap;
}

/* Slug status */
.slug-available {
    color: #28a745;
    font-weight: bold;
}
.slug-taken {
    color: #dc3545;
    font-weight: bold;
}

/* Form improvements */
.registration-content .form-control {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: auto;
}
.registration-content .form-control:focus {
    border-color: #325d3c;
    box-shadow: 0 0 0 3px rgba(50, 93, 60, 0.1);
}
/* Custom dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}
.custom-dropdown-selected {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 36px 10px 14px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: none;
    position: relative;
}
.custom-dropdown-selected:focus,
.custom-dropdown.open .custom-dropdown-selected {
    border-color: #325d3c;
    box-shadow: 0 0 0 3px rgba(50, 93, 60, 0.1);
    outline: none;
}
.custom-dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #325d3c;
    transition: transform 0.2s;
}
.custom-dropdown.open .custom-dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}
.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #325d3c;
    border-radius: 8px;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    z-index: 1050;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.custom-dropdown.open .custom-dropdown-menu {
    display: block;
}
.custom-dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.15s;
    color: #333;
}
.custom-dropdown-item:hover {
    background-color: #f0f7f1;
    color: #325d3c;
}
.custom-dropdown-item.selected {
    background-color: #325d3c;
    color: #fff;
    font-weight: 600;
}

/* Submit button */
.btn-register {
    background-color: #325d3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    display: block;
}
.btn-register:hover {
    background-color: #264a2e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 93, 60, 0.3);
}
.btn-register:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Trust signals */
.trust-signals {
    padding: 0.5rem 0;
}
.trust-badge {
    display: inline-block;
    font-size: 0.8rem;
    color: #666;
    padding: 4px 10px;
    margin: 3px 4px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: #f8f9fa;
}
.trust-badge i {
    color: #325d3c;
    margin-right: 3px;
}

/* Badge overrides */
.registration-content .badge-primary { background-color: #325d3c; }

/* Slug input with generate button */
.slug-input-group {
    display: flex;
    gap: 0;
    align-items: stretch;
}
.slug-input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}
.slug-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    color: #325d3c;
    background: #f0f7f1;
    border: 2px solid #dee2e6;
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}
.slug-generate-btn:hover {
    background: #325d3c;
    color: #fff;
    border-color: #325d3c;
}
.slug-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.slug-input-group .form-control:focus + .slug-generate-btn {
    border-color: #325d3c;
}

/* Dietary option rows in event form */
.dietary-row {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
}

/* Category Selector */
.category-selector {
    display: flex;
    gap: 12px;
}
.category-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    margin: 0;
}
.category-option:hover {
    border-color: #325d3c;
    background: #f0f7f1;
}
.category-option.selected {
    border-color: #325d3c;
    background: linear-gradient(135deg, #f0f7f1, #e8f5e9);
    box-shadow: 0 0 0 3px rgba(50, 93, 60, 0.15);
}
.category-option i {
    font-size: 1.5rem;
    color: #999;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.category-option.selected i,
.category-option:hover i {
    color: #325d3c;
}
.category-option-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
}
.category-option-desc {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.3;
}
@media (max-width: 575px) {
    .category-selector {
        flex-direction: column;
    }
}

/* Category Tooltip */
.category-tooltip-trigger {
    position: relative;
    cursor: help;
    display: inline-block;
}
.category-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 8px);
    width: 320px;
    background: #1a1a2e;
    color: #e0e0e0;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1060;
}
.category-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #1a1a2e;
}
.category-tooltip strong {
    color: #fff;
}
.category-tooltip-trigger:hover .category-tooltip,
.category-tooltip-trigger:focus .category-tooltip {
    display: block;
}

/* Refund Policy Presets */
.refund-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.refund-preset-pill {
    border: 2px solid #dee2e6;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    background: #fff;
    transition: all 0.2s ease;
}
.refund-preset-pill:hover {
    border-color: #325d3c;
    color: #325d3c;
    background: #f0f7f1;
}
.refund-preset-pill.active {
    border-color: #325d3c;
    background: #325d3c;
    color: #fff;
}

/* Flyer display on event detail */
.event-flyer-wrap {
    text-align: center;
}
.event-flyer-wrap img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
