/* EQR Event Registration - Frontend Styles */

.eqr-registration-wrapper {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.eqr-form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.eqr-form-section:last-child {
    border-bottom: none;
}

.eqr-form-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.eqr-form-group {
    margin-bottom: 15px;
}

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

.eqr-form-group.required label::after {
    content: " *";
    color: #d32f2f;
}

.eqr-form-group input[type="text"],
.eqr-form-group input[type="email"],
.eqr-form-group input[type="tel"],
.eqr-form-group input[type="date"],
.eqr-form-group select,
.eqr-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.eqr-form-group input:focus,
.eqr-form-group select:focus,
.eqr-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.eqr-form-group select {
    cursor: pointer;
}

.eqr-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.eqr-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    width: 100%;
}

.eqr-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.eqr-button:active {
    transform: translateY(0);
}

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

.eqr-qr-code {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px dashed #667eea;
}

.eqr-qr-code h3 {
    margin-top: 0;
    color: #333;
}

.eqr-qr-code img {
    max-width: 250px;
    height: auto;
    margin: 15px 0;
}

.eqr-qr-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.eqr-qr-btn {
    display: inline-block;
    padding: 10px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.eqr-qr-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.eqr-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.eqr-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.eqr-info-message {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.eqr-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: eqr-spin 1s linear infinite;
}

@keyframes eqr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.eqr-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.eqr-tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    position: relative;
    margin-bottom: -2px;
}

.eqr-tab-button:hover {
    color: #333;
}

.eqr-tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.eqr-tab-content {
    display: none;
}

.eqr-tab-content.active {
    display: block;
}

.eqr-dashboard {
    margin: 20px 0;
}

.eqr-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.eqr-stat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.eqr-stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.eqr-stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.eqr-attendee-list {
    margin-top: 20px;
}

.eqr-attendee-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.eqr-attendee-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.eqr-attendee-details {
    font-size: 13px;
    color: #666;
}

/* Responsive Design */

@media (max-width: 768px) {
    .eqr-registration-wrapper {
        padding: 15px;
        margin: 10px;
    }

    .eqr-qr-actions {
        grid-template-columns: 1fr;
    }

    .eqr-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .eqr-tab-button {
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 0;
    }

    .eqr-tab-button.active {
        border-bottom-color: #667eea;
    }

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

@media (max-width: 480px) {
    .eqr-registration-wrapper {
        padding: 10px;
    }

    .eqr-form-group input,
    .eqr-form-group select,
    .eqr-form-group textarea {
        font-size: 16px;
    }

    .eqr-button {
        font-size: 14px;
        padding: 12px 20px;
    }

    .eqr-stats {
        grid-template-columns: 1fr;
    }
}
