/* ==========================================================================
   SIMPLE CONTACT FORM PRO - MASTER CODE UI SPECIFICATION
   Charcoal, Cyan, and Telemetry Component Rule Infrastructure
   ========================================================================== */

/* Outer structure canvas container for Light Color Mode base */
.scfp-outer-wrapper {
    width: 100%;
    padding: 30px 15px;
    background-color: var(--scfp-outer-bg, #f4f5f7); /* Real-time interactive canvas background custom property */
    box-sizing: border-box;
    transition: background-color 0.15s ease;
}

.scfp-form-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--scfp-form-bg, #222122); /* Persistent Charcoal core container background custom property */
    border: 1px solid #2d2c2d;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    transition: background-color 0.15s ease;
}

.scfp-form-container * {
    box-sizing: border-box;
}

/* Header Typography Styling */
.scfp-form-container .form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid var(--scfp-label-color, #00d2ff);
    padding-bottom: 12px;
    transition: border-color 0.15s ease;
}

/* Structural Two-Column Fields Grid Layout */
.scfp-grid-row {
    display: flex;
    gap: 20px;
    margin-bottom: var(--scfp-field-gap, 20px);
    transition: margin-bottom 0.15s ease;
}

.scfp-grid-row .scfp-field-group {
    flex: 1;
    margin-bottom: 0;
}

/* Standard Element Group Wrapping */
.scfp-field-group {
    margin-bottom: var(--scfp-field-gap, 20px);
    position: relative;
    transition: margin-bottom 0.15s ease;
}

.scfp-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--scfp-label-color, #00d2ff); /* Custom dynamic accent variable mapping */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    transition: color 0.15s ease;
}

/* Form Interactivity Component Elements Selection Architecture */
.scfp-form-container input[type="text"],
.scfp-form-container input[type="email"],
.scfp-form-container textarea,
.scfp-form-container .scfp-security-row input[type="text"] {
    width: 100%;
    background: var(--scfp-input-bg, #181718) !important; /* Forces strict binding to core engine live-variable overrides */
    border: 1px solid #3d3c3d;
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--scfp-input-color, #ffffff) !important; /* Explicit validation text color mapping mechanism */
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}

.scfp-form-container input[type="text"]:focus,
.scfp-form-container input[type="email"]:focus,
.scfp-form-container textarea:focus,
.scfp-form-container .scfp-security-row input[type="text"]:focus {
    outline: none;
    border-color: #0099ff;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.25);
}

/* Cross-Browser Real-Time Interactive Placeholder Controls Subsystem */
.scfp-form-container input::placeholder,
.scfp-form-container textarea::placeholder {
    color: var(--scfp-placeholder-color, #888888) !important;
    opacity: 1; /* Necessary to prevent default Firefox element opacity scaling overrides */
    transition: color 0.15s ease;
}

.scfp-form-container input::-webkit-input-placeholder,
.scfp-form-container textarea::-webkit-input-placeholder {
    color: var(--scfp-placeholder-color, #888888) !important;
    transition: color 0.15s ease;
}

.scfp-form-container input::-moz-placeholder,
.scfp-form-container textarea::-moz-placeholder {
    color: var(--scfp-placeholder-color, #888888) !important;
    opacity: 1;
    transition: color 0.15s ease;
}

.scfp-form-container input:-ms-input-placeholder,
.scfp-form-container textarea:-ms-input-placeholder {
    color: var(--scfp-placeholder-color, #888888) !important;
    transition: color 0.15s ease;
}

.scfp-form-container textarea {
    resize: vertical;
    min-height: 120px;
}

/* Anti-Spam Security Framework Row Layout */
.scfp-security-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
    background: #1a191a;
    padding: 15px;
    border-radius: 4px;
    border: 1px dashed #3d3c3d;
}

.scfp-security-row .scfp-captcha-box {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
}

/* Modern Gradient Interactive Button Submission Area */
.scfp-submit-wrapper {
    text-align: right;
    margin-top: 15px;
}

.scfp-form-container input[type="submit"],
.scfp-form-container #scfp-sandbox-submit-btn {
    background: linear-gradient(135deg, var(--scfp-btn-start, #0099ff) 0%, var(--scfp-btn-end, #00d2ff) 100%); /* Interactive gradient mapping fields */
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 35px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
}

.scfp-form-container input[type="submit"]:hover,
.scfp-form-container #scfp-sandbox-submit-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 16px rgba(0, 210, 255, 0.4);
}

.scfp-form-container input[type="submit"]:active,
.scfp-form-container #scfp-sandbox-submit-btn:active {
    transform: scale(0.98);
}

/* Real-Time Processing Messaging Feedback Triggers */
#form-message, #scfp-sandbox-feedback-log {
    display: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    border-left: 4px solid transparent;
    background: #1a191a;
    color: #00d2ff;
}

#form-message.success, #scfp-sandbox-feedback-log.success {
    border-left-color: #00ff66;
    color: #00ff66;
    background: rgba(0, 255, 102, 0.06);
}

#form-message.error, #scfp-sandbox-feedback-log.error {
    border-left-color: #ff3131;
    color: #ff3131;
    background: rgba(255, 49, 49, 0.06);
}

/* ==========================================================================
   BACKEND ENGINE TELEMETRY INTERFACE: Master UI Panels & Split View Customizer
   ========================================================================== */

