/* ==========================================
   FORM FRONTEND STYLING
   ========================================== */
.pfb-form {
    max-width: 100%;
    padding: 25px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 8px;
}

/* Section Grouping Style (V2) */
.pfb-section-wrapper {
    margin-bottom: 35px !important;
    border: none !important;
    padding: 25px !important;
    border-radius: 10px !important;
    background: #fdfdfd;
}

.pfb-section-wrapper legend {
    display: block !important;
    visibility: visible !important;
    padding: 0px !important;
    font-weight: 700 !important;
    font-size: 1.25em !important;
    color: #2271b1;
    background: #fff;
    border-radius: 4px;
}

.pfb-field {
    margin-bottom: 20px;
}

.pfb-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.pfb-field input,
.pfb-field select,
.pfb-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Error States */
.pfb-has-error label { color: #e53935; }
.pfb-error-input { border: 1.5px solid #e53935 !important; background: #fff6f6; }

/* ==========================================
   USER PROFILE VIEW STYLING
   ========================================== */
.pfb-profile-container {
    max-width: 850px;
    margin: 30px auto;
}

.pfb-profile-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 35px;
    border: 1px solid #f0f0f0;
}

.pfb-profile-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-e single column */
    gap: 15px;
}
.pfb-info-item {
    /* background: #f8f9fa; */
    /* padding: 18px; */
    border-radius: 8px;
    /* border-left: 5px solid #ffae00; */
}

.pfb-info-item.full-width { grid-column: span 1; } /* Desktop e span fixed hobe query te */

@media (min-width: 768px) {
    .pfb-info-item.full-width { grid-column: span 2; }
    .pfb-profile-grid {
        grid-template-columns: repeat(2, 1fr); /* Desktop-e double column */
    }
}

.pfb-label {
    display: block;
    font-size: 11px;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 6px;
}

.pfb-value { font-size: 16px; color: #2c3e50; }

.pfb-btn-edit {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    background: #111827;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.pfb-btn-edit:hover { background: #34495e; color: #fff; }

/* ==========================================
   BUTTONS STYLING (FRONTEND)
   ========================================== */

/* Main Submit & Update Button */
.pfb-submit-btn {
    background-color: #2271b1; /* WordPress Primary Blue */
    color: #ffffff;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.pfb-submit-btn:hover {
    background-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Cancel / Back Button */
.pfb-btn-cancel {
    background-color: #f6f7f7;
    color: #3c434a;
    padding: 11px 25px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.pfb-btn-cancel:hover {
    background-color: #f0f0f1;
    border-color: #c3c4c7;
    color: #1d2327;
}

/* Download Button (Profile & Admin View) */
.pfb-btn-download {
    background-color: #2c3e50;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    margin-top: 5px;
}

.pfb-btn-download:hover {
    background-color: #1a252f;
}

/* Edit Profile Button */
.pfb-btn-edit {
    background-color: #111827;
    color: #ffffff !important;
    padding: 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.pfb-btn-edit:hover {
    background-color: #374151;
}

/* Form Footer Container */
.pfb-form-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Radio Button UI Optimization */
.pfb-field input[type="radio"] {
    width: auto !important;
    margin-right: 10px !important;
    cursor: pointer;
    accent-color: #2271b1; /* WordPress primary blue for consistent branding */
}

.pfb-field label.pfb-radio-label {
    display: flex;
    align-items: center;
    /* background: #f9f9f9; */
    padding: 3px 15px;
    /* border: 1px solid #ddd; */
    border-radius: 6px;
    margin-bottom: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pfb-field label.pfb-radio-label:hover {
    /* background: #f0f7ff; */
    /* border-color: #2271b1; */
}

/* Style for selected state via CSS selector */
.pfb-field input[type="radio"]:checked + span {
    color: #2271b1;
    font-weight: 600;
}

/**
 * Layout Grid System
 * Synchronized with dynamic settings from renderer.php
 */
/* .pfb-section-wrapper {
    display: grid;
    grid-template-columns: 1fr; 
    width: 100%;
    border: none !important;
}
.pfb-section-wrapper legend{
    padding: 0px !important;
} */

/**
 * Responsive Desktop Layout
 * Grid columns are dynamically overridden via inline styles in renderer.php
 */
@media (min-width: 768px) {
    .pfb-section-wrapper {
        /* Desktop specific layout rules */
    }
}