/* Plan My PCS Styles */

.plan-my-pcs-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Critical form step display fixes */
.plan-my-pcs-form .form-step {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    opacity: 0;
    border: 1px solid transparent;
}

.plan-my-pcs-form .form-step.active {
    display: block !important;
    visibility: visible;
    height: auto;
    overflow: visible;
    opacity: 1;
}

.plan-my-pcs-form h2 {
    margin-bottom: 20px;
    color: #3a3a3a;
}

.plan-my-pcs-form .form-group {
    margin-bottom: 20px;
}

.plan-my-pcs-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.plan-my-pcs-form input[type="text"],
.plan-my-pcs-form input[type="email"],
.plan-my-pcs-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.plan-my-pcs-form .btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.plan-my-pcs-form button {
    padding: 10px 20px;
    background-color: #a25338;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.plan-my-pcs-form button:hover {
    background-color: #6c757d;
}

.plan-my-pcs-form button.prev {
    background-color: #6c757d;
}

.plan-my-pcs-form button.prev:hover {
    background-color: #5a6268;
}

.plan-my-pcs-form .yes-no-options {
    display: flex;
    gap: 20px;
}

.plan-my-pcs-form .radio-option {
    position: relative;
    display: inline-block;
}

.plan-my-pcs-form .radio-option input[type="radio"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.plan-my-pcs-form .radio-option label {
    display: inline-block;
    position: relative;
    padding: 8px 16px;
    margin: 0;
    background-color: #e4e4e4;
    color: #555;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 30px;
    min-width: 60px;
}

.plan-my-pcs-form .radio-option input[type="radio"]:checked + label {
    background-color: #0056b3;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.plan-my-pcs-form .radio-option input[id$="_yes"]:checked + label {
    background-color: #4F8BFF;
}

.plan-my-pcs-form .radio-option input[id$="_no"]:checked + label {
    background-color: #6c757d;
}

.plan-my-pcs-form .radio-option label:hover {
    opacity: 0.9;
}

.plan-my-pcs-form .radio-option input[type="radio"]:focus + label {
    outline: 2px solid rgba(0, 86, 179, 0.5);
    outline-offset: 2px;
}

/* jQuery UI Autocomplete styling */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999 !important;
}

.ui-autocomplete .ui-menu-item {
    padding: 5px 10px;
    cursor: pointer;
}

/* Error styles */
.error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
}

input.error, select.error {
    border-color: #dc3545 !important;
}

/* Form error styling */
.form-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
}

.field-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    margin-right: 5px;
    display: block;
}

input.error,
select.error,
textarea.error,
.select2-container--default.error .select2-selection--single {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05);
}

/* Checklist Styles */
.pcs-checklist {
    max-width: 800px;
    margin: 0 auto;
}

.plan-my-pcs-checklist h2 {
    text-align: center;
}

.pcs-checklist button {
    padding: 10px 20px;
    background-color: #a25338;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.pcs-checklist button:hover {
    background-color: #6c757d;
}

.pcs-checklist-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pcs-checklist-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.pcs-checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.pcs-checklist-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.pcs-checklist-item .item-content {
    flex-grow: 1;
}

.pcs-checklist-item .item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.pcs-checklist-item .item-description {
    font-size: 0.9em;
    color: #666;
}

.pcs-checklist-print {
    text-align: center;
    margin: 20px 0;
}

.checklist-items {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.checklist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.checklist-date {
    color: #666;
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

.checklist-title {
    margin: 0;
    font-size: 1.1em;
}


/* Message styling */
#pcs-history-message, 
#pcs-verification-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

#pcs-history-message.error, 
#pcs-verification-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#pcs-history-message.success, 
#pcs-verification-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#pcs-history-message.info, 
#pcs-verification-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

#pcs-history-message button {
    margin-top: 10px;
}

/* Select2 Base Search Styling */
.select2-container--default .select2-selection--single {
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 16px;
    background-color: #fff;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding-left: 0;
    color: #333;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #757575;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px;
    display: flex;
    align-items: center;
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.select2-search--dropdown {
    padding: 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.select2-results__option {
    padding: 8px 12px;
}

.select2-container--default .select2-results__group {
    padding: 6px 12px;
    font-weight: bold;
    background-color: #f8f9fa;
    color: #0056b3;
    border-bottom: 1px solid #eee;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0056b3;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

/* Responsive styles */
@media (max-width: 768px) {
    .plan-my-pcs-form {
        padding: 15px;
    }
    
    .plan-my-pcs-form .yes-no-options {
        flex-direction: column;
        gap: 10px;
    }
}
