/* Widget Customization Demo - Flexbox Layout */

.widget-demo-text {
    text-align: center;
    margin-top: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Flexbox Layout for Widget Fields */
.widget-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.widget-row .form-group {
    flex: 1;
}

/* Widget styling - NO CSS animations, JS handles everything */

#animated-widget .widget-submit-btn {
    border: none;
    color: white;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    height: 52px;
    line-height: 1.5;
}

#animated-widget .widget-submit-btn:hover {
    opacity: 0.9;
    transition: opacity 0.2s;
}

#animated-widget .widget-header {
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.widget-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.widget-close-btn:hover {
    opacity: 1;
}

.widget-close-btn svg {
    width: 20px;
    height: 20px;
}

#animated-widget .widget-body input,
#animated-widget .widget-body select {
    background: white;
}

/* Select Styling */
#animated-widget select {
    padding: 0 45px 0 16px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    width: 100%;
}

/* NO transitions - instant style changes via JS */
#animated-widget .widget-body input,
#animated-widget .widget-body select,
#animated-widget .widget-submit-btn,
#animated-widget .widget-header,
#animated-widget .widget-title,
#animated-widget .form-group label,
#animated-widget {
    transition: none !important;
}

/* Additional Widget Body Styling */
#animated-widget .widget-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#animated-widget {
    box-sizing: border-box !important;
}

#animated-widget * {
    box-sizing: border-box !important;
}

#animated-widget .form-group {
    flex-shrink: 0;
}

#animated-widget .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

#animated-widget .form-group label {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.5;
    height: 21px;
}

#animated-widget .form-group input {
    padding: 0 16px;
    font-size: 16px;
    color: #1F2937;
    line-height: 1.5;
    height: 48px;
}

#animated-widget .form-group select {
    padding: 0 45px 0 16px;
    font-size: 16px;
    color: #1F2937;
    line-height: 1.5;
    height: 48px;
}

/* Clickable Pricing Cards */
.clickable-card {
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.clickable-card:hover {
    box-shadow: 0 0 40px rgba(235, 40, 46, 0.3) !important;
}

.clickable-card .btn {
    pointer-events: auto;
    position: relative;
    z-index: 1;
}
