/**
 * TalentGro Razorpay Checkout - Form Integration Styles
 * Styles for payment-gated forms and disabled form fields
 */

/* Disabled form field styling */
.tgrc-disabled-field {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    /* Preserve original background color for buttons */
}

.tgrc-disabled-field:not(button) {
    background-color: #f5f5f5 !important;
}

/* Disabled form styling */
.tgrc-form-disabled {
    opacity: 0.8 !important;
    pointer-events: none !important;
}

.tgrc-form-disabled input,
.tgrc-form-disabled textarea,
.tgrc-form-disabled select {
    cursor: not-allowed !important;
    background-color: #f5f5f5 !important;
}

.tgrc-form-disabled button {
    cursor: not-allowed !important;
    /* Preserve original button styling */
}

/* Formidable Forms disabled styling */
.frm_disabled {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.frm_disabled input,
.frm_disabled textarea,
.frm_disabled select {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
}

/* Enhanced Formidable Forms disabled styling */
.frm_disabled .frm_checkbox,
.frm_disabled .frm_radio,
.frm_disabled .frm_opt_container {
    pointer-events: none !important;
    opacity: 0.6 !important;
}

.frm_disabled .frm_checkbox input,
.frm_disabled .frm_radio input,
.frm_disabled .frm_opt_container select {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.frm_disabled .frm_button_submit,
.frm_disabled .frm_prev_page,
.frm_disabled .frm_final_submit {
    cursor: not-allowed !important;
    pointer-events: none !important;
    /* Preserve original button styling */
}

/* Form disabled styling */
.tgrc-form-disabled {
    opacity: 0.8 !important;
    pointer-events: none !important;
}

.tgrc-form-disabled input,
.tgrc-form-disabled textarea,
.tgrc-form-disabled select {
    cursor: not-allowed !important;
    background-color: #f5f5f5 !important;
}

.tgrc-form-disabled button {
    cursor: not-allowed !important;
    /* Preserve original button styling */
}

/* Payment gated form wrapper */
.tgrc-payment-gated-form {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.tgrc-form-wrapper {
    position: relative;
    margin-top: 20px;
}

.tgrc-form-overlay {
    position: relative;
}

.tgrc-form-disabled-message {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.tgrc-form-disabled-message > div {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-top: 50px;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tgrc-form-disabled-message .lock-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #6c757d;
}

.tgrc-form-disabled-message h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.tgrc-form-disabled-message p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Payment status messages */
.tgrc-payment-status-message {
    margin-bottom: 20px;
}

.tgrc-payment-required {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.tgrc-payment-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

/* Payment status indicators */
.tgrc-payment-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

.tgrc-payment-status.tgrc-paid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Payment required messages */
.tgrc-payment-required-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
}

/* Form content wrapper */
.tgrc-form-content {
    position: relative;
}

/* Responsive design */
@media (max-width: 768px) {
    .tgrc-payment-gated-form {
        padding: 0 15px;
    }
    
    .tgrc-payment-button-wrapper {
        margin-bottom: 20px !important;
    }
    
    .tgrc-form-wrapper {
        margin-top: 15px;
    }
    
    .tgrc-form-disabled-message {
        top: 30px;
        border-radius: 6px;
    }
    
    .tgrc-form-disabled-message > div {
        padding: 25px 20px;
        margin: 20px 10px;
        max-width: 95%;
        width: 95%;
        border-radius: 10px;
    }
    
    .tgrc-form-disabled-message .lock-icon {
        font-size: 48px;
        margin-bottom: 12px;
    }
    
    .tgrc-form-disabled-message h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .tgrc-form-disabled-message p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .tgrc-form-disabled-message {
        top: 20px;
    }
    
    .tgrc-form-disabled-message > div {
        padding: 20px 15px;
        margin: 15px 5px;
        max-width: 98%;
        width: 98%;
    }
    
    .tgrc-form-disabled-message .lock-icon {
        font-size: 42px;
        margin-bottom: 10px;
    }
    
    .tgrc-form-disabled-message h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .tgrc-form-disabled-message p {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
}

/* Animation for form unlock */
.tgrc-form-wrapper[data-form-disabled="false"] .tgrc-form-disabled-message {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Success animation */
.tgrc-payment-success {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in right animation for unlock success */
/* @keyframes slideInRight - REMOVED: No longer needed since toast message is removed
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
*/ 