/* Reset & Base */
.elektro-form-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.elektro-form-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: white;
    padding: 0;
}

.elektro-form-inner {
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    padding: 60px 40px;
}

.elektro-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.elektro-form-group {
    margin-bottom: 25px;
}

.elektro-form-section-divider {
    margin: 50px 0 30px 0;
    padding-top: 40px;
    border-top: 3px solid #e0e0e0;
}

.elektro-form-dynamic-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.elektro-form-hidden {
    display: none;
}

/* Typography */
.elektro-form-title {
    text-align: center;
    color: #333;
    font-size: 32px;
    margin-bottom: 50px;
    font-weight: 600;
}

.elektro-form-h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.elektro-form-h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: 500;
}

.elektro-form-container label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.elektro-form-required {
    color: #4CAF50;
}

.elektro-form-note {
    font-size: 13px;
    color: #666;
    margin-top: 20px;
    line-height: 1.6;
}

.elektro-form-info-box {
    background-color: #f0f9f0;
    border-left: 4px solid #4CAF50;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.elektro-form-info-box .elektro-form-required {
    font-weight: 600;
}

/* Form Elements */
.elektro-form-container input[type="text"],
.elektro-form-container input[type="tel"],
.elektro-form-container input[type="email"],
.elektro-form-container input[type="number"],
.elektro-form-container select,
.elektro-form-container textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: #fafafa;
    height: 45px;
}

.elektro-form-container textarea {
    height: auto !important;
    min-height: 150px;
    resize: vertical;
}

.elektro-form-container input:focus,
.elektro-form-container select:focus,
.elektro-form-container textarea:focus {
    outline: none;
    border-color: #4CAF50;
    background-color: white;
}

/* File Upload */
.elektro-form-file-upload-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.elektro-form-file-upload-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

html body .elektro-form-file-upload-label {
    display: inline-block;
    background-color: #f5f5f5;
    color: #333;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

html body.elektro-form-file-upload-label:hover {
    background-color: #e8e8e8;
    border-color: #bbb;
}

.elektro-form-file-name-display {
    display: inline-block;
    margin-left: 15px;
    color: #666;
    font-size: 14px;
}

/* Checkboxes - Override theme styles */
.elektro-form-container .elektro-form-checkbox-wrapper input[type="checkbox"]:before,
.elektro-form-container .elektro-form-checkbox-item input[type="checkbox"]:before {
    display: none !important;
    content: none !important;
}

.elektro-form-checkbox-wrapper {
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
}

.elektro-form-container .elektro-form-checkbox-wrapper input[type="checkbox"],
.elektro-form-container .elektro-form-checkbox-item input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    margin-top: 2px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 2px solid #ddd !important;
    border-radius: 3px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin-left: 0 !important;
}

.elektro-form-container .elektro-form-checkbox-wrapper input[type="checkbox"]:checked,
.elektro-form-container .elektro-form-checkbox-item input[type="checkbox"]:checked {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
}

.elektro-form-container .elektro-form-checkbox-wrapper input[type="checkbox"]:checked::after,
.elektro-form-container .elektro-form-checkbox-item input[type="checkbox"]:checked::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background-color: transparent !important;
}

.elektro-form-checkbox-wrapper label {
    display: inline;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.elektro-form-checkbox-group {
    margin: 20px 0;
}

.elektro-form-checkbox-group-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
}

.elektro-form-checkbox-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.elektro-form-checkbox-item label {
    display: inline;
    font-weight: normal;
    vertical-align: middle;
}

/* Button */
.elektro-form-submit-btn {
    width: 100%!important;
    max-width: 300px!important;
    display: block!important;
    margin: 30px auto 0!important   ;
    padding: 15px 30px!important;
    background-color: #4CAF50!important;
    color: white!important;
    border: none!important;
    border-radius: 4px!important;
    font-size: 15px!important;
    font-weight: 500!important;
    letter-spacing: 0.5px!important;
    cursor: pointer!important;
    transition: background-color 0.3s!important;
    line-height: unset!important;
}

.elektro-form-submit-btn:hover {
    background-color: #45a049!important;
}

/* Error Validation */
.elektro-form-container .elektro-form-error {
    border-color: #f44336 !important;
    background-color: #fff5f5 !important;
}

.elektro-form-error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.elektro-form-error-message.elektro-form-show {
    display: block;
}

.elektro-form-checkbox-wrapper.elektro-form-error label {
    color: #f44336;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .elektro-form-container {
        padding: 0;
        background-color: white;
    }

    .elektro-form-inner {
        padding: 30px 20px;
    }

    .elektro-form-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .elektro-form-h2 {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }

    .elektro-form-h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .elektro-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .elektro-form-group {
        margin-bottom: 25px;
    }

    .elektro-form-row .elektro-form-group {
        margin-bottom: 25px;
    }

    .elektro-form-row .elektro-form-group:last-child {
        margin-bottom: 25px;
    }
}

