.ebg-generator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.ebg-main-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}

.ebg-left-column,
.ebg-right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ebg-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
button#start-again-btn {
    padding: 5px 25px !important;
}
.ebg-card-header {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    justify-content: space-between;
}

.ebg-card-header h3 {
    text-transform: none;
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.ebg-card-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.ebg-card-content {
    padding: 24px;
}

.ebg-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.ebg-select,
.ebg-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ebg-select:focus,
.ebg-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ebg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.ebg-btn-primary {
    background: #3b82f6;
    color: white;
    width: 100%;
    margin-top: 16px;
}

.ebg-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.ebg-btn-success {
    margin: 16px 0 8px 0;
}

.ebg-btn-link {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 8px 16px;
    font-size: 13px;
}

.ebg-btn-link:hover {
    background: #3b82f6;
    color: white;
}

.ebg-form-group {
    margin-bottom: 20px;
}

.ebg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ebg-card.ebg-sections-customization .ebg-card-header p {
    text-align: left;
}
.ebg-time-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ebg-time-input {
    flex: 1;
}

.ebg-time-separator {
    color: #6b7280;
    font-size: 14px;
}

.ebg-time-status, .ebg-event-type {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.ebg-format-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.ebg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ebg-checkbox-label:hover {
    background: #f9fafb;
    border-color: #3b82f6;
}

.ebg-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.ebg-checkbox-label input[type="checkbox"]:checked + .ebg-checkbox-icon {
    background: #3b82f6;
    color: white;
}

.ebg-checkbox-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ebg-generation-time {
    color: #6b7280;
    font-size: 12px;
    text-align: center;
    display: block;
}

.ebg-preview-content {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.ebg-preview-item {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.ebg-preview-item:first-child {
    font-weight: 600;
    color: #111827;
}

.ebg-preview-label {
    font-weight: 500;
    color: #374151;
}

.ebg-preview-sections {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
}

.ebg-sections-customization .ebg-card-header {
    justify-content: space-between;
    align-items: center;
}

.ebg-header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ebg-sections-count {
    font-size: 13px;
    color: #6b7280;
}

.ebg-section-actions {
    display: flex;
    gap: 8px;
}

.ebg-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.ebg-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-bottom: 16px;
}

.ebg-success {
    background: #f0fdf4;
    color: #16a34a;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    margin-bottom: 16px;
}
.ebg-start-again .ebg-card-content {
    padding: 0;
}

/* Responsive design */
/* Modal styles */
.ebg-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.ebg-modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ebg-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.ebg-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.ebg-modal-close {
    color: #6b7280;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.ebg-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.ebg-modal-body {
    padding: 24px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Preview document styling */
.ebg-preview-document {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    font-family: 'Times New Roman', serif;
    line-height: 1.4;
    color: #333;
}

.ebg-preview-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #F1614B;
}

.ebg-preview-title {
    font-size: 24px;
    font-weight: bold;
    color: #F1614B;
    margin: 0 0 8px 0;
}

.ebg-preview-subtitle {
    font-size: 14px;
    margin: 4px 0;
    color: #666;
}

.ebg-preview-contact {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.ebg-preview-section {
    margin-bottom: 24px;
}

.ebg-preview-section-title {
    background: #F1614B;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0;
}

.ebg-preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.ebg-preview-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 13px;
    vertical-align: top;
}

.ebg-preview-table .label {
    background: #f9f9f9;
    font-weight: bold;
    width: 30%;
}

.ebg-preview-content {
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0;
}
button.ebg-btn {
    width: 100%;
    font-family: 'TT_Norms_Pro_Bold' !important;
    letter-spacing: 0px;
    text-transform: none;
    font-size: 18px;
    padding: 10px 25px;
    box-shadow: 0px 10px 10px rgb(0 0 0 / 15%);
    background-image: -webkit-linear-gradient(left, #f96634 0%, #ef4678 100%);
    background-image: linear-gradient(to right, #f96634 0%, #ef4678 100%);
    background-repeat: repeat-x;
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.2s;
}
button.ebg-btn:hover {
    background-image: linear-gradient(to right, #f96634 0%, #ef4678 100%);
}
button.ebg-btn-secondary {
    background: none;
    color: #F1614B;
    border: 1px solid #F1614B;
}
/* HubSpot Popup Styles */
.popup-info {
    color: rgb(107 114 128) !important;
    font-size: 12px !important;
    text-align: center;
    margin: 10px 0 0 0;
}

.main-form {
    width: 100%;
}

.main-form form {
    position: relative;
}

.hs_submit.hs-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 3px;
    top: 3px;
}

.main-form form input[type=submit] {
    border-radius: 48px;
    background: var(--Gradient-Gradient-1, linear-gradient(103deg, #f1614b .91%, #f1416b 100%));
    padding: 10px 40px;
    letter-spacing: 0px;
    color: #fff;
    text-transform: inherit !important;
    border: inherit;
}

.main-form form input[type=email] {
    display: flex;
    padding: 10px 12px 11px 24px;
    align-items: center;
    border-radius: 100px;
    border: 1px solid var(--Neutrals-Gray-200, #c2d0dc);
    background: var(--Neutrals-White, #fff);
    min-height: 54px;
}

label#label-email-4899e8ca-0030-4e2d-aee1-fac91c647c49 {
    display: none;
}

#ebg-hubspot-popup .hs-form {
    max-width: 100%;
}

#ebg-hubspot-popup .hs-form-field {
    margin-bottom: 15px;
}

#ebg-popup-close:hover {
    color: #F1614B;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ebg-main-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ebg-generator-container {
        padding: 24px 0;
    }
    .ebg-label,.ebg-time-status, .ebg-event-type,.ebg-card-header h3,.ebg-sections-count,.ebg-card-header p {
        text-align: left !important;
    }
    .ebg-sections-customization .ebg-card-header {
        display: block;        
    }
    .ebg-card.ebg-sections-customization .ebg-card-content {
        padding: 4px !important;
    }
    .ebg-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ebg-section-header,.ebg-section-content-inner {
        padding: 10px !important;
    }
    .ebg-section-header {
        gap: 4px !important;
    }
    button.ebg-section-toggle {
        min-width: 40px !important;
        height: 40px !important;
    }
    .ebg-sections-buttons {
        margin-top: 5px;
    }
    .ebg-card {
        width: 98%;
    }
    .ebg-card-header,.ebg-card-content {
        padding: 12px !important;
    }

    .ebg-modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .ebg-modal-header,
    .ebg-modal-body {
        padding: 16px;
    }

    #ebg-hubspot-popup > div {
        padding: 20px;
        margin: 10px;
    }
}

/* Sections list styling */
.ebg-sections-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ebg-section-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0;
    transition: all 0.2s;
    overflow: hidden;
}

.ebg-section-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ebg-section-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.ebg-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: grab;
}

.ebg-section-checkbox {
    appearance: none;
    width: 40px;
    height: 20px;
    border-radius: 20px;
    border: 2px solid #d1d5db;
    background: #f3f4f6;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.ebg-section-checkbox:checked {
    background: #F1614B;
    border-color: #F1614B;
}

.ebg-section-checkbox::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    top: 1px;
    left: 1px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ebg-section-checkbox:checked::before {
    transform: translateX(20px);
}

.ebg-section-drag-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ebg-section-arrows {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

button.ebg-section-move-up,
button.ebg-section-move-down {
    background: transparent;
    border: none;
    color: #F1614B;
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    transition: all 0.2s;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

button.ebg-section-move-up:hover,
button.ebg-section-move-down:hover {
    background: #f3f4f6;
    color: #374151;
    transform: scale(1.1);
}

button.ebg-section-move-up:active,
button.ebg-section-move-down:active {
    transform: scale(0.95);
    background: #e5e7eb;
}

@keyframes moveUp {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes moveDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px) scale(1.02);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.ebg-section-item.moving-up {
    animation: moveUp 0.4s ease-in-out;
}

.ebg-section-item.moving-down {
    animation: moveDown 0.4s ease-in-out;
}

.ebg-section-item.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

.ebg-section-title-display {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.ebg-section-expand {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    min-width: 24px;
}

.ebg-section-expand:hover {
    background: #f3f4f6;
    color: #374151;
}

.ebg-expand-icon {
    font-size: 12px;
    color: #fff !important;
    transition: transform 0.2s;
}

.ebg-section-content {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.ebg-section-content-inner {
    padding: 20px;
}

.ebg-section-title-input {
    flex: 1;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.ebg-default-prompts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ebg-default-prompt {
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
}

.ebg-custom-prompts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.ebg-custom-prompt-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ebg-custom-prompt-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}

.ebg-remove-custom-prompt {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.ebg-remove-custom-prompt:hover {
    background: #dc2626;
}

.ebg-add-custom-prompt {
    background: #f3f4f6;
    color: #3b82f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.ebg-add-custom-prompt:hover {
    background: #e5e7eb;
    border-color: #3b82f6;
}

.ebg-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.ebg-section-toggle {
    margin-right: 12px;
}

.ebg-section-title {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.ebg-section-controls {
    display: flex;
    gap: 6px;
    margin-left: 12px;
}

.ebg-btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    border-radius: 4px;
    cursor: pointer;
    color: #6b7280;
}

.ebg-btn-small:hover {
    background: #f3f4f6;
}

.ebg-section-item.disabled {
    opacity: 0.6;
    background: #f9fafb;
}

.ebg-section-item.disabled .ebg-section-title-display {
    color: #9ca3af;
}

.ebg-section-item.disabled .ebg-section-content {
    opacity: 0.5;
    pointer-events: none;
}

.ebg-default-prompt-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ebg-default-prompt-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ebg-prompt-group {
    margin-bottom: 8px;
}

.ebg-section-drag-handle {
    cursor: grab;
    user-select: none;
    color: #F1614B;
    font-size: 18px;
}

.ebg-section-drag-handle:active {
    cursor: grabbing;
}

.ebg-section-item.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.ebg-section-item {
    transition: all 0.2s ease;
}

.ebg-prompt-group {
    margin-bottom: 8px;
}
.ebg-modal-body .ebg-preview-content p {
    text-align: left;
    font-size: 16px;
}
button.ebg-section-expand {
    background: #F1614B;
}