/**
 * Coach Listing Customizer Styles
 *
 * Layout and form styling for the interactive self-service portal.
 * Card preview uses styles from directory-cards.css (reused, not duplicated).
 *
 * @package InGoal
 * @since 2026-02
 */

/* ==========================================================================
   Utility Classes
   ========================================================================== */

[x-cloak] {
    display: none !important;
}

/* ==========================================================================
   Page Layout
   ========================================================================== */

.coach-customizer-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    background: #f8fafc;
    min-height: 100vh;
    position: relative;
}

.customizer-header {
    text-align: center;
    margin-bottom: 40px;
}

.customizer-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.customizer-header p {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.customizer-header__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.customizer-header__link:hover {
    color: #31487A;
}

/* Edit Mode Header - darker style to make it clear they're updating */
.customizer-header--edit {
    background: var(--ig-navy, #1e293b);
    color: #fff;
    padding: 28px 24px;
    margin: -40px -20px 40px -20px;
    border-radius: 0;
}

.customizer-header--edit h1 {
    color: #fff;
    font-size: 1.75rem;
}

.customizer-header--edit h1 span {
    color: #94a3b8;
}

.customizer-header--edit p {
    color: rgba(255, 255, 255, 0.8);
}

.customizer-header--edit p strong {
    color: #fff;
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #31487A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    margin-top: 16px;
    font-size: 1rem;
    color: #475569;
}

/* ==========================================================================
   Two-Column Layout
   ========================================================================== */

.customizer-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .customizer-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Preview Column (Left)
   ========================================================================== */

.customizer-preview-column {
    position: sticky;
    top: 20px;
}

.preview-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 12px;
}

.preview-container {
    background: #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.preview-card-wrapper {
    /* Card renders inside here */
}

/* Override card max-height for preview */
.preview-card-wrapper .directory-card {
    max-height: none;
    height: auto;
}

.preview-hint {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 10px;
    text-align: center;
    line-height: 1.3;
}

/* ==========================================================================
   Preview Action Box
   ========================================================================== */

.preview-action-box {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.action-box-header {
    margin-bottom: 12px;
}

.action-box-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.action-box-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.action-box-tier .tier-name {
    font-weight: 600;
    color: #334155;
}

.action-box-tier .tier-price {
    font-weight: 700;
    color: #31487A;
    font-size: 1.125rem;
}

.action-box-tier .tier-status {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #22c55e;
}

.action-box-tier .tier-status:not(:empty)::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 6px;
}

.action-box-btn {
    width: 100%;
    padding: 14px 24px;
    background: #31487A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.action-box-btn:hover {
    background: #243754;
}

.action-box-btn:active {
    transform: scale(0.98);
}

.action-box-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.action-box-btn.btn-secondary {
    background: #e2e8f0;
    color: #64748b;
}

.action-box-btn.btn-secondary:hover {
    background: #cbd5e1;
}

.action-box-benefits {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.action-box-benefits li {
    padding: 4px 0;
}

.action-box-benefits li::before {
    content: '✓';
    color: #22c55e;
    font-weight: 600;
    margin-right: 8px;
}

.action-box-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.action-box-status svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.action-box-status.status-success {
    background: #f0fdf4;
    color: #16a34a;
}

.action-box-status.status-error {
    background: #fef2f2;
    color: #dc2626;
}

/* ==========================================================================
   Duplicate Email Notice
   ========================================================================== */

.duplicate-notice {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    padding: 18px 20px;
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 12px;
    text-align: left;
}

.duplicate-notice__icon {
    flex-shrink: 0;
    color: #ca8a04;
    margin-top: 2px;
}

.duplicate-notice__icon svg {
    width: 22px;
    height: 22px;
}

.duplicate-notice__content {
    flex: 1;
    min-width: 0;
}

.duplicate-notice__title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #854d0e;
    margin-bottom: 6px;
}

.duplicate-notice__text {
    font-size: 0.8125rem;
    color: #713f12;
    line-height: 1.4;
    margin: 0 0 14px;
}

.duplicate-notice__btn {
    display: inline-block;
    padding: 10px 20px;
    background: #31487A;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.duplicate-notice__btn:hover:not(:disabled) {
    background: #243754;
}

.duplicate-notice__btn:disabled {
    background: #94a3b8;
    cursor: default;
}

.duplicate-notice__hint {
    font-size: 0.75rem;
    color: #65a30d;
    margin: 8px 0 0;
    line-height: 1.3;
}

/* ==========================================================================
   Duplicate Email Modal
   ========================================================================== */

.duplicate-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.duplicate-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.duplicate-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.duplicate-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.duplicate-modal__close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.duplicate-modal__close svg {
    width: 20px;
    height: 20px;
}

.duplicate-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #fefce8;
    border-radius: 50%;
    margin-bottom: 16px;
    color: #ca8a04;
}

