/**
 * Frontend Styles for Free Trial
 */

.tft-trial-container {
    margin-bottom: 20px;
}

.tft-trial-option {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

    .tft-trial-option h4 {
        margin: 0 0 10px 0;
        font-size: 20px;
        color: #333;
    }

.tft-trial-description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.tft-trial-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #2196F3;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

    .tft-trial-btn:hover {
        background: #1976D2;
        color: #fff !important;
    }

.tft-btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.tft-btn-medium {
    padding: 12px 30px;
    font-size: 16px;
}

.tft-btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.tft-separator {
    margin-top: 15px;
    position: relative;
    text-align: center;
}

    .tft-separator:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #ddd;
    }

    .tft-separator span {
        display: inline-block;
        background: #f9f9f9;
        padding: 0 15px;
        position: relative;
        color: #999;
        font-size: 13px;
    }

.tft-active-trial-notice,
.tft-ended-trial-notice {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-radius: 8px;
    gap: 12px;
}

.tft-active-trial-notice {
    background: #E3F2FD;
    border: 1px solid #2196F3;
}

.tft-ended-trial-notice {
    background: #FFF3E0;
    border: 1px solid #FF9800;
}

.tft-notice-icon {
    font-size: 24px;
    line-height: 1;
}

.tft-notice-content {
    flex: 1;
}

    .tft-notice-content strong {
        display: block;
        margin-bottom: 5px;
        font-size: 16px;
    }

    .tft-notice-content p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

/* Purchase option during active trial */
.tft-trial-purchase-option {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(33, 150, 243, 0.2);
    text-align: center;
}

.tft-purchase-message {
    margin: 0 0 10px 0 !important;
    color: #1976D2 !important;
    font-size: 14px !important;
    font-weight: 500;
}

/* Trial purchase form */
.tft-trial-purchase-form {
    margin: 0;
}

/* Installment options inside trial notice */
.tft-trial-purchase-option .tutor-installments-options {
    margin: 15px 0;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid rgba(33, 150, 243, 0.1);
}

    .tft-trial-purchase-option .tutor-installments-options h4 {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 15px;
        color: #1976D2;
    }

.tft-trial-purchase-option .installment-option {
    margin-bottom: 12px;
    padding: 12px;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

    .tft-trial-purchase-option .installment-option:hover {
        border-color: #2196F3;
        background: #fff;
    }

    .tft-trial-purchase-option .installment-option.selected {
        border-color: #2196F3;
        background: #E3F2FD;
    }

    .tft-trial-purchase-option .installment-option label {
        display: block;
        cursor: pointer;
        margin: 0;
    }

    .tft-trial-purchase-option .installment-option input[type="radio"] {
        margin-right: 8px;
        vertical-align: middle;
    }

.tft-trial-purchase-option .installment-details {
    margin-top: 8px;
    padding-left: 24px;
    display: none;
}

.tft-trial-purchase-option .installment-option input[type="radio"]:checked ~ .installment-details {
    display: block;
}

.tft-trial-purchase-option .installment-details p {
    margin: 4px 0;
    font-size: 13px;
    color: #666;
}

.tft-trial-purchase-option .installment-note {
    color: #46b450;
    font-style: italic;
    margin-top: 8px !important;
    font-size: 12px !important;
}

.tft-upgrade-btn {
    display: block;
    width: 100%;
    margin: 15px 0 0 0;
}

.tft-elementor-widget .tft-trial-option {
    background: transparent;
    padding: 0;
}

.tft-elementor-widget .tft-separator span {
    background: #fff;
}

@media (max-width: 768px) {
    .tft-trial-option {
        padding: 15px;
    }

    .tft-trial-btn {
        display: block;
        width: 100%;
    }

    .tft-trial-purchase-option .installment-option {
        padding: 10px;
    }

    .tft-trial-purchase-option .installment-details {
        padding-left: 20px;
    }
}
