/**
 * LZIBPH WooCommerce Checkout Styles
 * Clean design - required field only (no checkbox)
 * 
 * @package LZIBPH_Validator
 * @version 1.0.0
 */

/* Section Container */
.lzibph-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

/* Specialist Header */
.lzibph-specialist-header {
    margin-bottom: 15px;
}

.lzibph-specialist-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.lzibph-specialist-desc {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Identifier Field */
.lzibph-identifier-field {
    margin-top: 15px;
}

.lzibph-field-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.lzibph-field-label abbr.required {
    color: #e2401c;
    text-decoration: none;
    border: none;
}

.lzibph-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lzibph-input-wrap input[type="text"] {
    flex: 1;
    max-width: 300px;
    padding: 12px 14px;
    border: 1px solid #d4d8dd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.lzibph-input-wrap input[type="text"]:focus {
    border-color: #124EC6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(18, 78, 198, 0.1);
}

/* Status Indicator */
.lzibph-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.lzibph-status:empty {
    display: none;
}

.lzibph-status.loading {
    color: #666;
    background: #f0f0f0;
}

.lzibph-status.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid #999;
    border-top-color: transparent;
    border-radius: 50%;
    animation: lzibph-spin 0.7s linear infinite;
}

.lzibph-status.valid {
    color: #1e7e34;
    background: #d4edda;
}

.lzibph-status.invalid {
    color: #721c24;
    background: #f8d7da;
}

.lzibph-status.warning {
    color: #856404;
    background: #fff3cd;
}

@keyframes lzibph-spin {
    to { transform: rotate(360deg); }
}

/* Facility Result */
.lzibph-facility-result {
    margin-top: 15px;
}

.lzibph-facility-info {
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    background: #f8fdf9;
}

.lzibph-facility-info.is-active {
    border-left-color: #28a745;
    background: #f8fdf9;
}

.lzibph-facility-info.is-inactive {
    border-left-color: #dc3545;
    background: #fdf8f8;
}

.lzibph-facility-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.lzibph-facility-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.lzibph-facility-meta span {
    white-space: nowrap;
}

.lzibph-facility-address {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e8e8e8;
}

/* Badge */
.lzibph-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.lzibph-badge.active {
    background: #28a745;
    color: #fff;
}

.lzibph-badge.inactive {
    background: #dc3545;
    color: #fff;
}

/* Create Account Section */
.lzibph-create-account-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.lzibph-account-box {
    border: 1px solid #d4d8dd;
    border-radius: 8px;
    padding: 15px 18px;
    background: #fff;
    transition: all 0.2s ease;
}

.lzibph-account-box:hover {
    border-color: #999;
}

.lzibph-account-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.lzibph-account-checkbox input[type="checkbox"] {
    margin: 4px 0 0 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lzibph-account-text {
    flex: 1;
}

.lzibph-account-text strong {
    display: block;
    color: #333;
    font-size: 15px;
    margin-bottom: 4px;
}

.lzibph-account-desc {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .lzibph-input-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lzibph-input-wrap input[type="text"] {
        max-width: 100%;
    }
    
    .lzibph-status {
        align-self: flex-start;
    }
    
    .lzibph-facility-meta {
        flex-direction: column;
        gap: 6px;
    }
}