.duplicate-modal__icon svg {
    width: 28px;
    height: 28px;
}

.duplicate-modal__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.duplicate-modal__text {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 24px;
}

.duplicate-modal__text strong {
    color: #1e293b;
}

.duplicate-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.duplicate-modal__btn {
    display: inline-block;
    padding: 14px 32px;
    background: #31487A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.15s ease;
    min-width: 220px;
}

.duplicate-modal__btn:hover:not(:disabled) {
    background: #243754;
}

.duplicate-modal__btn:disabled {
    background: #94a3b8;
    cursor: default;
}

.duplicate-modal__support-btn {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    min-width: 220px;
}

.duplicate-modal__support-btn:hover {
    border-color: #94a3b8;
    color: #334155;
    background: #f8fafc;
}

.duplicate-modal__hint {
    font-size: 0.8125rem;
    color: #16a34a;
    margin: 12px 0 0;
    font-weight: 500;
    line-height: 1.3;
}

.duplicate-modal__alt {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 16px 0 0;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .duplicate-modal__dialog {
        padding: 28px 20px 24px;
    }

    .duplicate-modal__title {
        font-size: 1.125rem;
    }

    .duplicate-modal__btn,
    .duplicate-modal__support-btn {
        width: 100%;
        text-align: center;
    }
}

/* Placeholder text styling in preview */
.preview-card-wrapper .placeholder-text {
    color: #94a3b8;
    font-style: italic;
}

.preview-card-wrapper .contact-placeholder {
    justify-content: center;
    padding: 8px 0;
}

.preview-card-wrapper .card-promo-placeholder .promo-text-scroll {
    color: #94a3b8;
    font-style: italic;
}

/* Slider preview indicator */
.preview-card-wrapper .card-slider-preview {
    position: relative;
}

.preview-card-wrapper .slider-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Gallery placeholder */
.preview-card-wrapper .card-media-placeholder .placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    padding: 24px 16px;
    min-height: 120px;
    color: #94a3b8;
    text-align: center;
}

.preview-card-wrapper .card-media-placeholder .placeholder-image svg {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.preview-card-wrapper .card-media-placeholder .placeholder-image span {
    font-size: 0.8125rem;
    font-style: italic;
}

/* Logo placeholder */
.preview-card-wrapper .card-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.preview-card-wrapper .card-logo-placeholder .placeholder-logo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-card-wrapper .card-logo-placeholder .placeholder-logo svg {
    width: 32px;
    height: 32px;
    color: #94a3b8;
    opacity: 0.6;
}

/* Social placeholder */
.preview-card-wrapper .card-social-placeholder {
    opacity: 0.5;
}

.preview-card-wrapper .placeholder-social {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.preview-card-wrapper .social-placeholder-icon {
    width: 24px;
    height: 24px;
    color: #94a3b8;
}

.preview-card-wrapper .social-placeholder-icon svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .customizer-preview-column {
        position: relative;
        top: 0;
        order: -1;
        max-width: 380px;
        margin: 0 auto 20px;
    }
}

/* ==========================================================================
   Controls Column (Right)
   ========================================================================== */

.customizer-controls-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ==========================================================================
   Section Styling
   ========================================================================== */

.customizer-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: opacity 0.2s ease;
}

