/* AskCard Invoice Option Styles */

/* Force visibility for debugging */
.pms-section-invoice-option {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
    margin: 20px 0 !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 5px !important;
    border: 1px solid #e9ecef !important;
    min-height: 50px !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.5 !important;
}

/* Fix text rendering issues */
.pms-invoice-option-field {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.5 !important;
}

.pms-invoice-option-field label {
    display: block !important;
    margin: 8px 0 !important;
    cursor: pointer !important;
    font-weight: normal !important;
    padding: 8px 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.5 !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    position: static !important;
    transform: none !important;
    clip: unset !important;
    clip-path: none !important;
}

.pms-invoice-option-field input[type="radio"] {
    margin-right: 8px !important;
    vertical-align: middle !important;
}

.pms-invoice-option-field .pms-radio-text {
    font-size: 14px !important;
    vertical-align: middle !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.5 !important;
    overflow: visible !important;
}

.pms-field-description {
    margin: 10px 0 0 0 !important;
    font-size: 13px !important;
    color: #666 !important;
    font-style: italic !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    position: static !important;
    transform: none !important;
    clip: unset !important;
    clip-path: none !important;
}

/* Additional fixes for text rendering */
.pms-invoice-option-field * {
    text-overflow: unset !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    position: static !important;
    transform: none !important;
    clip: unset !important;
    clip-path: none !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* Force text to be visible */
.pms-invoice-option-field label,
.pms-invoice-option-field span,
.pms-invoice-option-field p {
    color: #333 !important;
    background: transparent !important;
    text-shadow: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Billing section transitions */
.pms-section-billing-details {
    transition: all 0.3s ease-in-out !important;
}

.pms-section-billing-details.hidden {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force hide invoice option section on register page */
.pms-field-section.pms-section-invoice-option,
.pms-section-invoice-option,
.pms-invoice-option {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

.pms-invoice-option-field {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.pms-invoice-option-field label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.pms-radio-group {
    margin: 10px 0;
}

.pms-radio-label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
    font-weight: normal;
    padding: 8px 0;
}

.pms-radio-label input[type="radio"] {
    margin-right: 8px;
    vertical-align: middle;
}

.pms-radio-text {
    font-size: 14px;
    vertical-align: middle;
}

.pms-field-description {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

/* Billing fields styling */
.pms-section-billing-details.pms-field-optional {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.pms-section-billing-details.pms-field-optional:hover {
    opacity: 0.8;
}

.pms-field-optional label {
    color: #999;
}

.pms-field-required label {
    color: #333;
    font-weight: 500;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* Payment history invoice column styling */
.pms-no-invoice {
    color: #6c757d;
    font-style: italic;
    font-size: 12px;
}

.pms-invoice-error {
    color: #dc3545;
    font-size: 12px;
}

/* Responsive design */
@media (max-width: 768px) {
    .pms-invoice-option-field {
        padding: 12px;
    }
    
    .pms-radio-label {
        padding: 6px 0;
    }
    
    .pms-radio-text {
        font-size: 13px;
    }
}

/* Animation for field transitions */
.pms-section-billing-details {
    transition: all 0.3s ease;
}

.pms-section-billing-details.pms-field-optional {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.pms-section-billing-details:not(.pms-field-optional) {
    max-height: 1000px;
    opacity: 1;
} 