/* Main Container */
.acf-form-container {
    width: 100% !important;
    max-width: 600px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* Bold Labels */
.acf-form-group label, 
.acf-message-wrapper label, 
.acf-radio-row > label {
    display: block;
    font-weight: 600 !important;
    font-size: 13px;
    margin-bottom: 4px;
    color: #333;
}

/* Row Layouts */
.acf-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    margin-bottom: 12px !important;
    align-items: flex-end !important;
}
.acf-row > div { flex: 1 !important; }

/* Inputs */
.acf-form-group input, 
.acf-form-group select, 
.acf-message-wrapper textarea {
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Attachment Area */
.acf-file-row { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 8px; 
    padding: 6px;
    background: #f9f9f9; 
    border: 1px solid #eee;
    border-radius: 4px;
}

.acf-file-input { font-size: 13px; color: #555; flex: 1; }

.acf-add-row, .acf-remove-row {
    background-color: #ffffff !important;
    border: 1px solid #999999 !important;
    color: #222222 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    font-size: 18px !important;
    padding: 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.acf-remove-row { color: #d63638 !important; border-color: #d63638 !important; }

/* REFINED SIZE BAR */
.acf-size-meter-wrapper { 
    height: 14px; 
    width: 200px;
    background: #e0e0e0; 
    border: 1px solid #ccc; 
    border-radius: 7px; 
    margin: 10px 0; 
    overflow: hidden; 
    display: block !important;
    position: relative;
}

#acf-size-bar { 
    height: 100%; 
    background: #2271b1; 
    width: 0%; 
    transition: width 0.3s ease; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#acf-size-percent { font-size: 9px; color: #ffffff; font-weight: bold; pointer-events: none; }

/* Radio Buttons */
.acf-radio-row { display: flex !important; align-items: center !important; gap: 15px !important; }
.acf-radio-group { display: flex !important; gap: 15px !important; align-items: center !important; }
.acf-radio-group label { font-weight: normal !important; margin: 0 !important; display: flex !important; gap: 5px !important; cursor: pointer; }

/* AI Trigger & Toolbar */
.acf-message-wrapper { position: relative; margin-bottom: 25px; }
.acf-message-toolbar { display: flex; justify-content: space-between; margin-top: 4px; }
#acf-ai-trigger { background: none !important; border: none !important; color: #2271b1 !important; font-size: 11px; cursor: pointer; text-decoration: underline; padding: 0; }
#acf-char-count { font-size: 11px; color: #777; }

/* Submit & Turnstile */
#acf-submit-btn { background: #2271b1; color: #fff; border: none; border-radius: 4px; padding: 10px 24px; cursor: pointer; font-weight: 600; }
#acf-submit-btn:disabled { background: #ccc; cursor: not-allowed; }
#acf-turnstile-container { margin-top: 15px; min-height: 65px; }

/* Feedback */
.acf-success-box, .acf-error-box { padding: 20px; border-radius: 4px; margin-bottom: 20px; border: 1px solid; line-height: 1.5; }
.acf-success-box { background: #f0f9ff; border-color: #0073aa; color: #003a5a; }
.acf-error-box { background: #fff5f5; border-color: #d63638; color: #d63638; }