/* Easy Form Frontend Styles */
.easy-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.ef-form-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.ef-form-description {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

.ef-form-fields {
    margin-bottom: 20px;
}

.ef-field-wrapper {
    margin-bottom: 20px;
}

.ef-field-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.ef-field-wrapper label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.ef-input,
.ef-textarea,
.ef-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.ef-input:focus,
.ef-textarea:focus,
.ef-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.ef-textarea {
    resize: vertical;
    min-height: 100px;
}

.ef-checkbox-field,
.ef-radio-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ef-checkbox-option,
.ef-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ef-checkbox-option input,
.ef-radio-option input {
    width: auto;
    margin: 0;
}

.ef-html-field {
    margin: 20px 0;
}

.ef-divider-field hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.ef-form-submit {
    text-align: center;
    margin-top: 30px;
}

.ef-submit-btn {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ef-submit-btn:hover {
    background: #005a87;
}

.ef-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ef-form-messages {
    margin-top: 20px;
}

.ef-success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 10px;
}

.ef-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Loading state */
.ef-loading .ef-submit-btn {
    position: relative;
    color: transparent;
}

.ef-loading .ef-submit-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pro Features Styles */
.ef-file-upload-field {
    position: relative;
}

.ef-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.ef-file-label {
    display: block;
    padding: 40px 20px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.ef-file-label:hover {
    border-color: #007cba;
}

.ef-file-info {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.ef-date-picker,
.ef-time-picker {
    position: relative;
}

.ef-rating-field {
    display: flex;
    gap: 5px;
    align-items: center;
}

.ef-star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ef-star:hover,
.ef-star.active {
    color: #ffc107;
}

/* Elite Features Styles */
.ef-signature-field {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.ef-signature-canvas {
    width: 100%;
    height: 200px;
    cursor: crosshair;
}

.ef-signature-controls {
    padding: 10px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.ef-signature-clear {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.ef-multi-step-form .ef-step {
    display: none;
}

.ef-multi-step-form .ef-step.active {
    display: block;
}

.ef-step-indicators {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.ef-step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.ef-step-indicator.active {
    background: #007cba;
    color: white;
}

.ef-step-indicator.completed {
    background: #28a745;
    color: white;
}

.ef-step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.ef-step-prev,
.ef-step-next {
    padding: 10px 20px;
    border: 1px solid #007cba;
    background: #fff;
    color: #007cba;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ef-step-prev:hover,
.ef-step-next:hover {
    background: #007cba;
    color: white;
}

.ef-step-prev:disabled,
.ef-step-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Payment field styles */
.ef-payment-field {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.ef-payment-amount {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
    text-align: center;
    margin-bottom: 15px;
}

.ef-payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ef-payment-method {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ef-payment-method.selected {
    border-color: #007cba;
    background: #e7f3ff;
}

/* Responsive design */
@media (max-width: 768px) {
    .easy-form-container {
        padding: 15px;
    }
    
    .ef-input,
    .ef-textarea,
    .ef-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .ef-checkbox-field,
    .ef-radio-field {
        gap: 15px;
    }
    
    .ef-step-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .ef-payment-methods {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ef-form-title {
        font-size: 20px;
    }
    
    .ef-submit-btn {
        width: 100%;
        padding: 15px;
    }
    
    .ef-rating-field {
        justify-content: center;
    }
    
    .ef-step-indicators {
        gap: 5px;
    }
    
    .ef-step-indicator {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}