/* Reset & Floating Structure */
.fcf-ef1367db-wrapper {
    position: fixed;
    bottom: 30px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Screen Positions & Admin Bar offsets */
.fcf-ef1367db-bottom-right {
    right: 30px;
}
.fcf-ef1367db-bottom-left {
    left: 30px;
}

body.admin-bar .fcf-ef1367db-panel {
    margin-top: var(--wp-admin--admin-bar--height, 32px);
}

/* Floating Action Button (FAB) */
.fcf-ef1367db-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    padding: 15px 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.fcf-ef1367db-trigger:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.fcf-ef1367db-trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.fcf-ef1367db-trigger-icon svg {
    width: 18px;
    height: 18px;
}

/* Contact Panel */
.fcf-ef1367db-panel {
    position: fixed;
    bottom: 110px;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 160px);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999999;
}

.fcf-ef1367db-bottom-right .fcf-ef1367db-panel {
    right: 30px;
    transform-origin: bottom right;
}

.fcf-ef1367db-bottom-left .fcf-ef1367db-panel {
    left: 30px;
    transform-origin: bottom left;
}

/* Panel Active State */
.fcf-ef1367db-wrapper.fcf-active .fcf-ef1367db-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header styling */
.fcf-ef1367db-panel-header {
    padding: 24px;
    position: relative;
    color: #ffffff;
}

.fcf-ef1367db-panel-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.fcf-ef1367db-panel-header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.fcf-ef1367db-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    opacity: 0.7;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: opacity 0.2s;
}

.fcf-ef1367db-close-btn:hover {
    opacity: 1;
}

/* Body and Form Styles */
.fcf-ef1367db-panel-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Form inputs styling */
.fcf-ef1367db-fallback-form .fcf-ef1367db-form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.fcf-ef1367db-fallback-form label {
    font-size: 12px;
    font-weight: 600;
    color: #555555;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.fcf-ef1367db-fallback-form input,
.fcf-ef1367db-fallback-form select,
.fcf-ef1367db-fallback-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fdfdfd;
}

.fcf-ef1367db-fallback-form input:focus,
.fcf-ef1367db-fallback-form select:focus,
.fcf-ef1367db-fallback-form textarea:focus {
    border-color: #f35a22;
    outline: none;
    background: #ffffff;
}

.fcf-ef1367db-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.fcf-ef1367db-form-row .fcf-ef1367db-form-group {
    flex: 1;
    margin-bottom: 0;
}

.fcf-ef1367db-fallback-form button {
    width: 100%;
    border: none;
    padding: 14px;
    color: #ffffff;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.fcf-ef1367db-fallback-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 90, 34, 0.3);
}

/* Preview Placeholder */
.fcf-ef1367db-preview-shortcode {
    background: #f5f5f5;
    border: 1px dashed #cccccc;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

/* Dynamic styling overrides for Contact Form 7 integration inside popup */
.fcf-ef1367db-panel-body .wpcf7 form {
    margin: 0;
}

.fcf-ef1367db-panel-body .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 12px;
}

.fcf-ef1367db-panel-body .wpcf7-text,
.fcf-ef1367db-panel-body .wpcf7-select,
.fcf-ef1367db-panel-body .wpcf7-textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 2px solid #e1e1e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #fdfdfd !important;
}

.fcf-ef1367db-panel-body .wpcf7-submit {
    width: 100% !important;
    padding: 14px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
