.kleen-lead-form-container {
    display: flex;
    width: 100%;
}

.kleen-lead-form-container.kleen-align-left {
    justify-content: flex-start;
}

.kleen-lead-form-container.kleen-align-center {
    justify-content: center;
}

.kleen-lead-form-container.kleen-align-right {
    justify-content: flex-end;
}

.kleen-lead-form {
    --kleen-form-background-color: transparent;
    --kleen-form-border-color: transparent;
    --kleen-form-border-width: 0px;
    --kleen-form-border-radius: 0px;
    --kleen-form-padding: 0px;
    --kleen-button-color: #3abf94;
    width: 100%;
    max-width: 500px;
    margin: 20px 0;
    padding: var(--kleen-form-padding);
    border: var(--kleen-form-border-width) solid var(--kleen-form-border-color);
    border-radius: var(--kleen-form-border-radius);
    background-color: var(--kleen-form-background-color);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.kleen-form-group {
    margin-bottom: 15px;
    position: relative;
}

/* Form heading and body text */
.kleen-form-header {
    margin-bottom: 20px;
}

.kleen-form-header .kleen-form-heading {
    font-size: 1.45em;
    font-weight: 700;
    margin: 0 0 8px 0;
    padding: 0;
    border: none;
    line-height: 1.3;
    color: var(--kleen-form-heading-color, inherit);
}

.kleen-form-header .kleen-form-body {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--kleen-form-body-color, inherit);
}

/* Industry / service radio group */
.kleen-industry-form-group {
    margin-bottom: 20px;
}

.kleen-industry-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kleen-industry-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    user-select: none;
    text-align: left;
    color: var(--kleen-form-body-color, inherit);
}

.kleen-industry-option:has(input:checked) {
    border-color: var(--kleen-button-color);
    background-color: rgba(58, 191, 148, 0.06);
}

.kleen-industry-option input[type="radio"] {
    accent-color: var(--kleen-button-color);
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    grid-column: 1;
}

.kleen-industry-option-text {
    grid-column: 2;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: inherit;
}

.kleen-lead-form .kleen-form-group input,
.kleen-lead-form .kleen-form-group input[type="text"],
.kleen-lead-form .kleen-form-group input[type="email"],
.kleen-lead-form .kleen-form-group input[type="tel"] {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    color: #333333 !important;
}

.kleen-lead-form .kleen-form-group textarea {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    resize: vertical !important;
    background-color: #ffffff !important;
    color: #333333 !important;
}

.kleen-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Submit button - High specificity to override theme styles */
.kleen-lead-form .kleen-form-submit,
.kleen-lead-form button.kleen-form-submit[type="submit"] {
    /* Layout */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    
    /* Sizing */
    height: 56px !important;
    padding: 0 40px !important;
    width: 100% !important;
    
    /* Typography */
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-align: center !important;
    user-select: none !important;
    
    /* Visual */
    background: var(--kleen-button-color) !important;
    background-color: var(--kleen-button-color) !important;
    border: none !important;
    border-radius: 28px !important;
    box-shadow: 0 2px 8px rgba(58, 191, 148, 0.3) !important;
    
    /* Interaction */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

.kleen-lead-form .kleen-submit-label {
    display: inline-block;
}

.kleen-lead-form .kleen-submit-arrow {
    flex-shrink: 0;
}

.kleen-lead-form .kleen-form-submit.is-submitting .kleen-submit-arrow,
.kleen-lead-form button.kleen-form-submit[type="submit"].is-submitting .kleen-submit-arrow {
    display: none !important;
}

.kleen-lead-form .kleen-form-submit:hover,
.kleen-lead-form button.kleen-form-submit[type="submit"]:hover {
    background: var(--kleen-button-color) !important;
    background-color: var(--kleen-button-color) !important;
    box-shadow: 0 4px 16px rgba(58, 191, 148, 0.4) !important;
    transform: scale(1.02) !important;
    filter: brightness(1.08);
    color: #ffffff !important;
    border: none !important;
}

.kleen-lead-form .kleen-form-submit:active,
.kleen-lead-form button.kleen-form-submit[type="submit"]:active {
    transform: scale(0.98) !important;
    color: #ffffff !important;
}

.kleen-lead-form .kleen-form-submit:focus-visible,
.kleen-lead-form button.kleen-form-submit[type="submit"]:focus-visible {
    outline: none !important;
    box-shadow: 0 4px 16px rgba(58, 191, 148, 0.4), 0 0 0 3px rgba(58, 191, 148, 0.2) !important;
    color: #ffffff !important;
}

.kleen-lead-form .kleen-form-submit:disabled,
.kleen-lead-form button.kleen-form-submit[type="submit"]:disabled {
    pointer-events: none !important;
    opacity: 0.5 !important;
    background: #ccc !important;
    background-color: #ccc !important;
    transform: scale(1) !important;
    filter: none !important;
    color: #666 !important;
}

.kleen-form-message {
    padding: 10px;
    margin: 10px 0 16px;
    border-radius: 4px;
    display: none;
}

.kleen-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.kleen-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Field-level error styling */
.kleen-field-error {
    border-color: #dc3545 !important;
    border-width: 2px !important;
}

.kleen-field-error:focus {
    outline-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.kleen-field-error-message {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 4px;
    font-weight: 500;
}

/* DAWA Autocomplete Styles */
.dawa-suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dawa-suggestions-list li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.dawa-suggestions-list li:last-child {
    border-bottom: none;
}

.dawa-suggestions-list li:hover,
.dawa-suggestions-list li.selected {
    background-color: #f0f0f1;
}
