/**
 * Public Styles for PRUBSN Takaful Leads Plugin
 */

/* Form Container */
.ptl-lead-form-container,
.ptl-subscription-plans-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ptl-form-title,
.ptl-plans-title {
    text-align: center;
    color: #0066cc;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* Form Sections */
.ptl-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.ptl-form-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

/* Form Groups */
.ptl-form-group {
    margin-bottom: 20px;
}

.ptl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ptl-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.ptl-form-group label .required {
    color: #e74c3c;
}

.ptl-form-group input[type="text"],
.ptl-form-group input[type="email"],
.ptl-form-group input[type="tel"],
.ptl-form-group input[type="date"],
.ptl-form-group select,
.ptl-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.ptl-form-group input:focus,
.ptl-form-group select:focus,
.ptl-form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

/* Buttons */
.ptl-button {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.ptl-button-primary {
    background-color: #0066cc;
    color: #ffffff;
}

.ptl-button-primary:hover {
    background-color: #0052a3;
}

.ptl-button-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.ptl-button-secondary:hover {
    background-color: #5a6268;
}

.ptl-form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Messages */
.ptl-form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    display: none;
}

.ptl-form-message.success {
    display: block;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ptl-form-message.error {
    display: block;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Subscription Plans */
.ptl-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ptl-plan-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ptl-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ptl-plan-card.popular {
    border-color: #0066cc;
    border-width: 3px;
}

.ptl-plan-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #0066cc;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ptl-plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.ptl-plan-name {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.ptl-plan-description {
    color: #666;
    font-size: 14px;
}

.ptl-plan-price {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.ptl-currency {
    font-size: 18px;
    color: #666;
}

.ptl-amount {
    font-size: 42px;
    font-weight: 700;
    color: #0066cc;
}

.ptl-period {
    font-size: 16px;
    color: #666;
}

.ptl-plan-features {
    margin: 30px 0;
}

.ptl-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ptl-plan-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    color: #333;
}

.ptl-check-icon {
    color: #28a745;
    margin-right: 10px;
    flex-shrink: 0;
}

.ptl-plan-action {
    text-align: center;
    margin-top: 30px;
}

.ptl-plan-action .ptl-button {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ptl-form-row {
        grid-template-columns: 1fr;
    }
    
    .ptl-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .ptl-lead-form-container,
    .ptl-subscription-plans-container {
        padding: 20px;
    }
}

/* Agent Dashboard */
.ptl-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.ptl-dashboard-header {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ptl-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ptl-stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ptl-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #0066cc;
}

.ptl-stat-label {
    color: #666;
    margin-top: 10px;
}

/* Tables */
.ptl-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ptl-table th,
.ptl-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.ptl-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.ptl-table tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.ptl-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ptl-status-new {
    background: #e3f2fd;
    color: #1976d2;
}

.ptl-status-assigned {
    background: #fff3e0;
    color: #f57c00;
}

.ptl-status-contacted {
    background: #f3e5f5;
    color: #7b1fa2;
}

.ptl-status-converted {
    background: #e8f5e9;
    color: #388e3c;
}

.ptl-status-closed {
    background: #fce4ec;
    color: #c2185b;
}
