/* @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Open+Sans:wght@300;400;600;700;800&family=Lato:wght@100;300;400;700;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Nunito:wght@200;300;400;600;700;800;900&family=Raleway:wght@100;200;300;400;500;600;700;800;900&display=swap'); */

/* @import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sniglet:wght@400;800&display=swap'); */

/* Default styles for two-column layout */
.two-column-layout {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

.two-column-layout #submit {
    grid-column: span 2 !important; /* Make the submit button span both columns */
}

/* Disable styles on mobile (responsive) */
@media (max-width: 768px) {
    .two-column-layout {
        display: block !important; /* Revert to block layout (stack items vertically) */
        gap: unset !important; /* Remove grid gap */
    }

    .two-column-layout #submit {
        grid-column: unset !important; /* Reset submit button behavior */
        width: 100%; /* Make the submit button full width */
    }
}

#form-layout.save-response-html{
padding: 0px 40px;
    min-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;  
    grid-template-columns: 2fr;
    gap: 20px;
    /* margin: 0px 180px; */
    margin: auto;
    width: 70%;
}
#form-layout{
padding: 0px 40px;
    min-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;  
    grid-template-columns: 2fr;
    gap: 20px;
    margin: auto;
}
@media(max-width:990px){
#form-layout.save-response-html{
padding: 0px 40px;
    min-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;  
    grid-template-columns: 2fr;
    gap: 20px;
    /* margin: 0px 130px; */
    margin: auto;
    width: 100%;
}
}
@media(max-width:650px){
#form-layout.save-response-html{
padding: 0px 40px;
    min-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;  
    grid-template-columns: 2fr;
    gap: 20px;
    /* margin: 0px 80px; */
}
}

@media(max-width:450px){
#form-layout.save-response-html{
padding: 0px 40px;
    min-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;  
    grid-template-columns: 2fr;
    gap: 20px;
    /* margin: 0px 20px; */
}
}

/* Moved from includes/advance-contact-builder.php inline style block 1 for WordPress.org enqueue compliance. */
.premium-notice {
            background-color: #f7f7f7; /* Soft, muted light gray background */
            border-left: 6px solid #f39c12; /* Luxurious gold accent for the border */
            padding: 18px 28px;
            margin-bottom: 22px;
            font-size: 16px;
            line-height: 1.6;
            border-radius: 10px; /* Soft rounded corners for smoothness */
            color: #333333; /* Dark gray text for readability */
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for a premium effect */
            display: inline-block; /* Make the element float with content size */
            max-width: 80%; /* Set the max-width as a percentage to keep it responsive */
            word-wrap: break-word; /* Allow words to break and prevent overflow */
            white-space: normal; /* Allow content to wrap to the next line if needed */

            position: absolute;
            top: 24%;
            left: 61%;
            width: 34%;
            display:none

        }
        .layout-integration{
            position: absolute;
            top: 46%;
            left: 15%;
            width: 37%;
        }
		
        .appearance{
            position: absolute;
            top: 22%;
            left: 61%;
            width: 34%;
        }

        .premium-notice i {
            font-size: 20px; /* Icon size slightly larger to stand out */
            color: #f39c12; /* Gold icon color to match the border */
            margin-right: 0px; /* Space between the icon and text */
            margin-left: -13px;
        }

        .premium-notice a {
            color: #f39c12; /* Gold link to match the accent */
            text-decoration: none;
            font-weight: bold;
            transition: color 0.3s ease, text-decoration 0.3s ease;
        }

        .premium-notice a:hover {
            color: #e67e22; /* Darker gold on hover for a refined effect */
            text-decoration: underline;
        }
        .disabledbutton {
            pointer-events: <?php   if(empty($pluginStatus)) { echo "none"; } else { echo "auto"; }?>;
            opacity: <?php   if(empty($pluginStatus)) { echo "0.5"; } else { echo ""; }?>;
        }


