/* Ticket Details Page Styles */

.ticket-images-container {
    position: relative;
}

.ticket-badge-large {
    display: inline-block;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ticket-image-display h4 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
}

.ticket-image-wrapper-large {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    background: white;
    padding: 10px;
}

.ticket-image-wrapper-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.ticket-image-wrapper-large img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.ticket-image-wrapper-large:hover img {
    transform: scale(1.02);
}

/* Ticket Details Card */
.ticket-details-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.ticket-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.ticket-price-large {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #41a6ef, #127def);
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
    margin-bottom: 20px;
}

.ticket-detail-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Features List */
.ticket-features h4 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 8px 0;
    padding-left: 35px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.features-list li:hover {
    padding-left: 40px;
    color: #127def;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: white;
    background: linear-gradient(135deg, #41a6ef, #127def);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

/* Quantity Selector */
.quantity-selector h4 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.qty-btn {
    background: linear-gradient(135deg, #41a6ef, #127def);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(18, 125, 239, 0.3);
}

.qty-btn:hover {
    background: linear-gradient(135deg, #127def, #0d5cb8);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(18, 125, 239, 0.4);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
    color: #2c3e50;
}

.qty-input:focus {
    outline: none;
    border-color: #127def;
    background: white;
}

.quantity-note {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    margin: 0;
}

/* Referral Section */
.referral-section h4 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.referral-input {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.referral-input:focus {
    outline: none;
    border-color: #127def;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(18, 125, 239, 0.15);
}

.referral-input::placeholder {
    color: #adb5bd;
}

/* Total Price Section */
.total-price-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.total-price-section h4 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #127def;
}

/* Purchase Button */
.btn-purchase-ticket {
    background: linear-gradient(135deg, #41a6ef, #127def);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(18, 125, 239, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-purchase-ticket::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-purchase-ticket:hover::before {
    left: 100%;
}

.btn-purchase-ticket:hover {
    background: linear-gradient(135deg, #127def, #0d5cb8);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(18, 125, 239, 0.5);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Cause Section */
.cause-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cause-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.cause-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Impact Cards */
.impact-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    height: 100%;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #127def;
}

.impact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #41a6ef, #127def);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(18, 125, 239, 0.3);
}

.impact-card h5 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.impact-card p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* Purchase Modal Styles */
.modal-content {
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #41a6ef, #127def);
    color: white;
    border-bottom: none;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-header .close {
    color: white;
    opacity: 1;
    text-shadow: none;
}

.modal-header .close:hover {
    color: #f0f0f0;
}

.modal-body {
    padding: 25px;
}

.order-summary {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e9ecef;
}

.order-summary h6 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total-item {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #127def;
    font-size: 1.1rem;
}

.summary-item.total-item strong {
    color: #127def;
    font-size: 1.2rem;
}

#purchase-form h6 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
}

#purchase-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 5px;
}

#purchase-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#purchase-form .form-control:focus {
    border-color: #127def;
    box-shadow: 0 0 0 0.2rem rgba(18, 125, 239, 0.15);
}

#purchase-form .form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#purchase-form .form-check-input {
    margin-top: 0;
    margin-right: 8px;
}

#purchase-form .form-check-label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}

#purchase-form .form-check-label a {
    color: #127def;
    text-decoration: none;
}

#purchase-form .form-check-label a:hover {
    text-decoration: underline;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
}

.btn-chapa {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-chapa:hover {
    background: linear-gradient(135deg, #218838, #1aa179);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
    color: white;
}

.modal-footer .btn-secondary {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .ticket-details-card {
        position: relative;
        top: 0;
        margin-top: 30px;
    }

    .ticket-detail-title {
        font-size: 2rem;
    }

    .ticket-price-large {
        font-size: 2.5rem;
    }

    .cause-section {
        padding: 30px 20px;
    }

    .cause-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .ticket-details-card {
        padding: 25px;
    }

    .ticket-detail-title {
        font-size: 1.8rem;
    }

    .ticket-price-large {
        font-size: 2rem;
    }

    .btn-purchase-ticket,
    .btn-outline-secondary {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .quantity-controls {
        gap: 15px;
    }

    .qty-btn {
        width: 45px;
        height: 45px;
    }

    .qty-input {
        width: 80px;
        height: 45px;
        font-size: 1.3rem;
    }

    /* Modal responsive */
    .modal-body {
        padding: 20px;
    }

    .order-summary {
        padding: 15px;
    }

    .modal-header .modal-title {
        font-size: 1.1rem;
    }

    .btn-chapa,
    .modal-footer .btn-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .summary-item {
        font-size: 0.85rem;
    }

    .summary-item.total-item strong {
        font-size: 1.1rem;
    }
}