.scfp-admin-dashboard {
    background-color: #111011 !important;
    padding: 20px 25px 30px 10px !important;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.scfp-admin-dashboard h1 {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 22px !important;
    margin-bottom: 15px !important;
}

.scfp-admin-dashboard h2 {
    color: #00d2ff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 25px 0 10px 0 !important;
}

/* Custom split-screen interface rules layout configuration */
.scfp-split-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: flex-start;
}

.scfp-split-column-form {
    flex: 1.2;
    background: #222122;
    border: 1px solid #2d2c2d;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}

.scfp-split-column-preview {
    flex: 1;
}

.scfp-preview-sticky-box {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    background: #1a191a;
    border: 1px solid #2d2c2d;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}

.scfp-preview-title {
    color: #888888;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #2d2c2d;
    padding-bottom: 8px;
}

.scfp-dashboard-panel {
    background-color: #222122;
    border: 1px solid #2d2c2d;
    border-radius: 4px;
    margin-top: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
    overflow: hidden;
}

.scfp-dashboard-panel .panel-header {
    background-color: #1a191a;
    padding: 16px 20px;
    border-bottom: 1px solid #2d2c2d;
    color: #00d2ff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Data Matrix Table Styling Rules */
.scfp-telemetry-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.scfp-telemetry-table th {
    background-color: #1e1d1e;
    color: #0099ff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #2d2c2d;
}

.scfp-telemetry-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #2d2c2d;
    color: #aaaaaa;
    font-size: 13px;
    vertical-align: top;
    line-height: 1.5;
    background-color: #222122;
}

.scfp-telemetry-table tr:hover td {
    background-color: #272627;
}

/* Action Control System Buttons */
.scfp-btn-view {
    background-color: #0073aa !important;
    border-color: #006292 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
}

.scfp-btn-view:hover {
    background-color: #0099ff !important;
    border-color: #0088ff !important;
}

.scfp-btn-delete {
    background-color: #b32d2e !important;
    border-color: #9e2829 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
    margin-left: 6px !important;
}

.scfp-btn-delete:hover {
    background-color: #ff3131 !important;
    border-color: #e02425 !important;
}

/* Helper Elements */
.scfp-txt-white { color: #ffffff; }
.scfp-txt-cyan { color: #00d2ff; font-weight: 600; }
.scfp-link { color: #0099ff; text-decoration: none; }
.scfp-link:hover { color: #00d2ff; text-decoration: underline; }

/* Diagnostic Inspector Window (Thickbox Overrides) */
.scfp-inspect-wrapper {
    background-color: #222122;
    padding: 10px 5px;
    font-family: inherit;
}

.scfp-inspect-wrapper h3 {
    color: #00d2ff !important;
    text-transform: uppercase;
    font-size: 15px !important;
    border-bottom: 1px solid #3d3c3d;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.scfp-modal-data-table {
    width: 100%;
    border-collapse: collapse;
}

.scfp-modal-data-table th {
    text-align: left;
    width: 35%;
    color: #0099ff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 1px solid #2d2c2d;
    background-color: #1a191a;
}

.scfp-modal-data-table td {
    color: #ffffff;
    font-size: 13px;
    padding: 10px 12px;
    border-bottom: 1px solid #2d2c2d;
    background-color: #1d1c1d;
}

/* Base Form Control Overrides for Standard WordPress Settings Elements */
.scfp-admin-dashboard .form-table th {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.3px;
    padding: 15px 10px 15px 0 !important;
    width: 220px !important;
}

.scfp-admin-input {
    background-color: #181718 !important;
    border: 1px solid #3d3c3d !important;
    color: #ffffff !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
}

.scfp-admin-input:focus {
    border-color: #0099ff !important;
    box-shadow: 0 0 6px rgba(0, 210, 255, 0.3) !important;
}

.scfp-admin-fieldset {
    margin: 0 !important;
    padding: 0 !important;
}

.scfp-checkbox-label {
    color: #aaaaaa !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: inline-block;
    margin-bottom: 6px;
    cursor: pointer;
}

.scfp-checkbox-label input[type="checkbox"] {
    background-color: #181718 !important;
    border: 1px solid #3d3c3d !important;
    margin-right: 6px !important;
}

/* WordPress Picker Container adjustments */
.scfp-admin-dashboard .wp-picker-container {
    display: inline-block;
}

/* Custom Configuration Matrix Components Inside Settings */
#custom-fields-container .custom-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a191a;
    border: 1px solid #2d2c2d;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    color: #ffffff;
}

#custom-fields-container .remove-field-button {
    background: #b32d2e;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
}

#custom-fields-container .remove-field-button:hover {
    background: #ff3131;
}

#add-custom-field-button {
    background-color: #1a191a;
    border: 1px dashed #0099ff;
    color: #00d2ff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

#add-custom-field-button:hover {
    background-color: #0099ff;
    color: #ffffff;
    border-style: solid;
}

/* Responsive Structural Breakpoint Mechanics */
@media (max-width: 1120px) {
    .scfp-split-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .scfp-preview-sticky-box {
        position: static;
    }
}

@media (max-width: 580px) {
    .scfp-grid-row {
        flex-direction: column;
        gap: 0;
    }
    .scfp-grid-row .scfp-field-group {
        margin-bottom: 20px;
    }
    .scfp-security-row {
        flex-direction: column;
        align-items: fill;
    }
    .scfp-form-container input[type="submit"] {
        width: 100%;
    }
}