/* Promotion Plugin – Montserrat Alternates, gradient buttons */
@keyframes gradientMoveRL {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
span.promo-file-name {
    display: none !important;
}
@media (max-width: 480px) {
    p.modal-subtitle.poem-first-line {
        font-size: 11px !important;
    }
}


.promotion-container {
    --promotion-primary: #000000;
    --promotion-primary-dark: #333333;
    --promotion-accent: #000000;
    --promotion-accent-light: #1a1a1a;
    --promotion-card-bg: rgba(255, 255, 255, 0.12);
    --promotion-card-bg-white: rgba(255, 255, 255, 0.15);
    --promotion-text: #ffffff;
    --promotion-text-muted: rgba(255, 255, 255, 0.85);
    --promotion-border: rgba(255, 255, 255, 0.25);
    --promotion-name-color: #ffffff;
}

.promotion-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px;
    font-family: 'Montserrat Alternates', sans-serif;
    background: transparent;
    --promo-card-width: 380px;
}

.promotion-wrapper {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.promotion-left-column {
    flex: 0 0 var(--promo-card-width);
    min-width: var(--promo-card-width);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promotion-claim-panel {
    width: 100%;
}

.promotion-first-panel {
    width: 100%;
}

.promo-card,
.claim-card {
    background: var(--promotion-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--promotion-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.claim-card {
    text-align: center;
    padding: 20px;
}

.claim-spot-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(270deg, #2CFA1E, #8AFF00, #EBFF00, #2CFA1E);
    background-size: 300% 300%;
    animation: gradientMoveRL 4s ease infinite;
    color: #000000 !important;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Montserrat Alternates', sans-serif;
    cursor: pointer;
    margin: 0;
}

.claim-spot-btn:hover {
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 250, 30, 0.4);
}

.promotion-carousel-panel {
    flex: 1;
    min-width: 0;
    padding-bottom: 32px;
    align-self: stretch;
}

.promo-card-empty {
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

/* Slider: always 2 cards visible, move 2 at a time */
.promo-slider-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
}

.promo-slider-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--promotion-border);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px;
    transition: width 0.3s ease;
}

.promo-slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.promo-slide-card {
    flex: 0 0 var(--promo-card-width);
    min-width: var(--promo-card-width);
    display: flex;
    align-items: stretch;
}

.promo-slide-card .promo-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.promotion-first-panel .promo-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.promo-slider-wrap .carousel-nav {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(270deg, #2CFA1E, #8AFF00, #EBFF00, #2CFA1E);
    background-size: 300% 300%;
    animation: gradientMoveRL 4s ease infinite;
    color: #000000 !important;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-self: center;
    backdrop-filter: blur(8px);
}

.promo-slider-wrap .carousel-nav:hover {
    color: #000000 !important;
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(44, 250, 30, 0.4);
}

.promo-slider-wrap .carousel-dots {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 6px;
}

.promo-slider-wrap .carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promo-slider-wrap .carousel-dots .dot.active {
    background: linear-gradient(270deg, #2CFA1E, #8AFF00);
    border-color: #2CFA1E;
    transform: scale(1.2);
}

.promo-slider-wrap .carousel-dots .dot:hover {
    background: rgba(0, 0, 0, 0.5);
}

.promoter-avatar {
    text-align: center;
    margin-bottom: 14px;
}

/* Uper profile pic – circle, sirf image */
.promoter-avatar img,
.promoter-avatar .promoter-cover-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
}

.promoter-name {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    font-family: 'Montserrat Alternates', sans-serif;
}

.promoter-details {
    color: var(--promotion-text);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.promoter-details p,
.promoter-detail-row {
    margin: 6px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    line-height: 1.4;
    min-height: 1.4em;
}

.promoter-details strong {
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    vertical-align: middle;
}

.promoter-detail-value {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
}

.promoter-detail-value a {
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.promoter-details a {
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.promoter-details a:hover {
    text-decoration: underline;
}

.promo-file-row {
    margin: 8px 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    line-height: 1.4;
    min-height: 1.4em;
}

.promo-file-row strong {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

.promo-view-btn {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(270deg, #2CFA1E, #8AFF00, #EBFF00, #2CFA1E);
    background-size: 300% 300%;
    animation: gradientMoveRL 4s ease infinite;
    color: #000000 !important;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Montserrat Alternates', sans-serif;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.promo-view-btn:hover {
    color: #000000 !important;
    box-shadow: 0 2px 10px rgba(44, 250, 30, 0.4);
}

.promo-download-btn {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(270deg, #2CFA1E, #8AFF00, #EBFF00, #2CFA1E);
    background-size: 300% 300%;
    animation: gradientMoveRL 4s ease infinite;
    color: #000000 !important;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Montserrat Alternates', sans-serif;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.promo-download-btn:hover {
    color: #000000 !important;
    box-shadow: 0 2px 10px rgba(44, 250, 30, 0.4);
}

.promo-file-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.promo-file-hint-inline {
    display: none;
}

.promo-teaser-content {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
}

.promo-teaser-title,
.promo-teaser-text,
.promo-teaser-message-label,
.promo-teaser-message {
    margin: 0 0 8px 0;
    color: #ffffff;
    line-height: 1.5;
}

.promo-teaser-text,
.promo-teaser-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
}

.promo-read-full-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 14px;
    background: linear-gradient(270deg, #2CFA1E, #8AFF00, #EBFF00, #2CFA1E);
    background-size: 300% 300%;
    animation: gradientMoveRL 4s ease infinite;
    color: #000000 !important;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Montserrat Alternates', sans-serif;
    text-decoration: none;
}

.promo-read-full-btn:hover {
    color: #000000 !important;
    box-shadow: 0 2px 10px rgba(44, 250, 30, 0.4);
}

.poem-modal-content .modal-subtitle {
    color: #333333;
    font-weight: 600;
}

.poem-first-line {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #111111;
    letter-spacing: 0.2px;
    border-left: 3px solid #2CFA1E;
    padding-left: 12px;
    margin-bottom: 14px;
}

.poem-message-block {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0 18px;
    background: #fafafa;
}

.poem-message-block p {
    margin: 0 0 10px 0;
    color: #222222;
    line-height: 1.55;
    font-size: 14px;
}

.poem-author-line {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: #1a1a1a !important;
}

.poem-message-block p:last-child {
    margin-bottom: 0;
}

.poem-message-label {
    margin-bottom: 8px !important;
}

.pdf-link {
    display: inline-block;
    padding: 6px 12px;
    background: #000;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}

.pdf-link:hover {
    background: #333;
    color: #fff;
}

.book-image-display {
    margin-top: 15px;
    text-align: center;
}

.book-image-display img {
    max-width: 200px;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Modal Styles */
.promotion-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.promotion-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content,
.promotion-form-modal {
    background-color: #ffffff;
    margin: auto;
    padding: 24px;
    border: 2px solid #000;
    border-radius: 12px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 35px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff5722;
}

.modal-content h2,
.modal-title {
    color: #000000;
    margin-bottom: 6px;
    font-size: 24px;
    font-family: 'Montserrat Alternates', sans-serif;
}

.modal-subtitle {
    color: var(--promotion-text-muted);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Form – final version */
.promotion-form .form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.promotion-form .form-row-two .form-group {
    flex: 1;
    min-width: 160px;
}

.form-divider {
    margin: 18px 0 12px;
    padding: 6px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.form-divider span {
    font-size: 13px;
    color: var(--promotion-text-muted);
    font-weight: 600;
}

.form-group {
    margin-bottom: 14px;
}

.form-file {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 2px dashed #000;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 14px;
    cursor: pointer;
}

.form-file:hover {
    background: #f0f0f0;
}

.form-file-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--promotion-text-muted);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group .required {
    color: #ff5722;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="tel"]:focus {
    border-color: #000;
    outline: none;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
}

.form-messages {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(270deg, #2CFA1E, #8AFF00, #EBFF00, #2CFA1E);
    background-size: 300% 300%;
    animation: gradientMoveRL 4s ease infinite;
    color: #000000 !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Montserrat Alternates', sans-serif;
    cursor: pointer;
    margin-top: 6px;
}

.submit-btn:hover {
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 250, 30, 0.4);
}

/* Payment Section */
.payment-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.payment-section h3 {
    color: #000000;
    margin-bottom: 12px;
    font-family: 'Montserrat Alternates', sans-serif;
}

.payment-buttons {
    margin: 20px 0;
}

.payment-btn {
    display: inline-block;
    padding: 14px 24px;
    background: linear-gradient(270deg, #2CFA1E, #8AFF00, #EBFF00, #2CFA1E);
    background-size: 300% 300%;
    animation: gradientMoveRL 4s ease infinite;
    color: #000000 !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Montserrat Alternates', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-btn:hover {
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 250, 30, 0.4);
}

.payment-instructions {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

.payment-note {
    color: #ff5722;
    font-weight: bold;
}

/* Responsive Design – mobile: 1 card in slider, full-width layout */
@media (max-width: 768px) {
    .promotion-container {
        --promo-card-width: calc(100% - 28px);
        padding: 12px;
    }
    
    .promotion-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .promotion-left-column {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }
    
    .promotion-claim-panel,
    .promotion-first-panel {
        width: 100%;
    }
    
    .promotion-carousel-panel {
        width: 100%;
        padding-bottom: 40px;
    }
    
    .promo-slider-wrap {
        width: 100% !important;
        flex-direction: column;
        gap: 0;
        position: relative;
        align-items: stretch;
        padding-bottom: 60px;
    }
    
    .promo-slider-viewport {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        flex: 1;
        min-width: 0;
        padding: 14px;
        overflow: hidden !important;
        box-sizing: border-box;
        order: 1;
        position: relative;
    }
    
    .promo-slider-track {
        gap: 16px !important;
        display: flex;
        width: max-content;
        align-items: stretch;
        height: 100%;
        transform: translateX(0);
    }
    
    .promo-slide-card {
        flex: 0 0 calc(100vw - 24px - 28px) !important;
        min-width: calc(100vw - 24px - 28px) !important;
        max-width: calc(100vw - 24px - 28px) !important;
        width: calc(100vw - 24px - 28px) !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0;
        position: relative;
    }
    
    .promo-slide-card .promo-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Arrows moved to bottom on mobile - positioned absolutely at bottom, side by side */
    .promo-slider-wrap .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
        flex-shrink: 0;
        position: absolute;
        bottom: 10px;
        z-index: 10;
        margin: 0;
    }
    
    .promo-slider-wrap .carousel-prev {
        left: calc(50% - 55px);
    }
    
    .promo-slider-wrap .carousel-next {
        left: calc(50% + 12px);
    }
    
    /* Hide dots on mobile */
    .promo-slider-wrap .carousel-dots {
        display: none !important;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Poem popup: force glass + centered typography (override global modal styles) */
#poemModal .modal-content,
#poemModal .promotion-form-modal {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35) !important;
}

#poemModal .modal-close {
    color: rgba(255, 255, 255, 0.85) !important;
}

#poemModal .modal-title {
    color: #ffffff !important;
    text-align: center !important;
    font-weight: 800 !important;
}

#poemModal .modal-subtitle {
    color: #ffffff !important;
    text-align: center !important;
}

#poemModal .poem-first-line {
    color: #ffffff !important;
}

#poemModal .poem-message-block {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(0, 0, 0, 0.22) !important;
}

#poemModal .poem-message-block p,
#poemModal .poem-author-line {
    color: rgba(255, 255, 255, 0.96) !important;
}

#poemModal .poem-message-label {
    text-align: center !important;
    color: rgba(255, 255, 255, 0.98) !important;
    font-size: 16px !important;
}

#poemModal .form-actions {
    text-align: center !important;
    margin-top: 10px;
}