/* Moved from includes/advance-contact-builder.php inline style block 2 for WordPress.org enqueue compliance. */
.disable {
            background-color: #ccc;
            /* Light gray background */
            color: #666;
            /* Dark gray text */
            cursor: not-allowed;
            /* Change cursor to indicate it's not clickable */
            pointer-events: none;
            /* Prevent any mouse events */
        }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            /* Dark overlay */
            z-index: 999;
        }

        /* Modal Container */
        .custom-modal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            z-index: 1000;
            max-width: 400px;
            width: 90%;
            text-align: center;
            padding: 20px;
        }

        /* Modal Content */
        .custom-modal-content {
            padding: 10px;
        }

        /* Modal Message */
        .custom-modal-content p {
            font-size: 16px;
            color: #333333;
            margin-bottom: 20px;
        }

        /* Modal Button */
        .custom-modal-btn {
            padding: 10px 20px;
            background-color: #007cba;
            color: #ffffff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }

        .custom-modal-btn:hover {
            background-color: #005a99;
        }

        .custom-alert {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .custom-alert.hidden {
            display: none;
        }

        .custom-alert-content {
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
            width: 90%;
            max-width: 400px;
        }

        .custom-alert-content p {
            font-size: 16px;
            margin-bottom: 20px;
            color: #333;
        }

        .custom-alert-content button {
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }

        .custom-alert-content button:hover {
            background-color: #45a049;
        }

        .form-field {
            margin: 10px;
            padding: 10px;
            background-color: #f1f1f1;
            border: 1px solid #ddd;
            cursor: pointer;
            text-align: center;
        }

        #form-builder {
            border-left: 2px solid #ddd;
        }

        #form-layout {
            background-color: #f9f9f9;
            border: 1px dashed #ccc;
        }

        #drag-area {
            border-right: 2px solid #ddd;
        }

        .form-label {
            font-weight: bold;
        }

        .editable-label-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .editable-label {
            display: inline-block;
            padding: 5px;
            font-weight: bold;
        }

        .edit-icon,
        .delete-icon {
            cursor: pointer;
            color: #007bff;
        }

        .edit-icon:hover,
        .delete-icon:hover {
            color: #0056b3;
        }

        /* Modal styling */
        .modal-body #newLabelText {
            width: 100%;
        }

        .list-group-item {
            justify-content: center
        }

        .editable-label {
            margin-right: auto;
            /* Push the label to the left */
        }

        .edit-icon,
        .delete-icon {
            margin-left: 10px;
            /* Add spacing between the icons */
            cursor: pointer;
            /* Indicate clickable icons */
        }

        .cf-active-menu {
            border: 2px solid #000000;
            /* Blue border for highlight */
            background-color: #f8f9fa;
            /* Light background */
            font-weight: bold;
        }

        .list-group-item+.list-group-item {
            border-top-width: 2px !important;
        }


/* Moved from includes/validate_license.php inline style for WordPress.org enqueue compliance. */
.egs-acf-advanced-contact-form-license-wrapper {
                max-width: 800px;
                margin: 20px auto;
            }
    
            .license-header {
                margin-bottom: 30px;
            }
    
            .license-header h1 {
                display: flex;
                align-items: center;
                gap: 10px;
                color: #1d2327;
                font-size: 23px;
            }
    
            .license-notice {
                border-left-width: 4px;
                padding: 12px 12px 12px 20px;
                margin: 20px 0;
                background: #fff;
                box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
            }
    
            .notice-content {
                display: flex;
                align-items: center;
                gap: 10px;
            }
    
            .license-card {
                background: #fff;
                border: 1px solid #ccd0d4;
                border-radius: 8px;
                padding: 24px;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            }
    
            .license-form {
                display: flex;
                flex-direction: column;
                gap: 20px;
            }
    
            .license-input-group {
                display: flex;
                flex-direction: column;
                gap: 20px;
            }
    
            .license-label {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 14px;
                font-weight: 600;
                color: #1d2327;
            }
    
            .license-input-wrapper {
                display: flex;
                align-items: center;
                gap: 12px;
            }
    
            .license-input {
                flex: 1;
                padding: 8px 12px;
                font-size: 14px;
                border: 1px solid #8c8f94;
                border-radius: 4px;
                background-color: #fff;
                transition: all 0.2s ease;
            }
    
            .license-input:focus {
                border-color: #2271b1;
                box-shadow: 0 0 0 1px #2271b1;
                outline: none;
            }
    
            .license-input[readonly] {
                background-color: #f0f0f1;
                border-color: #dcdcde;
            }
    
            .license-status-badge {
                display: flex;
                align-items: center;
                gap: 4px;
                padding: 4px 12px;
                border-radius: 12px;
                font-size: 12px;
                font-weight: 500;
            }
    
            .license-status-badge.active {
                background-color: #edfaef;
                color: #1a9c30;
            }
    
            .license-status-badge.inactive {
                background-color: #f0f0f1;
                color: #50575e;
            }
    
            .license-info {
                display: flex;
                align-items: center;
                gap: 20px;
                padding: 12px;
                background-color: #f0f6fc;
                border-radius: 4px;
            }
    
            .info-item {
                display: flex;
                align-items: center;
                gap: 8px;
                color: #1d2327;
            }
    
            .info-label {
                font-weight: 500;
            }
    
            .days-remaining {
                display: flex;
                align-items: center;
                gap: 4px;
                font-size: 13px;
            }
    
            .days-remaining.warning {
                color: #d63638;
            }
    
            .license-actions {
                display: flex;
                justify-content: flex-end;
                margin-top: 20px;
            }
    
            .license-button {
                min-width: 140px;
                text-align: center;
                padding: 6px 12px;
                height: auto;
            }
    
            .license-button.deactivate:hover {
                background: #d63638;
                border-color: #d63638;
                color: #fff;
            }
    
            @media screen and (max-width: 782px) {
                .license-input-wrapper {
                    flex-direction: column;
                    align-items: stretch;
                }
                
                .license-info {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 12px;
                }
            }

/* Hide CSV helper column on submitted form data table. Moved from PHP inline CSS for WordPress.org enqueue compliance. */
#form-data-table th:nth-child(3),
#form-data-table td:nth-child(3) {
    display: none;
}
