/* Interactive Pricing Table Styles */

.ipt-pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

.ipt-commitment-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ipt-commitment-section h4 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.ipt-commitment-note {
    font-style: italic;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.ipt-commitment-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ipt-commitment-btn {
    padding: 12px 24px;
    background: #fff;
    border: 2px solid var(--ipt-primary-color, #007bff);
    color: var(--ipt-primary-color, #007bff);
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.ipt-commitment-btn:hover,
.ipt-commitment-btn.active {
    background: var(--ipt-primary-color, #007bff);
    color: #fff;
}

.ipt-step-two {
    margin-bottom: 20px;
}

.ipt-step-two h4 {
    font-size: 18px;
    color: #333;
}

.ipt-selected-commitment {
    color: var(--ipt-primary-color, #007bff);
    font-weight: bold;
}

.ipt-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ipt-pricing-table th {
    background: var(--ipt-primary-color, #007bff);
    color: var(--ipt-header-text-color, white);
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border: none;
    border-bottom: 2px solid #ddd;
}

.ipt-pricing-table td {
    padding: 20px 15px;
    border: none;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* Left align first column (plan names) */
.ipt-pricing-table td:first-child {
    text-align: left;
}

.ipt-pricing-table tr:nth-child(even) {
    background: #f9f9f9;
}

.ipt-plan-name {
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

.ipt-plan-access {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.ipt-plan-hours {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.ipt-plan-details {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.ipt-price {
    font-size: 18px;
    color: var(--ipt-primary-color, #007bff);
    font-weight: bold;
}

.ipt-join-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--ipt-secondary-color, #28a745);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.ipt-join-btn:hover {
    background: var(--ipt-secondary-hover, #218838);
    color: white;
    text-decoration: none;
}

.ipt-info-section {
    margin-bottom: 40px;
}

.ipt-info-section h3 {
    color: var(--ipt-primary-color, #007bff);
    border-bottom: 2px solid var(--ipt-primary-color, #007bff);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.ipt-info-section ul {
    list-style: disc;
    padding-left: 30px;
    line-height: 1.8;
}

.ipt-info-section p {
    line-height: 1.8;
    color: #333;
}

.ipt-faq-section {
    margin-top: 50px;
}

.ipt-faq-item {
    margin-bottom: 30px;
}

.ipt-faq-item h4 {
    color: var(--ipt-primary-color, #007bff);
    font-size: 16px;
    margin-bottom: 10px;
}

.ipt-faq-item p,
.ipt-faq-item ul,
.ipt-faq-item ol {
    color: #555;
    line-height: 1.8;
}

.ipt-faq-item ul,
.ipt-faq-item ol {
    padding-left: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ipt-pricing-table {
        font-size: 12px;
    }
    
    .ipt-pricing-table td,
    .ipt-pricing-table th {
        padding: 10px 5px;
    }
    
    .ipt-commitment-buttons {
        flex-direction: column;
    }
    
    .ipt-commitment-btn {
        width: 100%;
    }
    
    .ipt-join-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* Divi Compatibility */
.et_pb_module .ipt-pricing-container {
    max-width: none;
}

.et_pb_text .ipt-pricing-container h3,
.et_pb_text .ipt-pricing-container h4 {
    padding-top: 0;
}

/* Ensure buttons work in Divi */
#et-boc .ipt-commitment-btn,
#et-boc .ipt-join-btn {
    font-family: inherit;
}