.customizer-section.section-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: -8px 0 16px;
    line-height: 1.4;
}

.tier-badge {
    font-size: 0.6875rem;
    font-weight: 500;
    font-family: inherit;
    text-transform: none;
    background: #e2e8f0;
    color: #64748b;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ==========================================================================
   Tier Selector Buttons
   ========================================================================== */

.tier-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .tier-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tier-btn {
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.tier-btn:hover {
    border-color: var(--tier-color, #94a3b8);
    color: var(--tier-color, #94a3b8);
}

.tier-btn.active {
    border-color: var(--tier-color, #94a3b8);
    background: var(--tier-color, #94a3b8);
    color: #ffffff;
}

.tier-btn--disabled,
.tier-btn--disabled:hover {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.tier-description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px; /* More vertical gap between rows, less horizontal */
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group-small {
    max-width: 120px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px; /* Tight label-to-input spacing */
}

.form-group label .required {
    color: #ef4444;
}

.form-group label .char-count {
    float: right;
    font-weight: 400;
    color: #94a3b8;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

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

/* Country Flag Buttons */
.country-flag-group {
    display: flex;
    gap: 8px;
}

.country-flag-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex: 1;
    justify-content: center;
}

.country-flag-option:hover {
    border-color: #31487A;
}

.country-flag-option.active {
    border-color: #31487A;
    background: #f0f4ff;
}

.country-flag-option input[type="radio"] {
    display: none;
}

.country-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.country-flag-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.country-flag-option.active .country-flag-label {
    color: #31487A;
}

.country-other-input {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.field-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
}

.field-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 6px;
    margin-bottom: 0;
}

.input-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* ==========================================================================
   Checkbox Styling
   ========================================================================== */

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #31487A;
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.4;
}

/* ==========================================================================
   Gallery Input Group
   ========================================================================== */

.gallery-input-group {
    margin-bottom: 12px;
}

.input-with-remove {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-with-remove input {
    flex: 1;
}

.remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.remove-btn:hover {
    background: #fecaca;
}

.add-field-btn {
    padding: 10px 16px;
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.15s ease;
}

.add-field-btn:hover {
    border-color: #94a3b8;
    color: #475569;
    background: #f8fafc;
}

/* ==========================================================================
   Upload Components
   ========================================================================== */

.upload-area {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.15s ease;
}

.upload-area.has-image {
    border-style: solid;
    background: #ffffff;
}

.upload-preview {
    position: relative;
    display: inline-block;
    max-width: 120px;
}

.upload-preview-wide {
    max-width: 100%;
}

.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    display: block;
}

.upload-preview-wide img {
    max-height: 300px;
    width: auto;
    margin: 0 auto;
}

.upload-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border: none;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.15s ease;
}

.upload-remove-btn:hover {
    background: #dc2626;
}

.upload-remove-btn svg {
    width: 16px;
    height: 16px;
}

.upload-dropzone {
    padding: 20px;
}

.upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.upload-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #475569;
    font-weight: 500;
}

.upload-label:hover {
    border-color: #31487A;
    color: #31487A;
}

.upload-label svg {
    width: 32px;
    height: 32px;
    opacity: 0.6;
}

.upload-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 10px;
    line-height: 1.3;
}

/* ==========================================================================
   Gallery Grid
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.gallery-item:hover .gallery-remove-btn {
    opacity: 1;
}

.gallery-remove-btn svg {
    width: 14px;
    height: 14px;
}

.gallery-add {
    aspect-ratio: 16 / 9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.gallery-add:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.gallery-add-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
}

.gallery-add-label svg {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.gallery-add-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-add-disabled:hover {
    border-color: #cbd5e1;
    background: transparent;
}

.gallery-add-disabled .gallery-add-label {
    cursor: not-allowed;
}

/* ==========================================================================
   Cropper Modal
   ========================================================================== */

.crop-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    isolation: isolate;
}

.cropper-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.cropper-dialog {
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cropper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.cropper-header h3 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.cropper-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.cropper-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.cropper-close svg {
    width: 20px;
    height: 20px;
}

.cropper-body {
    overflow: hidden;
    background: #0f172a;
}

/* Container must have explicit dimensions - Cropper.js inherits from this */
.cropper-image-area {
    width: 100%;
    height: 400px;
}

/* Required by Cropper.js documentation */
.cropper-image-area img {
    display: block;
    max-width: 100%;
}

.cropper-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    position: relative;
    z-index: 100;
}

.cropper-info {
    font-size: 0.8125rem;
    color: #64748b;
}

.cropper-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.cropper-actions .btn {
    pointer-events: auto;
    cursor: pointer;
}

.btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

@media (max-width: 640px) {
    .cropper-dialog {
        max-height: 100vh;
        border-radius: 0;
    }

    .cropper-image-area {
        height: 300px;
    }

    .cropper-footer {
        flex-direction: column;
        gap: 12px;
    }

    .cropper-actions {
        width: 100%;
    }

    .cropper-actions .btn {
        flex: 1;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Video Preview
   ========================================================================== */

.video-preview {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.video-preview iframe {
    width: 100%;
    height: 100%;
}

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

.status-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.status-message .status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.status-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-success .status-icon {
    background: #22c55e;
    color: #ffffff;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-error .status-icon {
    background: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   Payment & Actions Section
   ========================================================================== */

.actions-section {
    border: 2px solid #31487A;
}

.payment-notice {
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.payment-notice .notice-text {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    color: #854d0e;
}

.save-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.save-hint {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin: 0;
}

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

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #31487A;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #263a63;
}

.btn-save {
    background: #10b981;
    color: #ffffff;
    width: 100%;
}

.btn-save:hover:not(:disabled) {
    background: #059669;
}

/* ==========================================================================
   Preview Mode Notice
   ========================================================================== */

.preview-mode-notice {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px dashed #cbd5e1;
    text-align: center;
}

.preview-mode-notice p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.9375rem;
}

.preview-mode-notice p:last-child {
    margin-bottom: 0;
}

.preview-mode-notice .cta-text {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.preview-mode-notice a {
    color: #31487A;
    font-weight: 600;
    text-decoration: none;
}

.preview-mode-notice a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Feature Comparison Table
   ========================================================================== */

.feature-comparison {
    margin-top: 24px;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.feature-table th,
.feature-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.feature-table th {
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
}

.feature-table th:first-child,
.feature-table td:first-child {
    text-align: left;
}

.feature-table td {
    color: #64748b;
}

.feature-table td.check {
    color: #10b981;
    font-weight: 600;
}

.feature-table td.no {
    color: #cbd5e1;
}

.feature-table tbody tr:hover {
    background: #f8fafc;
}

.feature-table td.check-double {
    letter-spacing: -0.1em;
}

.section-title-secondary {
    margin-top: 24px;
}

.feature-more-info {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.875rem;
}

.feature-more-info a {
    color: #31487A;
    font-weight: 600;
    text-decoration: none;
}

.feature-more-info a:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .coach-customizer-page {
        padding: 20px 16px 60px;
    }

    .customizer-header h1 {
        font-size: 1.75rem;
    }

    .customizer-header p {
        font-size: 1rem;
    }

    .customizer-header--edit {
        margin: -20px -16px 30px -16px;
        padding: 20px 16px;
    }

    .customizer-header--edit h1 {
        font-size: 1.25rem;
    }

    .customizer-section {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group-small {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .feature-table {
        font-size: 0.6875rem;
    }

    .feature-table th,
    .feature-table td {
        padding: 8px 6px;
    }
}

/* ==========================================================================
   PDF Guide Preview Section
   ========================================================================== */

.pdf-guide-section,
.pdf-ad-section {
    margin-top: 24px;
}

.pdf-guide-container,
.pdf-ad-container {
    background: #f5f5f0;
    border-radius: 8px;
    padding: 16px;
}

/* PDF Guide Tier Note */
.pdf-guide-tier-note {
    font-size: 0.75rem;
    color: #64748b;
    margin: 8px 0 0;
    text-align: center;
    font-style: italic;
}

/* ==========================================================================
   Free Tier - Table Row Style
   ========================================================================== */

.pdf-guide-free .pdf-guide-table {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
}

.pdf-guide-free .pdf-table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.75rem;
    line-height: 1.3;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

.pdf-guide-free .pdf-col-name {
    font-weight: 600;
    color: #1f2937;
    font-family: Georgia, 'Times New Roman', serif;
}

.pdf-guide-free .pdf-col-location {
    color: #4b5563;
    line-height: 1.3;
}

.pdf-guide-free .pdf-col-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: #6b7280;
    font-size: 0.6875rem;
    line-height: 1.3;
}

.pdf-guide-free .pdf-col-contact span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Enhanced Tier - Horizontal Box Style
   ========================================================================== */

.pdf-guide-enhanced .pdf-enhanced-box {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pdf-guide-enhanced .pdf-enhanced-logo {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
}

.pdf-guide-enhanced .pdf-enhanced-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.85;
}

.pdf-guide-enhanced .pdf-logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-guide-enhanced .pdf-logo-placeholder svg {
    width: 36px;
    height: 36px;
    color: #94a3b8;
    opacity: 0.5;
}

.pdf-guide-enhanced .pdf-enhanced-content {
    flex: 1;
    min-width: 0;
}

.pdf-guide-enhanced .pdf-enhanced-header {
    margin-bottom: 8px;
}

.pdf-guide-enhanced .pdf-school-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 2px;
    line-height: 1.2;
}

.pdf-guide-enhanced .pdf-location {
    font-size: 0.75rem;
    color: #6b7280;
}

.pdf-guide-enhanced .pdf-enhanced-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.pdf-guide-enhanced .pdf-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    color: #4b5563;
}

.pdf-guide-enhanced .pdf-contact-item svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.pdf-guide-enhanced .pdf-contact-placeholder {
    font-size: 0.6875rem;
    color: #9ca3af;
    font-style: italic;
}

.pdf-guide-enhanced .pdf-enhanced-social {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.pdf-guide-enhanced .pdf-social-icon {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.pdf-guide-enhanced .pdf-social-icon svg {
    width: 100%;
    height: 100%;
}

.pdf-guide-enhanced .pdf-promo-text {
    font-size: 0.75rem;
    color: #374151;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdf-guide-enhanced .pdf-promo-placeholder {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

/* ==========================================================================
   High Visibility & Maximum Exposure - Featured Box Style
   ========================================================================== */

.pdf-guide-featured .pdf-featured-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #31487A;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pdf-featured-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.pdf-featured-logo {
    flex-shrink: 0;
    position: relative;
}

.pdf-featured-logo img,
.pdf-featured-logo .pdf-logo-placeholder {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
}

.pdf-featured-logo .pdf-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}

.pdf-featured-logo .pdf-logo-placeholder svg {
    width: 40px;
    height: 40px;
    color: #94a3b8;
    opacity: 0.5;
}

.pdf-featured-title {
    flex: 1;
    min-width: 0;
}

.pdf-featured-title .pdf-school-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
    line-height: 1.2;
}

.pdf-featured-title .pdf-location {
    font-size: 0.875rem;
    color: #4b5563;
}

.pdf-featured-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdf-featured-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.3;
}

.pdf-featured-contact .pdf-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: #374151;
}

.pdf-featured-contact .pdf-contact-item svg {
    width: 14px;
    height: 14px;
    color: #31487A;
}


.pdf-featured-contact .pdf-contact-placeholder {
    font-size: 0.8125rem;
    color: #9ca3af;
    font-style: italic;
}

.pdf-featured-social {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.pdf-featured-social .pdf-social-icon {
    width: 18px;
    height: 18px;
    color: #31487A;
}


.pdf-featured-social .pdf-social-icon svg {
    width: 100%;
    height: 100%;
}

.pdf-featured-promo {
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    padding: 12px;
}

.pdf-featured-promo .pdf-promo-text {
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
    line-height: 1.35;
}

.pdf-featured-promo .pdf-promo-placeholder {
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

/* ==========================================================================
   PDF Guide Ad Preview
   ========================================================================== */

.pdf-ad-preview {
    text-align: center;
}

.pdf-ad-images {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
    margin-bottom: 12px;
}

.pdf-ad-cover,
.pdf-ad-spread {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pdf-ad-cover img,
.pdf-ad-spread img {
    width: 100%;
    height: auto;
    display: block;
}

.pdf-ad-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #ffffff;
    font-size: 0.625rem;
    padding: 4px 8px;
    text-align: center;
}

.pdf-ad-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(49, 72, 122, 0.85);
    color: #ffffff;
    padding: 12px;
}

.pdf-ad-size {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.pdf-ad-note {
    font-size: 0.6875rem;
    opacity: 0.9;
    text-align: center;
}

.pdf-ad-benefit {
    font-size: 0.8125rem;
    color: #374151;
    margin: 0;
    padding: 10px 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 6px;
}

.pdf-ad-benefit strong {
    color: #31487A;
}

/* ==========================================================================
   PDF Guide Preview - Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .pdf-guide-section,
    .pdf-ad-section {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .pdf-guide-free .pdf-table-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pdf-guide-enhanced .pdf-enhanced-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pdf-guide-enhanced .pdf-enhanced-contact {
        justify-content: center;
    }

    .pdf-guide-enhanced .pdf-enhanced-social {
        justify-content: center;
    }

    .pdf-featured-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pdf-featured-contact {
        justify-content: center;
    }

    .pdf-featured-social {
        margin-left: 0;
        margin-top: 8px;
    }

    .pdf-ad-images {
        grid-template-columns: 1fr;
    }

    .pdf-ad-cover {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Package Selector
   ========================================================================== */

.package-selector {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.package-selector-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 6px;
}

.package-promo {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 0 0 12px;
    text-align: center;
    line-height: 1.3;
}

.package-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.package-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.package-btn:hover {
    border-color: #31487A;
}

.package-btn.active {
    border-color: #31487A;
    background: #f0f4ff;
}

.package-btn-featured {
    position: relative;
}

.package-name {
    font-weight: 600;
    color: #334155;
    font-size: 0.875rem;
}

.package-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-price {
    font-weight: 700;
    color: #31487A;
    font-size: 0.9375rem;
}

.package-price-future {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ========================================================================
   PAYMENT SUCCESS BANNER
   ======================================================================== */

.customizer-success-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 16px 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #15803d;
    font-size: 0.9375rem;
    line-height: 1.3;
}

.customizer-success-banner svg {
    flex-shrink: 0;
    color: #16a34a;
}

.customizer-success-banner strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

/* ========================================================================
   CONFIRMED LISTING BOX (replaces package selector when paid)
   ======================================================================== */

.package-confirmed {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 2px solid #bbf7d0;
}

.package-confirmed__icon {
    color: #16a34a;
    margin-bottom: 8px;
}

.package-confirmed__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #16a34a;
    margin-bottom: 8px;
}

.package-confirmed__tier {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.package-confirmed__year {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 12px;
}

.package-confirmed__note {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.package-price-future s {
    text-decoration: line-through;
}

.package-savings {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
}

.action-box-package {
    font-size: 0.8125rem;
    color: #64748b;
    margin: -8px 0 12px;
}

/* ==========================================================================
   Image Modal
   ========================================================================== */

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    cursor: zoom-out;
}

.image-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    cursor: default;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.image-modal-close:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.image-modal-close svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   PDF Ad Image Click Indicator
   ========================================================================== */

.pdf-ad-cover,
.pdf-ad-spread {
    cursor: zoom-in;
    position: relative;
}

.pdf-ad-zoom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 0.625rem;
    padding: 4px 8px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.pdf-ad-cover:hover .pdf-ad-zoom,
.pdf-ad-spread:hover .pdf-ad-zoom {
    opacity: 1;
}

/* Adjust zoom indicator for spread which has overlay */
.pdf-ad-spread .pdf-ad-zoom {
    z-index: 10;
}

@media (max-width: 480px) {
    .package-btn {
        flex-wrap: wrap;
        gap: 4px;
    }

    .package-savings {
        position: static;
        margin-top: 4px;
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Preview My Page Button
   ========================================================================== */

.preview-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #ffffff;
    color: #31487A;
    border: 2px solid #31487A;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.preview-page-btn:hover {
    background: #31487A;
    color: #ffffff;
}

.preview-page-btn:active {
    transform: scale(0.98);
}

.preview-page-btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Page Preview Modal
   ========================================================================== */

.page-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.page-preview-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #1e293b;
    color: #ffffff;
    flex-shrink: 0;
    z-index: 1;
}

.page-preview-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.page-preview-tier {
    display: inline-block;
    background: #31487A;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.page-preview-close {
    margin-left: auto;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.page-preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px 24px 60px;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Page Preview Content (pp- prefix to avoid conflicts)
   ========================================================================== */

/* Preview badge */
.pp-preview-badge {
    display: inline-block;
    background: #31487A;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* Main container */
.pp-coaches-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    line-height: 1.5;
}

/* Listing card (Free + Enhanced) */
.pp-listing-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.pp-tier-free .pp-listing-card {
    border-top: 4px solid #94a3b8;
}

.pp-tier-enhanced .pp-listing-card {
    border-top: 4px solid #cd7f32;
}

.pp-card-content {
    padding: 32px;
}

/* School name */
.pp-school-name {
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

/* School location */
.pp-school-location {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.3;
}

/* School logo */
.pp-school-logo {
    flex-shrink: 0;
}

.pp-school-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.pp-card-content .pp-school-logo {
    margin-bottom: 16px;
}

.pp-card-content .pp-school-logo img {
    width: 100px;
    height: 100px;
}

.pp-logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-logo-placeholder svg {
    width: 40px;
    height: 40px;
    color: #94a3b8;
    opacity: 0.5;
}

.pp-card-content .pp-logo-placeholder {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
}

/* Contact info stacked (Free + Enhanced) */
.pp-contact-info-stacked {
    margin-bottom: 20px;
}

.pp-contact-info-stacked .pp-contact-item {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pp-contact-info-stacked .pp-contact-item:last-child {
    border-bottom: none;
}

.pp-contact-info-stacked a {
    color: #31487A;
    text-decoration: none;
    font-size: 0.9375rem;
}

.pp-contact-info-stacked a:hover {
    text-decoration: underline;
}

/* Contact info grid (High Vis + Maximum) */
.pp-contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.pp-contact-grid-item {
    padding: 8px 0;
}

.pp-contact-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 2px;
}

.pp-contact-value {
    font-size: 0.9375rem;
    color: #1e293b;
    word-break: break-word;
}

.pp-contact-placeholder {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.875rem;
    padding: 8px 0;
}

/* Social icons */
.pp-social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.pp-social-icon {
    width: 24px;
    height: 24px;
    color: #64748b;
    transition: color 0.15s ease;
}

.pp-social-icon:hover {
    color: #31487A;
}

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

/* CTA section */
.pp-cta-section {
    margin: 16px 0;
}

.pp-cta-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #31487A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: default;
    text-align: center;
}

.pp-privacy-note {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.3;
}

/* Teaser / Promotional text */
.pp-teaser {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.5;
    margin-top: 12px;
}

.pp-teaser-placeholder {
    color: #94a3b8;
    font-style: italic;
}

.pp-about-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/* Partner badge */
.pp-partner-badge {
    display: inline-block;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
    margin-top: 8px;
}

/* ==========================================================================
   High Vis + Maximum: Header Layouts
   ========================================================================== */

.pp-header-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 32px;
    margin-bottom: 24px;
}

.pp-tier-highvis .pp-header-section {
    border-top: 4px solid #c0c0c0;
}

.pp-tier-maximum .pp-header-section {
    border-top: 4px solid #ffd700;
}

/* High Vis: Top row (logo + info) */
.pp-header-top-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.pp-header-top-row .pp-school-info {
    flex: 1;
    min-width: 0;
}

/* High Vis: Middle row (ad + contact side-by-side) */
.pp-header-middle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

/* Maximum: Two-column grid header (Ad LEFT | Content RIGHT) */
.pp-header-two-col {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 32px;
}

.pp-header-two-col .pp-school-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pp-logo-name-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pp-logo-name-wrapper .pp-school-info {
    flex: 1;
    min-width: 0;
}

.pp-school-description {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.5;
}

/* Contact card (shared by High Vis + Maximum) */
.pp-contact-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

/* ==========================================================================
   Ad Space
   ========================================================================== */

.pp-ad-space {
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.pp-ad-space img {
    width: 100%;
    height: auto;
    display: block;
}

.pp-half-page {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-half-page img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.pp-full-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.pp-full-page img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.pp-ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: #94a3b8;
    text-align: center;
    min-height: 160px;
}

.pp-ad-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.pp-ad-placeholder span {
    font-size: 0.8125rem;
    font-style: italic;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.pp-gallery-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}

.pp-gallery-grid {
    display: grid;
    gap: 12px;
}

.pp-gallery-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pp-gallery-max {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.pp-gallery-item {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.pp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-gallery-placeholder {
    padding: 32px 16px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    font-size: 0.875rem;
}

/* ==========================================================================
   Why Choose Section
   ========================================================================== */

.pp-why-choose {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.pp-why-choose-title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #334155;
    margin-bottom: 8px;
}

.pp-why-choose-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pp-why-choose-list li {
    position: relative;
    padding: 4px 0 4px 20px;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.4;
}

.pp-why-choose-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

/* ==========================================================================
   Video Section
   ========================================================================== */

.pp-video-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}

.pp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
}

.pp-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pp-video-placeholder {
    padding: 48px 16px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    font-size: 0.875rem;
    background: #0f172a;
    border-radius: 8px;
}

/* ==========================================================================
   Camps / Program Details Section
   ========================================================================== */

.pp-camps-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}

.pp-camps-content {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.6;
    white-space: pre-wrap;
}

.pp-camps-placeholder {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.875rem;
    padding: 16px 0;
}

/* Free/Enhanced: about section inside the card */
.pp-tier-free .pp-camps-section,
.pp-tier-enhanced .pp-camps-section {
    background: transparent;
    box-shadow: none;
    padding: 20px 0 0;
    margin-bottom: 0;
    border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   Section Title
   ========================================================================== */

.pp-section-title {
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pp-section-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0 24px;
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */

.pp-bottom-cta {
    background: #1e293b;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-top: 8px;
}

.pp-bottom-cta-text {
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.pp-bottom-cta-subtext {
    font-size: 0.9375rem;
    color: #94a3b8;
    margin-bottom: 16px;
    line-height: 1.3;
}

.pp-bottom-cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #ffffff;
    color: #1e293b;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: default;
}

/* ==========================================================================
   Page Preview Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .page-preview-bar {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-preview-body {
        padding: 20px 16px 40px;
    }

    .pp-header-two-col {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .pp-header-middle-row {
        grid-template-columns: 1fr;
    }

    .pp-header-top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pp-logo-name-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pp-contact-info-grid {
        grid-template-columns: 1fr;
    }

    .pp-gallery-3 {
        grid-template-columns: 1fr;
    }

    .pp-gallery-max {
        grid-template-columns: repeat(2, 1fr);
    }

    .pp-school-name {
        font-size: 1.5rem;
    }

    .pp-card-content {
        padding: 20px;
    }

    .pp-header-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-preview-label {
        font-size: 0.875rem;
    }

    .page-preview-close {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .pp-social-icons {
        justify-content: center;
    }
}
