/**
 * Ticket Email Verification - Styles
 */

.tbvs-verification-form-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.tbvs-verification-form {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tbvs-verification-form h2 {
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-size: 28px;
}

.tbvs-verification-form > p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-messages {
    margin: 20px 0;
}

.success-message {
    padding: 12px 16px;
    background: #10B981;
    color: white;
    border-radius: 8px;
    margin-bottom: 15px;
}

.error-message {
    padding: 12px 16px;
    background: #EF4444;
    color: white;
    border-radius: 8px;
    margin-bottom: 15px;
}

.tbvs-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tbvs-submit-btn:hover:not(:disabled) {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.tbvs-submit-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

.tbvs-back-btn {
    width: 100%;
    padding: 12px 24px;
    margin-top: 15px;
    background: transparent;
    color: #6B7280;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tbvs-back-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    color: #4B5563;
}

/* Список квитків */
.tbvs-tickets-list {
    margin-top: 40px;
}

.tbvs-tickets-list h3 {
    margin: 30px 0 20px 0;
    color: #1a1a1a;
    font-size: 24px;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ticket-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ticket-card:hover {
    border-color: #4F46E5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.certificate-card {
    border-color: #10B981;
}

.certificate-card:hover {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.ticket-header {
    padding: 20px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
}

.certificate-card .ticket-header {
    background: linear-gradient(135deg, #10B981, #059669);
}

.ticket-header h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.ticket-code {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.ticket-body {
    padding: 20px;
}

.ticket-body p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
}

.ticket-body p:last-child {
    margin-bottom: 0;
}

.certificate-amount {
    font-size: 20px !important;
    color: #10B981 !important;
    font-weight: 700 !important;
}

.ticket-footer {
    padding: 0 20px 20px 20px;
}

.download-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: #F3F4F6;
    color: #4F46E5;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #4F46E5;
    color: white;
    transform: scale(1.02);
}

.no-tickets-message {
    text-align: center;
    padding: 40px 20px;
    background: #F9FAFB;
    border-radius: 12px;
    color: #666;
}

.no-tickets-message p {
    margin: 0;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .tbvs-verification-form {
        padding: 30px 20px;
    }
    
    .tickets-grid {
        grid-template-columns: 1fr;
    }
}

/* Результати відображаються з анімацією */
.tickets-results {
    display: none;
}

/* Статуси квитків */
.ticket-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin: 10px 0;
}

.status-active {
    background: #10B981;
    color: white;
}

.status-used {
    background: #6B7280;
    color: white;
}

.status-expired {
    background: #EF4444;
    color: white;
}

/* Картки з різними статусами */
.ticket-card.ticket-used,
.certificate-card.certificate-used {
    opacity: 0.7;
    border-color: #9CA3AF;
}

.ticket-card.ticket-expired,
.certificate-card.certificate-expired {
    opacity: 0.8;
    border-color: #FCA5A5;
    background: #FEF2F2;
}

.ticket-card.ticket-active,
.certificate-card.certificate-active {
    border-color: #10B981;
}

/* Баланс сертифіката */
.certificate-balance {
    color: #10B981;
    font-size: 18px;
    font-weight: 700;
}

/* Дата використання */
.ticket-used-date {
    color: #6B7280;
    font-style: italic;
    margin-top: 5px;
}

/* Заголовок списку */
.tbvs-tickets-list h3 {
    color: #1a1a1a;
    font-size: 22px;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Divider АБО */
.form-or-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.form-or-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.form-or-divider span {
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 15px;
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

/* Hint text */
.form-hint {
    font-size: 13px;
    color: #666;
    margin: -10px 0 15px 0;
    font-style: italic;
}
